AnsweredAssumed Answered

RepositoryQuerySession Memory Leak

Question asked by davidefonta on Oct 20, 2017
Latest reply on Oct 28, 2017 by afaust

Hi, I'm running a v4.2.0 on a Tomcat 7.0.64 with 1GB of max Heap space.

I've no problems for years, but in last weeks it ran in out of memory almost once a day.


I took some heap dump and made some tests, and I found the class resposible of memory retention:




Every time a document is saved in Alfresco by a thirdparty software (via WS), two new instances of RepositoryQuerySession are created in memory, and never removed.

And these objects retains op to 5MB each.

GC is called but they stay there. 


The problem does not apper when documents are uploaded throgh Alfresco web interface.

Unfortunatly I've no acces on that thirdparty sotware.


So what could keep alive these RepositoryQuerySession objects?