TDM Portal: How to Increase JVM Memory
search cancel

TDM Portal: How to Increase JVM Memory

book

Article ID: 10602

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

The server running TDM Portal has a lot of memory available.
To ensure effective use of resources and gain better performance from the TDM Portal, the JVM memory allocation can be increased.

 

Cause

TDM Portal is based on Apache Tomcat. The Java Run-time Environment (JRE) sets the initial and maximum heap size based on the total amount of physical memory that is available.
For a server-based OS, this is generally 1/64th of total physical for initial allocation and 1/4th of total physical for the maximum allocation.

On a system with 16 GB RAM, this would equate to 256 MB and 4 GB, respectively.

Resolution

The TDM Portal service uses the "Java Service Wrapper" in order to start the Java process on Windows.

The wrapper.conf file contains configuration options for Initial and Maximum memory which can be modified.

The default location of this file is: C:\Program Files\CA\CA Test Data Manager Portal\service\conf\wrapper.conf

The values need to be un-commented and changed to the desired values:

# Initial Java Heap Size (in MB)
wrapper.java.initmemory=3072

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=6144

The example above, (using the same 16 Gig server) would change the initial value from 256 Megs to 3 Gigs and the Max value from 4 Gigs to 6 Gigs.

 

Once the file has been modified, save it and recycle the "CA Test Data Manager Portal" service.

Additional Information

The initial and max heap sizes can be validated using the command: jinfo

jinfo -flag InitialHeapSize [PID]
jinfo -flag MaxHeapSize [PID]

Note: The jinfo command works best when the versions of the JDK and JRE are properly matched. You can confirm the java version used by TDM Portal by running the following command:

"C:\Program Files\CA\CA Test Data Manager Portal\jre\bin\java.exe" -version

"Java Service Wrapper" Documentation for the above referenced properties.

https://wrapper.tanukisoftware.com/doc/english/prop-java-initmemory.htmlwrapper.java.initmemory

https://wrapper.tanukisoftware.com/doc/english/prop-java-maxmemory.htmlwrapper.java.maxmemory