Heya,

 

The JVM has the following command line options to tweak the heap size:

 


-Xms

initial java heap size 


-Xmx

maximum java heap size 


-Xmn

the size of the heap for the young generation 

 

e.g.
-Xmn100M -Xms500M -Xmx500M -install

 

While this does not fix memory leaks, it will allow you to put a cap on
the memory usage.  I believe when the max is hit, it will initiate gc.
There is also a -server option which I think will cause gc to occur
incrementally.

 

~~K

 

-----Original Message-----
From: J Malcolm [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 18, 2004 12:44 AM
To: James Users List
Subject: Memory Leaks?

 

 Recently, I have been noticing my memory utilization creeping up by
about 10MB per hour.  I've got James, Apache, Tomcat, BIND, and MySQL
running on my server (WinXP).  I've tried restarting each service one at
a time.  James appears to be the culprit.  I can drop 80MB of committed
memory by recycling James.  Then the creep slowly starts again.

Is there anything I could have done in James configuration that would
cause memory to be allocated and never returned?  Does this sound like
anything that is known?

I'm running James 2.1 with a file system based mail store.  No special
mailets other than the ones shipped with the base package.  Sun JRE 1.4.
XPPro with all the latest patches.

Thanks.

Jerry

  _____  

 

Reply via email to