How do I change memory settings for AAI Insight on Windows and Linux?

book

Article ID: 198855

calendar_today

Updated On:

Products

Automic Automation Intelligence

Issue/Introduction

How do I change memory settings for Insight on Windows and Linux?

Environment

Release : 6.0.1

Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE

Resolution

Linux:

1) $INSTALLDIR/apache-tomcat/scripts/ctl.sh - remove the following JAVA_OPTS line in both the start_tomcat() and daemon_tomcat() functions.



export JAVA_OPTS="-Xms1024m -Xmx2048m -XX:PermSize=32m -XX:MaxPermSize=512m -Xss2m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true"



2) $INSTALLDIR/apache-tomcat/bin/setenv.sh –



Remove the following lines .

JAVA_OPTS="-Djava.awt.headless=true -Djs.license.directory=/opt/Insight $JAVA_OPTS "

JAVA_OPTS="-Xms1024m -Xmx2048m -Xss2m $JAVA_OPTS " # java-memory-settings



Added the following line and set Xms and Xmx to the desired values.

CATALINA_OPTS="-Xms1024m –Xmx2048m -Xss2m -XX:PermSize=32m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true -Djs.license.directory=/opt/Insight"



Change the following line.

export JAVA_OPTS

TO

export CATALINA_OPTS



3) Once the above changes are made, please restart the AAI Reporting server.

$INSTALLDIR/ctlscript.sh restart

 

Windows:

1. Go to <Install dir>\apache-tomcat\bin

2. Right click jasperreportsTomcatw.exe and select "Run as Administrator"

3. This will open a pop up box, click on the "Java" tab.

4. Then update the initial and max memory to the desired levels

5.  In the "Java Options" box add the following lines at the bottom.

-XX:PermSize=32m
-XX:MaxPermSize=512m

 

6. Restart the jasper services by using the shortcuts below.