Set up a Memory Analysis Server

The AppMon Memory Analysis Server is used solely for post-processing memory snapshots. It should not be confused with the AppMon Frontend Server, which serves other analysis data to the AppMon Client.

Configure memory

Before starting the AppMon Memory Analysis Server, adjust the memory settings in the main configuration file dtanalysisserver.ini. Set the option -Xmx to the maximum heap size of applications + 25% to analyze.

The following is an example of the code to add to dtanalysisserver.ini.

...
-Xmx2048M
-Xms128M
-XX:MaxPermSize=128M
-XX:PermSize=128M
...

The -XX:+UseCompressedOops option is automatically appended when you use the 64-bit installer.

Configure the port

The Memory Analysis Server listens on a specified port for incoming connections from the AppMon Server. To change the default port number, add -Dcom.dynatrace.diagnostics.listen=[<ip>]:<port> to the dtanalysisserver.ini file.

Start and stop the Memory Analysis Server

On Windows, you can start the Memory Analysis Server service from the Start menu, the command line, or the Services control panel. The registered service name is *Dynatrace Memory Analysis Server* <version>. The service runs with restricted permissions as Local Service.

Note

If you change any output directories (such as the session directory), make sure the AppMon Server service has sufficient privileges in the new directory.

To start the Memory Analysis Server from the command line, change to the DT_HOME and execute:

dtanalysisserver.exe -service start

To list all the available options, execute dtanalysisserver.exe -?, which displays the following: