If you are having trouble starting the EUM Server as a Windows service, you can use a batch command to start it.
Follow the steps below to use a batch command to start the EUM Server:
- Download the Apache Common Daemon Procrun.
- Create the file
eum-start.bat
with the following code:
set SRV_PATH=C:\AppDynamics\EUM\commons-daemon-1.1.0-bin-windows\amd64
set EUM_SERVICE_NAME=AppDynamics EUM Server Test
set EUM_DIR=C:\AppDynamics\EUM
set JVM_MX=4096m
set JVM_MS=4096m
"%SRV_PATH%\prunsrv" //IS//"%EUM_SERVICE_NAME%"^
--DisplayName="%EUM_SERVICE_NAME%"^
--Description="%EUM_SERVICE_NAME%"^
--Startup=auto^
--Install="%SRV_PATH%\prunsrv.exe"^
--Jvm="%EUM_DIR%\jre\bin\server\jvm.dll"^
--Classpath="%EUM_DIR%\eum-processor\lib\*"^
--JavaHome="%EUM_DIR%\jre"^
--JvmOptions=-DEUM_COMPONENT=processor^
++JvmOptions=-Dlogback.configurationFile=bin/logback.xml^
++JvmOptions=-Dcom.mchange.v2.c3p0.cfg.xml=bin/c3p0.xml^
--JvmMx=%JVM_MX%^
--JvmMs=%JVM_MS%^
--StartPath="%EUM_DIR%\eum-processor"^
--StartMode=jvm^
--StartClass=com.appdynamics.eumcloud.EUMProcessorServer^
--StopMode=jvm^
--StopClass=com.appdynamics.eumcloud.EUMProcessorServer^
--LogLevel=DEBUG^
--StdOutput="%EUM_DIR%\logs\eum-processor.log"^
--StdError="%EUM_DIR%\logs\eum-processor-error.log"
"%SRV_PATH%\prunsrv.exe" //RS//"%EUM_SERVICE_NAME%"
- Edit the file with the correct file paths and parameters.
- Place the file in the directory
<EUM_processor>/bin
.
- Run the batch file.
- You should see that the service for the EUM Server has been created.
- Start the EUM Server by clicking Start on the service.
- To stop the service, click Stop.