Views:

To Heap Dump threshold at 90% total heap memory usage, follow these steps:

  1. Switch to root on terminal or admin on cmd.
  2. Change path to the DSM installation directory.
  3. Run the following commands:

    dsm_c -action changesetting -name settings.configuration.memoryManagerThresholdAutoHeapDump -value true
    dsm_c -action changesetting -name settings.configuration.memoryManagerThreshold -value 0.9

The first command above will enable Java Heap Dump. The second command sets the threshold, 90% as shown in the example above. When the DSM process reaches 90% memory usage, it will generate Java Heap Dump.

To enable Heap Dump generation when manager is getting out of memory error, follow these steps:

  1. SSH to the target DSM Linux server and switch to root.
  2. Edit or create the dsm_s.vmoptions file.

    # vi /opt/dsm/dsm_s.vmoptions

  3. Add a new line and enter this configuration.

    -XX:+HeapDumpOnOutOfMemoryError

  4. Below is an example what the content of the file looks like:

    [root@ip-x.x.x.x /]# cat /opt/dsm/dsm_s.vmoptions
    -Xmx6g
    -XX:+HeapDumpOnOutOfMemoryError