in your jvm.cfg I would turn on the GC logger via
-Xloggc:<file name>
 
then read the log and find out exactly when the GC is occuring..

M-
This e-mail communication and any attachments may contain confidential and privileged information for the use of the
designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its
contents
----- Original Message -----
From: Willem Liu
Sent: Tuesday, October 24, 2006 9:40 AM
Subject: RE: memory leak in my web service

Hi,
 
When programming in Java for Linux like environments I've came accros the same thing. The same program would run perfectly under Windows, but would give a memory problem under Linux. I've eventually solved this by calling the Garbage Collector manually and periodically. It seems that the JVM under Linux environments doesn't automatically do this well.
I don't know wether this will solve your problem as well, but I guess it's worth a try.
 
Regards,
 
Willem


From: xu cai [mailto:[EMAIL PROTECTED]
Sent: dinsdag 24 oktober 2006 15:15
To: [email protected]
Subject: memory leak in my web service

hi all, I got a memory leak issue. The web services is deployed over Axis1.4/Tomcat, the services is used to query database.
 
If the client send request in a while loop, the server will run out of memory in 2 or 3 hours.
 
I use jprofiler to monitor the memory,and cant' find something wired. I even can't know which part of memory is growing so fast.
 
can anybody give me a clue ?


-thanks
 
-jeff

Reply via email to