Unix, Solaris Process list without truncation
Thanks to John McClain from Sun. Sometimes i had problems identifing a specific process id. the standard ps command truncates the commandline arguments. To avoid this its possible to log the process id after having started a process:
echo §! > /tmp/myApplication.pid
Further, its easy to "calculate" uptimes with such an approach. If this is not present, try using another ps Command. Try:
/usr/ucb/ps -auxwww grep java
If its present, this ps dumps out processes without truncating commandlines. e.g.
o92 15294 0.0 2.614516026024 ? S Aug 05 0:54 /usr/j2se/bin/../bin/sparc/native_threads/java -Xms64m -Xmx256m -classpath ./../bin/bootstrap.jar:/usr/j2se/lib/tools.jar -Dcatalina.base=./.. -Dcatalina.home=./.. -DPROPERTIES_PATH=/oe/app/k3/tdk/bin org.apache.catalina.startup.Bootstrap start
echo §! > /tmp/myApplication.pid
Further, its easy to "calculate" uptimes with such an approach. If this is not present, try using another ps Command. Try:
/usr/ucb/ps -auxwww grep java
If its present, this ps dumps out processes without truncating commandlines. e.g.
o92 15294 0.0 2.614516026024 ? S Aug 05 0:54 /usr/j2se/bin/../bin/sparc/native_threads/java -Xms64m -Xmx256m -classpath ./../bin/bootstrap.jar:/usr/j2se/lib/tools.jar -Dcatalina.base=./.. -Dcatalina.home=./.. -DPROPERTIES_PATH=/oe/app/k3/tdk/bin org.apache.catalina.startup.Bootstrap start

0 Comments:
Kommentar veröffentlichen
<< Home