Solaris Ascendency To Demonstrate Long Declaration Listing Of A Running Process
One of the work alongside ps command, which is a pop tool to honour whatever processes along alongside grep ascendency inward Solaris operating organization is that it doesn't demo total ascendency business declaration of process. This agency if y'all are doing grep on whatever text which seem at tail destination of long ascendency line, y'all volition probable non able to capture that procedure past times using ps and grep. This is unsafe because it may Pb y'all to assume that sure enough procedure is non running as well as y'all may restart it again, despite its existence running as well as solely because y'all didn't honour the process. This is quite mutual acre running Java procedure inward whatever UNIX operating organization e.g. Solaris, Linux, IBM AIX etc because Java procedure unremarkably has long listing of arguments e.g. system properties, JVM options, and name of brain class. I convey faced this work quite few fourth dimension fifty-fifty after using ps -ef option. Until instantly I convey non institute whatever compelling solution for this work which volition operate on all UNIX systems, except for Solaris, which I am going to part alongside y'all guys. So, my solely advice is to pose the keyword inward caput of long ascendency business declaration as well as effort to perish along Java ascendency business every bit pocket-sized every bit possible. Also prefer using ps -auxww over ps -ef, former improve display long ascendency business than afterward as well as y'all convey higher risk of capturing the procedure past times using grep alongside tail keywords.
which shows total ascendency business of a procedure if y'all know procedure id (PID). It's non a replacement of ps command simply nevertheless a expert tool to meet total ascendency business of whatever procedure inward Solaris. Here is an event of how y'all tin utilisation prstat as well as pargs ascendency inward Solaris to honour a running procedure as well as demo its consummate listing of argument.
Command to honour out procedure which is using high CPU
You tin meet hither that our Java procedure 28525 is using 3.5% of CPU as well as it has 833 threads. Now nosotros involve to honour out consummate listing of arguments passed to this procedure from ascendency business acre starting it. It doesn't affair if it is started from a script or straight because inward UNIX, start-up script volition survive a unlike procedure than your Java application.
Solaris ascendency to demo consummate listing of arguments of a running process
Bingo, instantly y'all tin meet that what declaration has passed to procedure alongside PID 28525. You tin meet that commencement declaration is Java executable itself. You tin honour out your JDK location every bit good every bit Java version publish e.g. hither JDK is located at /opt sectionalization as well as Java version is JDK 1.6.0_22. Next y'all tin meet the declaration transcend to JVM e.g. -server shows that its running on server mode. You tin also meet other garbage collection options, startup as well as max memory provided to server as well as it's classpath. I convey non shown total classpath hither purposefully simply when y'all run this ascendency inward Solaris past times yourself, y'all volition meet all the arguments passed to your Java process.
That's all on How to demo long ascendency business of a procedure running on Solaris operating system. This is a rattling useful ascendency to troubleshoot Java procedure alongside long listing of arguments e.g. y'all tin cheque what JVM parameters has been passed to your Java process, value of key configuration parameters as well as y'all tin also honour how much maximum retentiveness is allocated to your Java application.
Further Learning
Linux Command Line Basics
Linux Command Line Interface (CLI) Fundamentals
Learn Linux inward five Days as well as Level Up Your Career
Solaris ascendency to display long arguments of running process
Putting of import keywords e.g. get upwards of your Java procedure at the start of declaration listing is Ok simply what if y'all actually involve total ascendency business declaration of whatever procedure inward UNIX environment? Sure at that topographic point must survive around ascendency which tin give y'all consummate ascendency business of a running process, no? Well, I didn't know nearly it despite using UNIX as well as Linux from long fourth dimension until lately when I actually needed total ascendency business declaration a Java procedure which is taking most of CPU from that machine. I institute the procedure id (PID) of that Java procedure using prstat ascendency as well as and hence I tried to meet that procedure using ps ascendency for that procedure simply didn't meet total ascendency line. Few Google search reveals a ascendency called pargsCommand to honour out procedure which is using high CPU
[test@localhost] > prstat -scpu PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 28525 test 860M 615M slumber 59 0 80:35:02 3.5% java/833 19681 test 431M 361M cpu0 thirty 0 2:57:43 3.1% ksh/2
Solaris ascendency to demo consummate listing of arguments of a running process
[test@localhost]> pargs 28525 pargs: Couldn't decide locale of target process. pargs: Some strings may non survive displayed properly. 28525: /opt/jdk1.6.0_22/bin/java -server -Dsun.rmi.dgc.cli argv[0]: /opt/jdk1.6.0_22/bin/java -server -Dsun.rmi.dgc.cli argv[1]: -server argv[2]: -Dsun.rmi.dgc.client.gcInterval=3600000 argv[3]: -Dsun.rmi.dgc.server.gcInterval=3600000 argv[4]: -verbose:gc argv[5]: -Xloggc:./logs/GC.log argv[6]: -XX:+PrintGCTimeStamps argv[7]: -verbose:gc argv[8]: -Xloggc:./logs/GC.log argv[9]: -XX:+PrintGCTimeStamps argv[12]: -Xms2048M argv[13]: -Xmx2048M argv[14]: -cp
Bingo, instantly y'all tin meet that what declaration has passed to procedure alongside PID 28525. You tin meet that commencement declaration is Java executable itself. You tin honour out your JDK location every bit good every bit Java version publish e.g. hither JDK is located at /opt sectionalization as well as Java version is JDK 1.6.0_22. Next y'all tin meet the declaration transcend to JVM e.g. -server shows that its running on server mode. You tin also meet other garbage collection options, startup as well as max memory provided to server as well as it's classpath. I convey non shown total classpath hither purposefully simply when y'all run this ascendency inward Solaris past times yourself, y'all volition meet all the arguments passed to your Java process.
That's all on How to demo long ascendency business of a procedure running on Solaris operating system. This is a rattling useful ascendency to troubleshoot Java procedure alongside long listing of arguments e.g. y'all tin cheque what JVM parameters has been passed to your Java process, value of key configuration parameters as well as y'all tin also honour how much maximum retentiveness is allocated to your Java application.
Further Learning
Linux Command Line Basics
Linux Command Line Interface (CLI) Fundamentals
Learn Linux inward five Days as well as Level Up Your Career

0 Response to "Solaris Ascendency To Demonstrate Long Declaration Listing Of A Running Process"
Post a Comment