cancel
Showing results for 
Search instead for 
Did you mean: 

Swap space being used.

eswbitto
Confirmed Champ
Confirmed Champ
Hello Everyone,

My alfresco setup is the following:

4.2.d
Centos 6.4
Using httpd for the front end SSL
VM on proxmox.
Vanilla install with ldap sync.

Ok so I have about between 7-8 GB of data in our production server for Alfresco. I have 4 GB or memory with 4GB of swap if it is needed. I only have Alfresco running on this VM.

I'm getting notifications that I'm running out of free swap space on alfresco server.

I've reviewed the logs catalina.out and alfresco.log and the only two entries that I have around the time of this notification are a wildcard returned to many clauses and just info messages about "Note- no handler was found for GET & HEAD"

I don't believe either of these messages would run my memory out and start using swap.

Does anyone have any ideas what could be the issue? I've tried doing a search for this and couldn't find any threads that could point me in the right direction.


8 REPLIES 8

marco_altieri
Star Contributor
Star Contributor
Hi,

How much memeory have you assigned to Alfresco ?

eswbitto
Confirmed Champ
Confirmed Champ
I haven't configured anything specifically. The VM has 4 GB of memory and if that fills up then swap gets used. If your referring to anything specific in alfresco-global.properties or other files. There's nothing setup.

rjohnson
Star Contributor
Star Contributor
To clear this I assume you restart your server. How long does it take after the restart for these messages to appear? I ask because we have a similar issue which I belive to be caused by OpenOffice. I believe this because a restart of Tomcat and PostgreSQL does not free the swap, but retarting the server does and like you we have nothing but Alfresco on that server.

eswbitto
Confirmed Champ
Confirmed Champ
Well the weird thing is that this happened at 6 in the evening. When I came in the next day only about 30% of the memory was being used and swap wasn't being used at all. This has only happened one time so a reboot of the server hasn't been needed. I might try your suggestion after office hours to see if that does anything. Still though it's a mystery of why the memory is filling up.

I thought that maybe a user had imported a large amount of files, (none of the users have capacity restrictions) but that wasn't the case.

eswbitto
Confirmed Champ
Confirmed Champ
So I did some further digging. Turns out at 6:00 pm everyday the amount of Free Space in memory spikes while swap spikes for usage. Looking at the graphs they are almost identical. Does Alfresco have a built in function to do some type of maintenance at 6:00 pm?

rjohnson
Star Contributor
Star Contributor
The only scehduled jobs I know of are the index backup and the removal of completely deleted items from the repo file system to contentstore.deleted, but these are scheduled at 03:00 and 04:00 respectively by default.

eswbitto
Confirmed Champ
Confirmed Champ
@rjohnson

Have you looked into changing the catalina.sh or ctl.sh for the Java options to increase them? I've done some googling and want to get your insight before I start making changes.

sharifu
Confirmed Champ
Confirmed Champ
@ESWBitto try the following in ctl.sh


export JAVA_OPTS="-server -Xms2G -Xmx3G -XX:MaxPermSize=512M -Xss1024k -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=80 -XX:NewSize=1G -Dalfresco.home=/opt/alfresco-4.2.d -Dcom.sun.management.jmxremote=true -Djava.rmi.server.hostname=172.16.0.21 -Dsun.security.ssl.allowUnsafeRenegotiation=true"