This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Win2k and cygwin memory leak

Well, you could look at the task manager to see where all the memory is going (you can enable current memory allocation per process columns).

Also, you could use 'ps' to see if old cygwin processes are still running.

R. Boon wrote:
Hello list,

I noticed a problem with cygwin. It seems that some installations of
cygwin running on windows 2000 are leaking memory. The memory leak is
located in some kernel part of the operating system since it is not
cleaned up after all user space applications are close.

This issue is reported previously to the cygwin list. This issue is
reported as a make failure:

And as an issue with fork:

I can confirm the reported symptoms. Every time I start a child process,
I loos some memory. Once all my memory and swap is depleted, I cannot
start new applications. Even closing running applications causes
trouble. A reboot is needed to restore the system.

As an additional symptom I get the following question when I quit
cygwin. Terminate batch job (Y/N)?

This seems to indicate that child processes are not terminated and/or
completely removed from memory.

I tested this issue on four hosts
1. a Win2k SP4 with Cygwin 1.3.22 (128 Mb)
2. a Win2k SP4 with Cygwin 1.5.1 (128 Mb)
3. a Win2k SP4 with Cygwin 1.3.22 (192 Mb)
4. a Win2k SP4 with Cygwin 1.3.22 (256 Mb) <- not affected

Host nr. 4 is not affected by this issue. None of the tests lead to even
the slightest sign of a memory leak. All systems are installed with the
basic cygwin install using the setup.exe program from

Is there a solution to this issue that is never posted? Has anyone with
the same issue tried to fiddle with a memory limit setting of some sort?
(and did is work?)

Thank you for your time


-- Unsubscribe info: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]