We ran into a memory leak with JDK1.4 on Solaris, and could not figure out exactly where it was occuring. The exact same setup with 1.2.2 can run for weeks with constant memory usage, but with 1.4 the memory usage would steadily increase until it reached the max and then it would die with out of memory exceptions. I am hoping this was fixed in 1.4.1, but I have not seen any specific bug report on the problem. The interesting thing is that if you turn on memory profiling, the leak does not occur, so trying to narrow down the problem is very difficult.

Chris

Rick Fincher wrote:

Is this correct? My JVM memory use expands and contracts all the time
during a Tomcat run. The JVM will get bigger until it hits the memory
limits set up at start time, then it will GC and get smaller, according to
the OS anyway.

This is on Solaris but I can't imagine that they would make the JVM such a
memory pig on other OS's. Early versions maybe, but not now.

Rick

----- Original Message ----- >
snip

It's also worth noting that the memory freed from garbage collecting
objects in Java isn't returned to the OS, but kept as the VMs free
internal heap space.

snip

--
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863




--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




--
Chris P. McCabe               - Principle Engineer
Choice Hotels International   - Information Technology
[EMAIL PROTECTED] - 602-953-4416



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to