Java heap space issue

Showing results for 
Search instead for 
Did you mean: 
Active Member II

Java heap space issue

Hai Everyone,

We are facing java heap space issue , can any one suggest me how solve this issue,


OS: Redhat linux,

Alfresco Version: Alfresco-Community-5.2 (201707)

Solr version: Solr4

PostgreSQL : 9.4.12

System RAM: 16GB

In Alfresco we increased Maximum heap size as -Xmx8192M

In External Solr4 tomcat : we increased Maximum heap size as -Xmx4096m

1) In Alfresco i am retrieving extra attributes through Active directory with common-ldap-context.xml file. and adding all the users into a group based on the Attributenames for this we developed a jar file.

2) We configured external solr4 in the system for alfresco

3)  Heapspace issue coming in alfresco and there are lot of connection in CLOSE_WAIT in alfresco

issue1:  ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-315] Exception from executeScript: 06160091 Wrapped Exception (with status template): Java heap space
org.springframework.extensions.webscripts.WebScriptException: 06160091 Wrapped Exception (with status template): Java heap space
at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(
at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(

issue2: ERROR [org.quartz.core.JobRunShell] [DefaultScheduler_Worker-1] Job threw an unhandled Exception: 
org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'run' on target class [class] failed; nested exception is org.alfresco.repo.lock.LockAcquisitionException: 06160447 Failed to release lock '{}' using token '2501a540-d22f-4de7-8c14-46d1e81a5e3b'. The lock has expired and been taken by another process.

Please find the Alfresco and solr log files.Alfresco Content Services (ECM)

4 Replies
Active Member

Re: Java heap space issue

Could you resolve it? I have the same problem Smiley Sad 

Active Member II

Re: Java heap space issue

Yes, increase the JMX size,Do the  solr reindex.

AD full synchronisation.

Problem solved.

If you want any further help , reply me.

Active Member

Re: Java heap space issue

Thank you! I could resolve it!

Member II

Re: Java heap space issue

Yes, I also have same issue.