Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How do you identify a java process? Post 302733321 by hergp on Tuesday 20th of November 2012 08:20:43 AM
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:
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
AIRPORT-CONFIG(1)					      General Commands Manual						 AIRPORT-CONFIG(1)

NAME
airport-config - Configurator for the original Apple AirPort Base Station ("Graphite") and the Lucent RG-1000 base station SYNOPSIS
airport-config DESCRIPTION
airport-config allows you to manage your AirPort base station, just like the AirPort software on Mac OS X. OPTIONS
airport-config accepts no command-line options. airport-config is a wrapper script around the AirportBaseStationConfigurator.jar jar file located in /usr/share/java/airport-utils. You can set the JAVACMD environment variable to use a specific JVM instead of the one chosen by the wrapper script. Set the DEBUG environ- ment variable to 1 to get the debug output from the wrapper script. ENVIRONMENT VARIABLES
DEBUG Set this variable to 1 to get the debug output from the wrapper script. JAVACMD The full path to the Java Virtual Machine to use. By default, the wrapper uses JAVACMD; if it is not set, it looks for JAVA_BINDIR/java, then for JAVA_HOME/bin/java before looking for a java executable in the PATH. In the latter case, the JVM used can be configured using the Debian alternatives system (see update-alternatives(8)). JAVA_HOME The full path where your JDK/JRE is installed. JAVA_BINDIR The full path to the directory where the java executable is located. JAVA_ARGS Extra command-line arguments to be passed to the Java Virtual Machine. AUTHOR
airport-config was written by Jon Sevy <jsevy@cs.drexel.edu>. This manual page was written by Julien BLACHE <jblache@debian.org>, for the Debian project (but may be used by others). May 20, 2006 AIRPORT-CONFIG(1)
All times are GMT -4. The time now is 06:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy