but how do i check it is memory leak or gc problem . well i was trying
to configure jconsole to my web application but it is not working out,
i am not able to configure it .
the reasone i conclude to tune gc is that the throughput have
decreased after its heap size is increased.
therfore i have to decrease heap size for which i have to tune gc.
present heap size is -Xms256m -Xmx512m
Ingo R. Homann - 10 Jul 2006 14:16 GMT
Hi,
> but how do i check it is memory leak or gc problem .
Well, I never heard that suns GC is buggy in the way that it produces
memory leaks.
An idea would be to change to another JVM-implementation. If the error
occurs there as well (I bet so), then chances are good that it is a
programming error which produces memory leaks.
Ciao,
Ingo
Patricia Shanahan - 10 Jul 2006 14:26 GMT
> but how do i check it is memory leak or gc problem . well i was trying
> to configure jconsole to my web application but it is not working out,
[quoted text clipped - 3 lines]
> therfore i have to decrease heap size for which i have to tune gc.
> present heap size is -Xms256m -Xmx512m
Check whether you are causing memory thrashing with the larger heap
size. That can happen if the program is actively using more than the
available physical memory. In a thrashing state the disk I/O rate is
very high, and the program's CPU utilization drops to about 2%.
If you do have a memory leak in your program, the heap size parameter
just lets you choose how to fail, running out of heap space or thrashing.
Patricia