Submit a ticketCall us

Welcome to the NEW Success Center. Search all resources (documentation, videos, training, knowledge base articles) or browse resources by product. If you are unable to find what you are looking for, please contact us at customersuccess@solarwinds.com

 

 

 

 

Home > Success Center > Database Performance Analyzer (DPA) > Stack size error using DPA with 64-bit Java

Stack size error using DPA with 64-bit Java

 

Issue

On some Operating Systems, the 64-bit JRE requires a larger stack size than the default of 128K. If this is the case, DPA will not start and will report an error like the following:

stack size specified too small, specify at least xxxK

 

DPA 10.0 on Solaris      

In DPA 10.0 on Solaris the default stack size proved to be too small and increasing to 512k allows DPA to start. This was corrected in DPA 10.1 by increasing the default stack size To run DPA 10.0 on Solaris 

edit the file  /iwc/tomcat/bin/catalina.sh 

edit this section change STACK_SIZE to 512k

if [ ! -f "${PRGDIR}/iam_32bit_install.txt" ]
then
        # 64-bit JVM args

        if [ -z "$STACK_SIZE" ] ; then
                STACK_SIZE="264k"
        fi
        if [ -z "$MAX_HEAP_MEMORY" ] ; then
                MAX_HEAP_MEMORY="1024m"
        fi
else
        # 32-bit JVM args

        if [ -z "$STACK_SIZE" ] && [ "$1" != "stop" ] ; then
                STACK_SIZE="200k"
        fi
        if [ -z "$MAX_HEAP_MEMORY" ] ; then
                MAX_HEAP_MEMORY="512m"
        fi
fi


if [ -z "$MIN_HEAP_MEMORY" ] ; then
        MIN_HEAP_MEMORY="256m"
fi
 

 

Instructions for DPA 9.1 

DPA 9.1 is primarily provided as the 64-bit option, which uses a default stack size of 256K. The 32-bit DPA option defaults to 128k stack size. This should be sufficient, but you may need to increase it if you are getting stack size errors. For example, the following instructions show how to set the stack size to 320k.

  1. Open the following file:
    installdir/iwc/tomcat/ignite_config/idc/server.properties
  2. If DPA is not running as a Windows Service or DPA is running on UNIX/Linux:
    1. look for the following line (need to specify the "k"):
      java.stack.size=
      and change the line to:
      java.stack.size=320k
    2. Restart DPA.
  3. If DPA is running as a Windows Service, look for the following line:
    windows.service.java.stack.size.kb=
    and change the line to (notice no "k"):
    windows.service.java.stack.size.kb=320
  4. Remove and then recreate the DPA/Ignite Server service:
    1. Open a command window and change directory to: installdir
    2. Run: removeWindowsService.bat
    3. Run: createWindowsService.bat
    4. Wait for DPA to complete the startup sequence.

Instructions for DPA 9.0 and below

To increase the stack size on UNIX/Linux:

  1. Open the following file: installdir/iwc/tomcat/bin/catalina.sh
  2. Look for the following line: JAVA_OPTS="$JAVA_OPTS -Xss128k"
  3. Change the line to: JAVA_OPTS="$JAVA_OPTS -Xss256k"
  4. Restart DPA.

To increase the stack size on Windows:

  1. Open the following file: installdir/iwc/tomcat/bin/service.bat
  2. Look for the following line: set JAVA_STACK_SIZE=128
  3. Change the line to: set JAVA_STACK_SIZE=256
  4. Remove and then recreate the Ignite Server service:
    1. Open a command window and change directory to installdir
    2. Run: removeWindowsService.bat
    3. Run : createWindowsService.bat
    4. Wait for DPA to complete the startup sequence.

 

Last modified
19:18, 22 Jun 2016

Tags

Classifications

Public