cancel
Showing results for 
Search instead for 
Did you mean: 

Memory leak in alfresco

romor
Champ in-the-making
Champ in-the-making

Hello, my alfresco community consume all memory, which i give him with settings.

Alfresco version i have 5.1.g (201605 release).

Server has 20GB RAM and 8 CPU.

Java processes consume 16,1GB RAM (in setenv.sh i have -Xms5G -Xmx15G).

Postgres has shared memory setting on 3GB.

I can't restart alfresco tomcat, because tomcat java say me "insufficient memory".

And alfresco make 20 times everyday error 503 in web browser. After minute is alfresco again OK.

Do you know, what is problem?

9 REPLIES 9

afaust
Legendary Innovator
Legendary Innovator

It is hard to analyze memory errors / potential leaks from what little information you have provided. E.g. you haven't said what operations you are typically performing, if you have just performed some kind of batch operation etc. You also have not provided any kind of information from the alfresco.log file that might be helpful.

Of course you can restart Alfresco - if an error prevents you from stopping it then you may have to kill the process forcibly. But afterwards you should be able to start it again.

angelborroy
Community Manager Community Manager
Community Manager

Which is the size of your repository? Maybe greater than 1 TB?

Hyland Developer Evangelist

romor
Champ in-the-making
Champ in-the-making

Hi, i am on begin analyze..

After restart several days works all fine..

My repository has 800GB..

angelborroy
Community Manager Community Manager
Community Manager

Maybe it's just a memory consumption problem. As repository size grows, RAM requirements are also greater.


Try to increment 4 GB dedicated memory to Tomcat (specifically to alfresco.war app)

Hyland Developer Evangelist

romor
Champ in-the-making
Champ in-the-making

Please, can you help me, how i can set it?

angelborroy
Community Manager Community Manager
Community Manager

If you have all webapps in the same Tomcat, just increase Java memory settings.


As you have only 20 GB available in your server, you'll need to increase server RAM or move Postgresql to another server.

Hyland Developer Evangelist

romor
Champ in-the-making
Champ in-the-making

I have 20GB RAM on server and in java i have setting -Xms5G -Xmx15G

In postgres i have set shared_memory to 3G

Thats bad?

angelborroy
Community Manager Community Manager
Community Manager

It's not bad, but it's not enough.

If you can increase your server RAM to 28 GB, I'll recommend you:

-Xms5G -Xmx20G

5G to postgres shared_memory

Hyland Developer Evangelist

romor
Champ in-the-making
Champ in-the-making

OK, i try it;-)