I am not sure what -Xingcg is? I am assuming you are using the incremental
garbage collector though. This will only make the gc be done incrementally
as the name indicates and it might not be able to keep up with object
creation as your application is running. There are other things going on as
Are you using Windows? It does not guarantee that the memory will release
to the OS until the OS needs it. If you running a very big memory intensive
process, you will see Tomcat releases the memory in the Task Manager. I
highly recommend you to set the max and min heap sizes with the same
be careful with using incremental gc. in my
benchmarks, it can decrease performance dramatically
if your webapp is CPU intensive. If it isn't CPU
intensive, you probaby still don't want to use
incremental GC.
a better option is to set minimum free heap with
-XX:MinHeapFreeRatio=xx
peter
---
If linux, make sure that your linux kernel is up-to-date . There was a
kernel memory leak in some older versions.
If you think that you might be leaking objects, you can use the heap
profiler, take snapshots at various points during operation, and look for
objects that aren't being marked for
Alain,
What O.S. and JDK are you using? I use Redhat 7.1 and got significantly better memory
management when I upgraded to IBMJava2-14.
Steve
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 11:37 AM
Subject: Memory issue with
Sorry for not including system specs in original post.
Intel Xeon 2.2 ghz, 2 GB Memory, Redhat 7.2 kernel 2.4.9-34, Sun JRE 1.4.0_01
I will adjust the heap sizes and test on another machine the latest kernel
with IBM JRE.
Thanks for the replies!!!
Alain