How do I change memory settings for AAI Insight on Linux and Windows?
Release : AAI 6.4.1 Insight 1.10
Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE
1. Make a backup copy of /$INSTALLDIR/apache-tomcat/scripts/ctl.sh
cp ctl.sh bak_ctl.sh
2. Make a backup copy of /$INSTALLDIR/apache-tomcat/bin/setenv.sh
cp setenv.sh bak_setenv.sh
3. Edit /$INSTALLDIR/apache-tomcat/scripts/ctl.sh and update the memory settings as desired on the two lines were you see "export JAVA_OPTS", for example, " -Xms2048m -Xmx4192m"
Under "start_tomcat()" edit:
export JAVA_OPTS="-Xms2048m -Xmx4192m -XX:PermSize=32m -XX:MaxPermSize=512m -Xss2m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true"
Under "daemon_tomcat()"
export JAVA_OPTS="-Xms2048m -Xmx4192m -XX:PermSize=32m -XX:MaxPermSize=512m -Xss2m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true"
Below is an example:
4. Edit /$INSTALLDIR/apache-tomcat/bin/setenv.sh update the memory settings to match the ctl.sh script where you see JAVA_OPTS.
For example:
JAVA_OPTS="-Xms2048m -Xmx4192m -Xss2m $JAVA_OPTS " # java-memory-settings
Here is an example:
5. Change directory the /$INSTALLDIR and run "./ctlscript stop" as the user who installed Insight.
6. Run "./ctlscript.sh start"
7. Verify tomcat is running and the memory changes are reflected.
ps -eaf | grep tomcat
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 on the Desktop.