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

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

book

Article ID: 198855

calendar_today

Updated On:

Products

Automic Automation Intelligence

Issue/Introduction

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

Environment

Release : AAI 6.4.1   Insight 1.10

Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE

Resolution

Linux:

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:

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=l/FMBIA7JhIbxb7+ftwR9g==

 

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

 

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 on the Desktop.

Attachments