Page 1 of 1

Tomcat Memory Leak

Posted: Thu Dec 06, 2007 3:31 pm
by jacar1965
Hi all,

Having an issue with a memory leak. I am running scalix 11.2 on a CenOS 4.5 box which is intel based with 2GB of memory and plenty fo disk space.
TOP suggests that java is taking up 30% of the memory when the system is on for a few hours. Restarting Tomcat results in java being reduced to about 7% memory but it slowly climbs again until all system memory is taken up.

Anyone else have this problem and any idea on how to fix it?

The java version is 1.5.11 (the one that comes with the distro).

I also have tried with sun java 1.5.13 and have the same problem.

Thanks for the help in advance.

John

Posted: Fri Dec 07, 2007 4:10 am
by Valerion
That's not a memory leak, just a case of a lot of used memory. Memory leaks refer to lost memory in an application that's lost and never released.

JAVA needs a lot of memory, and Scalix's internal processes use JAVA quite a lot (especially the indexer) so this is fairly normal behaviour. When you installed tomcat there is an option to set the amount of memory used by it, and you should assume that's more or less what will be used constantly.

If you reduce that too far, tomcat's performance will suffer. 512MB -1GB is normal. My 2GB machine has about 45% allocated to tomcat on a normal day.