Platform Framework
R24 AMR | Min(s) read

JBoss EAP 7 Configuration for Temenos Transact Solution with TAFJ

This section details the memory and environment settings that you require to configure JBoss for Temenos Transact with TAFJ.

Default Memory Setup

The default memory setting (for JDK 1.7) is set "JAVA_OPTS=-Xms1G –Xmx2G -XX:MaxPermSize=450M".

In JDK 1.8 -XX:MaxPermSize doesn’t exist.

If you want to change this parameter, then you need to modify it under:

  • Windows: JBOSS_HOME/bin/standalone.conf.bat
  • set "JAVA_OPTS=-Xms1G –Xmx2G"

  • Unix: JBOSS_HOME/bin/standalone.conf
  • JAVA_OPTS="-Xms1G –Xmx2G

This memory setting is the minimum requirement for a user to deploy the application and run some agents to validate the configuration. For a UAT and production environment, you must refine this setting depending on your expected number of sessions and tSA.

UAT or Production Memory Setup

A session or tSA memory varies based on the job done. It will be at least 20 MB and can be up to 60 MB. For example, if you run 80 interactive sessions and 40 tSA on a server, then you can maximize the max memory for sessions by applying:

120 sessions * average 50MB = 6G max heap size

You will have -Xmx6G

If you want to monitor the jobs precisely, then you can use a monitoring tool like Visual VM. Take a heapdump while running the expected jobs, isolate the jSession objects and compute the retained size.

Below screen capture shows the result for one session.

Below screen capture shows the result for 16 sessions.

You can also use TAFJ technical monitor to monitor the memory evolution graph over the time and refine your setup.

You may also need to allocate memory for other applications deployed.

Environment Setup

You can setup the environment in the same configuration file (standalone.conf.bat or standalone.conf) that you used to allocate memory depending on your platform.

You need to set the following:

  • TAFJ_HOME definition - -Dtafj.home=%TAFJ_HOME%
  • File encoding - -Dfile.encoding=UTF-8
set "JAVA_OPTS=%JAVA_OPTS% -Dtafj.home=%TAFJ_HOME% -Dfile.encoding=UTF-8

Optional settings:

  • Port offset if you don’t want to run with the default ports configuration - -Djboss.socket.binding.port-offset=1009
  • Node name to use JBoss remoting lookup - -Djboss.node.name=node1
set "JAVA_OPTS=%JAVA_OPTS% -DARC_CONFIG_PATH=%JBOSS_HOME%\BrowserSecurity\sso.config -DARC_CONFIG_APP_NAME=SPNEGO -Dtafj.home=%TAFJ_HOME% -Djboss.socket.binding.port-offset=1009 -Dfile.encoding=UTF-8 -Djboss.node.name=node1"

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 27, 2024 5:10:28 PM IST