How do you identify a java process?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How do you identify a java process?
# 1  
Old 11-20-2012
How do you identify a java process?

Hi, how do you identify if a java process is running in Unix? So for example if I have 8 JVM's running but I want to make sure one of them has definately stopped?
# 2  
Old 11-20-2012
Have a look at jps. You might have to try different options to find out, which one helps you best to identifiy your apps, like:

Code:
# jps -l
13439 org.apache.catalina.startup.Bootstrap
26508 sun.tools.jps.Jps

Code:
# jps -m
27720 Jps -m
13439 Bootstrap start

Code:
# jps -v
27708 Jps -Dapplication.home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 -Xms8m
13439 Bootstrap -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -Xms1g -Xmx2g -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Dcatalina.base=/usr/share/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat6/temp -Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

---------- Post updated at 14:20 ---------- Previous update was at 12:56 ----------

Additional note: jps is part of the JDK, not the JRE.

Last edited by hergp; 11-20-2012 at 08:12 AM.. Reason: added more examples
These 2 Users Gave Thanks to hergp For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies

2. Solaris

Identify process sending ldap requests to old DNS server

Hi, I have a Solaris 10 system, which appears to be sending out LDAP queries to a server that is due to be decomissioned. Is there a way to identify which process is sending out these queries? The problem is that the local port constantly changes, and the connections do not stay open long... (3 Replies)
Discussion started by: badoshi
3 Replies

3. UNIX for Dummies Questions & Answers

Identify process/file relationship

Hey guys. So, I've got an issue on my Debian box. Problem is I ran out of disc space as a process (?) has been creating millions of folders in one place which has led to me having 0 bytes of free space and started messing with my ability to get online, I believe this is to do with INODES? I... (3 Replies)
Discussion started by: 3therk1ll
3 Replies

4. UNIX for Dummies Questions & Answers

Identify a particular process to kill

if a particular log file logs different processes with their process ids and their paths and one of the process in particular is getting hung up while trying to perform a loop, how to identify which process is that and kill it (1 Reply)
Discussion started by: praveenveerla
1 Replies

5. Shell Programming and Scripting

Sybase Process Killed - How to identify

I have this shell script and in case the sybase process is been killed how can identify whether the process was killed or not, as the error code always returns 0. #!/bin/sh isql -S SERVER -U user -P pass<<TOP select * from tableName go TOP echo $? (2 Replies)
Discussion started by: dinjo_jo
2 Replies

6. UNIX for Advanced & Expert Users

identify the unix process performing high disk i/o reads and writes

Guys, Is there any UNIX command that captures the 'Unix process which is performing high disk I/O reads and writes'. can you help me in this? -Swamy (6 Replies)
Discussion started by: avsswamy
6 Replies

7. Solaris

Identify process owning TCP connection on Solaris 10

I've been seeing outgoing TCP connections on a SPARC Solaris 10 box, that look like these in the output of netstat: xxxx.46396 ipXXXXXX.speed.planet.nl.telnet 8192 0 49664 0 TIME_WAIT They come and go and sometimes last for hours. I am looking for owners of active,... (1 Reply)
Discussion started by: cozzamara
1 Replies

8. UNIX for Dummies Questions & Answers

To identify process

i want a command to display all the process running for partical user and in all process i want to see only particular process details.. pls suggest comand like ps -ef (1 Reply)
Discussion started by: Babu154
1 Replies

9. Solaris

java process does not respawn

Hi, I am working on Solaris 8 on sunblade 150 machine.I have a java code jar file which I have configured in inittab to respawn.When I kill the process as per the respawn property the new process id gets generated.If I keep killing the process after 4-5 tries the process does not respawn.Sometimes... (0 Replies)
Discussion started by: girish_shukla
0 Replies

10. UNIX for Dummies Questions & Answers

identify parent process in ps?

I need to write a script to monitor user processes that revert to parent process id = 1 I can do this with a grep " 1 " or awk and evaluation. but Is there a switch on the ps command or another command to specify parent id on proccesses? I tried ps with the -p ppid=nnnnn but it... (6 Replies)
Discussion started by: MizzGail
6 Replies
Login or Register to Ask a Question