cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Problem...

hughesfleming
Champ in-the-making
Champ in-the-making
I have installed Alfresco community edition via the war into an existing tomcat installation running Centos 4.4 x86_64 and jrockit_x86_64 (latest build). The server is an HP opteron server with 4 gigs of memory. The jvm is configured with the following: JAVA_OPTS="-XgcSmiley Tonguearallel -XXcompressedRefs -Xms1600m -Xmx1600m".

The good news is that everything worked the first time. The bad news within a couple of hours, the server ran out of memory and started to swap. There is one other application running on top of tomcat that was using less the 800 megs so there should have been enough memory to run both applications. Eventually I could not manually shut down the jvm and had to reboot the server.

Any suggestions would be most welcome,

Best wishes,

Alex Fleming
6 REPLIES 6

derek
Star Contributor
Star Contributor
Hi,

Tomcat runs in a VM that has a maximum memory limit.  The VM should not grow much beyond that.  This is a VM-specific issue.  You might try another VM just to be sure.

We ran some benchmarks with JRockit and didn't have any issues, so it might be OS or configuration dependent as well.

Regards

hughesfleming
Champ in-the-making
Champ in-the-making
Thanks,

I will keep looking for a solution.

regards,

Alex

kevinr
Star Contributor
Star Contributor
Have you tried the standard Sun JDK to ensure that it is not JRockit at fault? This morning I performed a multi-threaded stress test on Alfresco 2.0 HEAD designed to find memory leaks and after 50,000 web-client screens requests no signs of a leak was detected. Note that was TomCat 32bit with SunJDK 1.5.0_09.

Thanks,

Kevin

hughesfleming
Champ in-the-making
Champ in-the-making
I am now running on the Sun 32-bit JVM and everything seems to be working fine now.

Thanks for the help,

Alex

kevinr
Star Contributor
Star Contributor
Glad to hear it!

Kev

konsultex
Confirmed Champ
Confirmed Champ
Alex, could you post your Java options? I have a similar problem (see my post: http://forums.alfresco.com/viewtopic.php?t=5276)

Thanks.