Switching Agent Modes
From In-Process to Standalone¶
-
Adjust your service startup scripts by removing the javaagent definition and adding parameters described in standalone mode
-
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
-
Restart Sematext Agent:
bash sudo service sematext-agent restart
-
restart the service you are monitoring
From Standalone to In-Process¶
-
Add javaagent definition to startup script of your service according to notes on Monitoring page under in-process tab
-
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=""
-
Restart Sematext Agent:
bash sudo service sematext-agent restart
-
restart the service you are monitoring