cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 4.0d Memory Issue

johnthomas
Champ in-the-making
Champ in-the-making
Dear all.

I tried searching for a similar post. However, I could find none.

We installed Alfresco CE 4.0d windows installed (postgre db).

It is running on a a Windows 2008 R2 (64 bit), Xeon @ 2.93 (dual), 6gb RAM. 

It runs good, but after half a day, or sometimes a few hours. Old Gen just fills up and we can't seem to figure out why.

Attached are screenshots of visualjvm and below are the jvm settings:

-Xms3G
-Xmx6G
-Dalfresco.home=C:\Alfresco
-Dcom.sun.management.jmxremote
-Dcatalina.base=C:\Alfresco\tomcat
-Dcatalina.home=C:\Alfresco\tomcat
-Djava.endorsed.dirs=C:\Alfresco\tomcat\endorsed
-XX:MaxPermSize=512m
-XX:-UseGCOverheadLimit
-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode
-XX:NewSize=2G
-XX:CMSInitiatingOccupancyFraction=80


I realize they are outrageous, but we tried to throw all the memory at it it, that we can. However, it manages to fill it up.

Anyone has any ideas? 
4 REPLIES 4

afaust
Legendary Innovator
Legendary Innovator
Hello,

can you create a heap dump and look into the class / instance histogram to find out what type of objects are kept in memory and what holds the most memory? (simplest: use the jmap + jhat approach from <a href="https://blogs.oracle.com/sundararajan/entry/4_ways_to_view_java">this Oracle blog</a>; most effective: use Eclipse Memory Analyzer Tool (requires large heap for Eclipse - about as large as the dump you're importing))

Regards
Axel

johnthomas
Champ in-the-making
Champ in-the-making
I figured that is the next step. But I thought I'd try to see if it was a known issue. I'll do the dump today and get back to you for assistance. Please stand by. 

Thanks.

johnthomas
Champ in-the-making
Champ in-the-making
Eclipse MAT identified the following as the suspect:

The thread com.icegreen.greenmail.imap.ImapServer @ 0x6e03ab628 Thread-54 keeps local variables with total size 1,597,657,768 (86.34%) bytes.
The memory is accumulated in one instance of "java.lang.Object[]" loaded by "<system class loader>".

Stacktrace:
Thread-54
  at java.net.PlainSocketImpl.socketAccept(Ljava/net/SocketImplSmiley WinkV (Native Method)
  at java.net.PlainSocketImpl.accept(Ljava/net/SocketImplSmiley WinkV (PlainSocketImpl.java:408)
  at java.net.ServerSocket.implAccept(Ljava/net/SocketSmiley WinkV (ServerSocket.java:462)
  at java.net.ServerSocket.accept()Ljava/net/Socket; (ServerSocket.java:430)
  at com.icegreen.greenmail.imap.ImapServer.run()V (ImapServer.java:72)

Which would make my issue similar to this post by another person:
http://forums.alfresco.com/forum/installation-upgrades-configuration-integration/configuration/imap-...

That post did not end of a resolution though.

afaust
Legendary Innovator
Legendary Innovator
Hello,

okay - I have encountered this issue with a customer on Alfresco 4.1 and you can find a patch in this <a href="https://issues.alfresco.com/jira/browse/MNT-2263">JIRA ticket</a>. This has been fixed on the 4.1.x Enterprise support branch and should also be included in 4.2 Enterprise. I don't think it is included in Community 4.2c though.

Regards
Axel