cancel
Showing results for 
Search instead for 
Did you mean: 

Optimize JVM memory for AAAR

chooli
Champ in-the-making
Champ in-the-making
I have spent sometime on AAAR installation and customization to make it works for my client's alfresco production. Thanks for the contribution of this great audit report extension. And, kindly help to solve my environment issues.

Now the AAAR runs well on a single cloud host server with <strong>8GB memory</strong> sharing with alfresco and pentaho. I know that 8GB is limited for nowadays IT production especially for ECM and BI applications. But I try to optimize the JVM heap size setting for these three processes as below

tomcat server: 6GB (shared by alfresco dm, share and pentaho)
pentaho data integrator (kettle): 512mb by default

Production works well with this settings mostly.However, I want to know if it is helpful to increase data integrator heap size when extracting data from alfresco and make the report generating faster? Could anyone here have some experience to share how to manage memory usage for alfresco, pentaho and data extraction in single server?   
2 REPLIES 2

fcorti
Elite Collaborator
Elite Collaborator
Hi Chooli,

Your case it's very interesting and congrats for your job.

Please confirm you run AAAR extraction (so, PDI processes) in a low activity time for Alfresco users.
In my experience the most common scenario is: during the day time the Alfresco resources need to be highly available for performance reasons and during the night time the PDI resources need to give the best performance to the extraction.

If this is true also in your case and you are sure about it, I suggest you to think about increasing the memory for PDI because your value (512Mb) it's quite low.
Of course, during the night time, you would have to think to a strategy to reduce the amount of memory used by tomcat (stop the tomcat? restarting it with a low memory?).

If you are not sure about the hours of activity time on your Alfresco, I suggest you to use the report below.
http://fcorti.com/alfresco-audit-analysis-reporting/aaar-reports-dashboards-extractions/aaar-report-...

Every comment or contribution is appreciated and, please, let us know how it goes.

chooli
Champ in-the-making
Champ in-the-making
Thanks for your suggestion, Francesco.

I will try to increase PDI memory when do data extraction. The reports now runs well, but it got an issue when user launch the main dashboard at the first time. The error showing on the page is

Error processing component (RepositoryPerDay)
Error processing component (ActionsPerDay)

I grep this error on all source files and logs but just not able to find where it came from. I wonder if this happens due to memory insufficient.  Or, if increase memory can solve the problem.

Don't know how to reduce the memory used dynamically at nighttime for tomcat since heap size is set by JAVA_OPT parameter in the environment. Stop and restart might work, but production should runs in 24X7. Technical downtime shouldn't happen regularly.

Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.