Increasing the Java heap size

After you configure the Cisco UCS agent, if you are monitoring a large Cisco UCS environment, then you might need to increase the heap size for the Java™ data provider.

About this task

The default heap size for the Java™ data provider is 256 megabytes. In large Cisco UCS environments, if the following problems arise, then you might need to increase the heap size:
  • The Java data provider stops because of a javacore problem, and creates a file that is named javacore.date.time.number.txt in the CANDLEHOME\tmaitm6_x64 directory.
  • The javacore.date.time.number.txt file contains the string java/lang/OutOfMemoryError.

Procedure

  • Windows Complete the following steps to set a value of 1 GB as heap size:
    1. Open the %CANDLE_HOME%\TMAITM6_x64\kv6_data_provider.bat file.
    2. Add the following line before the line that starts with KV6_JVM_ARGS="$KV6_CUSTOM_JVM_ARGS...:
      SET KV6_CUSTOM_JVM_ARGS=-Xmx1024m
    3. Restart the agent.
  • Linux Complete the following steps to set a value of 1 GB as heap size:
    1. Open the $CANDLEHOME/lx8266/vm/bin/kv6_data_provider.sh file.
    2. Add the following line before the line that starts with KV6_JVM_ARGS="$KV6_CUSTOM_JVM_ARGS...:
      KV6_CUSTOM_JVM_ARGS=-Xmx1024m
    3. Restart the agent.