How can I stop AppMon server on Linux so that the server stays stopped? I started the server by running <DT_HOME>/init.d/dynaTraceServer start. When I grep for dtserver there are two processes. One is <DT_HOME>/dtserver -bg and the second is the java process of dtserver. When running <DT_HOME>/init.d/dynaTraceServer stop, the first background process remains. The java process goes away but immediately a new process starts. I would like to stop the AppMon server to keep it down.
Answer by Steve K. ·
I solved my issue. I recently moved dynaTrace server from Windows to Linux bringing the entire configuration over. There is an argument in the <dthome>/dtserver.ini file that is apparently required for Windows, but not for Linux. I removed the -Xrs argument from the ini file and the stop command worked. The function of -Xrs according to java -X is to reduce the use of OS signals by Java/VM.
Answer by Srikar M. ·
Hi Steve,
Running ./dynaTraceServer stop should stop the dT server process. After you run the stop command switch to log/server directory and tail the Server.0.0.log, sometimes it takes couple of minutes to completely bring the server process down.
Alternately you can stop the server service from the dT client by right clicking on where it says "System Profile" and selecting Shutdown.
Hope this helps.
Srikar
Stopping the server service from the dT client by right clicking on System Profile and selecting Shutdown works. However, running ./dynaTraceServer stop only restarts the dT server. There is no indication in Server.0.0.log that a stop command was ever run. Only the server restarting is eveident. I need to find a command line way to stop dT server from the server.
last log message before stop comand: 2014-04-16 12:17:53 INFO [WatchDog] Connected successfully to native watchdog on localhost:50000
Below are the lines that immediately follow after stop is issued. I've included the above line for reference.
2014-04-16 12:17:53 INFO [WatchDog] Connected successfully to native watchdog on localhost:50000
+-----------------------------------------------------------------------------
+ dynaTrace Server Copyright (C) 2004-2013 Compuware Corporation
+-----------------------------------------------------------------------------
+ Version 5.6.0.5713 built Fri Jan 03 03:14:31 EST 2014
+ Platform: Linux 2.6.32-431.5.1.el6.x86_64, amd64 64bit
+ vm: Java HotSpot(TM) 64-Bit Server VM 1.7.0_45, Oracle Corporation, mixed mode
2014-04-16 12:19:45 INFO [Server] Client SSL listen port: 2021
2014-04-16 12:19:45 INFO [Server] Collector listen port: 6698
2014-04-16 12:19:45 INFO [Server] Collector SSL listen port: 6699
2014-04-16 12:19:45 INFO [Server] Agent listen port: 9998
JANUARY 15, 3:00 PM GMT / 10:00 AM ET