cancel
Showing results for 
Search instead for 
Did you mean: 

Off Heap memory increase (oomkiller issue)

willymontaz
Champ in-the-making
Champ in-the-making
Hello everybody,

I hope my post is in the right place for my issue. If not, please tell me where to post at a better place.

Issue : I noticed that the tomcat java process increases memory use to a point that eventually leads to a brutal kill by the kernel, actually the oomkiller. It is not an OutOfMemory exception, the process is just killed. The memory growth appears to be 'off heap' memory.

Configuration : I installed Alfresco Community 4.0.0 (4003) Schema 5025, on a linux server (2 CPU, 2Go RAM), tomcat servlet container and using MySQL 5 database. OpenOffice is installed on the same server. I use these jvm settings (this not for production use) : -Xmx512m -XX:MaxPermSize=256m.

What I already did : I monitored JVM with VisualVM, analysed a heap dump and found nothing such as a memory leak.
I tried to pmap the process and found 2 big "chuncks" of memory.
41733000   449500   K   rwx–   [ anon ]
00000000d0000000   763904   K   rwx–   [ anon ]
I assume the second one is heap (Xmx)+non heap(MaxPermSize).
I found no deterministic way to induce that memory growth, it just happens after several days, even with no intense activity.

Has anyone already experienced that kind of issue ? Have you found solutions ?
What would you do suggest to investigate further ?

Thank you in advance.
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
oomkiller is probably killing alfresco as a result of other processes wanting alfresco's memory, rather than alfresco itself.     You need to identify what else is causing the problem.    And possibly add more memory to your system.

nikes
Champ on-the-rise
Champ on-the-rise
You can try alloting more RAM to JVM and observe the behavior
Check http://wiki.alfresco.com/wiki/JVM_Tuning



willymontaz
Champ in-the-making
Champ in-the-making
Thank you for your quick answers. I'll try to dig further that problem and will come back to you.

Willy you can override tomcat JVM parameters creating your own setenv.sh file to put in <CATALINA_HOME>/bin. Tomcat will look for it and override its default parameters. Try giving more RAM. <a href="http://www.tomcatexpert.com/ask-the-experts/configure-tomcat-memory-settings">This tutorial</a> should get your attention