Skip to content
share library_books

Switching Agent Modes

From In-Process to Standalone

  1. Adjust your service startup scripts by removing the javaagent definition and adding parameters described in standalone mode

  2. Edit properties file of your system found in /spm/spm-monitor/conf/ directory (in case you are using Hadoop or HBase system which has multiple nodes, adjust properties files of nodes for which you want to change the mode). Set:

    • SPM_MONITOR_IN_PROCESS="false"
    • SPM_MONITOR_JMX_PARAMS should be adjusted according to instructions in Java App Agent Standalone
  3. Restart SPM Monitor:

    bash sudo /etc/init.d/spm-monitor restart

  4. restart the service you are monitoring

From Standalone to In-Process

  1. Add javaagent definition to startup script of your service according to notes on Monitoring page under in-process tab

  2. Edit properties file of your system found in /spm/spm-monitor/conf/ directory (in case you are monitoring a service with multiple nodes, adjust properties files of nodes for which you want to change the mode). Set:

    • SPM_MONITOR_IN_PROCESS="true"
    • SPM_MONITOR_JMX_PARAMS=""
  3. Restart SPM monitor:

    bash sudo /etc/init.d/spm-monitor restart

  4. restart the service you are monitoring