Capture complete process structure/stack
Hi All,
There are a lot of java processes running on the server, generally, we capture the PIDs of the java processes using command 'ps -ef | grep java'. In general, the java processes have a lot of jars in their structure like the following ======================================================== java -DCORDYS_INSTALL_DIR=/opt/abcd/clouprod01 -cp "/opt/abcd/clouprod01/scp.jar:/opt/abcd/clouprod01/scp.jar:/usr/lib/mysql-connector-java-5.1.22-bin.jar::/usr/lib/mysql-connector-java-5.1.22-bin.jar: com.eibus.tools.admin.cmc" -DProcessName=ABCD ===================================================== In the above java process, there are a few parameters which are passed as arguments to the java process like "-DProcessName=ABCD". In my case, for few java processes, there are almost 50 jar files which get loaded when the java process starts. As a result of that, the result of the ps command is not showing the full structure/stack of the java process. The results are coming like ====================================================== java -DCORDYS_INSTALL_DIR=/opt/abcd/clouprod01 -cp "/opt/abcd/clouprod01/scp.jar:/opt/abcd/clouprod01/scp.jar: ====================================================== Can anyone help us in tracing the full structure/stack of the java process using either PS command or any other command. |
|
Hi Habitual,
Its not a duplicate post, this post is about getting the complete trace of the java process, where as the earlier one was capturing a word from the java process |
You could try
Code:
tr '\0 ' ' < /proc/PID/cmdline |
Quote:
java all looks the same to me? |
All times are GMT -5. The time now is 09:03 PM. |