How much Memory gets allocated to JBOSS for Session Recording?

book

Article ID: 190583

calendar_today

Updated On:

Products

CA Privileged Access Manager (PAM) CA Privileged Access Manager - Cloakware Password Authority (PA) PAM SAFENET LUNA HSM CA Privileged Access Manager - Server Control (PAMSC)

Issue/Introduction

PAM was upgraded from 3.2.x to 3.3.x
If I have 16GB RAM, how much memory gets allocated to JBOSS for session recording?

Environment

Release : 3.3

Component : PRIVILEGED ACCESS MANAGEMENT

Resolution

JBOSS JVM setting is stored in /opt/jboss/bin/jboss.conf
But this will get updated each time jboss is run.

/etc/gkstart/init/rc.jboss script will execute /sbin/getServiceMemory.sh to determine the total RAM installed on the PAM System and determine how much RAM should be allocated to JBOSS depending on the predefined weight.

The logic is as below.

1. Determine predefined Memory weight (/var/uag/config/memory.cfg or /var/uag/config/memory_secondary.cfg)
memory_reserved=6
memory_tomcat=3
memory_mysql=2
memory_jboss=2
memory_php_apache2=1
memory_php_cli=1
memory_php_cgi=1

If one component's weight is 3, and the sum of all weights is 16, then that component is to be allocated 3/16ths of the OS memory.

2. Determine actual Memory installed on PAM system
SYSTEM_MEMORY_GB=`free --giga | awk '/Mem\:/ { print $2 }'`
This will return 16 if you have 16GB installed on your PAM.

Change it to MB size.
SYSTEM_MEMORY_MB=$((SYSTEM_MEMORY_GB * 1024))

3. Calculate how much Memory should be allocated to JBOSS.
allottedMemory=`/sbin/getServiceMemory.sh jboss`

(SYSTEM_MEMORY_MB * memory_jboss / memory_total_weight)

This would be (16384 MB x 2 / 16) = 2048MB
If you had 64GB installed on the PAM system then (65536 MB x 2 / 16) = 8192MB

So, if it really becomes necessary to increase the JBOSS memory, we can increase the weight of jboss to a higher value to achieve it.
This would be (16384 MB x 3 / 16) = 3072MB
This would mean the reserved RAM for other operations will be reduced.

Best way is to not modify anything and increase the RAM allocation to PAM system.