Hi
Not a specific question on CentOS but in general about java processes running on Linux boxes.
I have a couple of java processes running on my linux boxes , They basically form a component of a bigger application. My point of interest is to monitor the resource usage of the java processes running on the linux box. So currently when i have these procs running on my box they show up as "java" in the ps -A command. I dont know for sure as to which java process belongs to which component of my appliacation. Hence what i do is add up all the resource utilization values for all java processes as my monitoring application relies on process names. So what i thought was , Is there a solution in linux or the way the JVM is initiated can we have process names different for different java processes. To be more specific if i have two java processes running in my system , in order to identify them properly can i have it running as java_1 or java_2 or something in those lines.
Please let me know if its possible.
Thanks Jatin
You might want to jump on the nagios list, and ask about monitoring a process on a box. --- Kind Regards, Mr Gabriel (bberry mail)
-----Original Message----- From: "Jatin Davey" jashokda@cisco.com Date: Mon, 24 May 2010 10:36:38 To: centos@centos.org Subject: [CentOS] Naming of a Java Process in Linux
Hi
Not a specific question on CentOS but in general about java processes running on Linux boxes.
I have a couple of java processes running on my linux boxes , They basically form a component of a bigger application. My point of interest is to monitor the resource usage of the java processes running on the linux box. So currently when i have these procs running on my box they show up as "java" in the ps -A command. I dont know for sure as to which java process belongs to which component of my appliacation. Hence what i do is add up all the resource utilization values for all java processes as my monitoring application relies on process names. So what i thought was , Is there a solution in linux or the way the JVM is initiated can we have process names different for different java processes. To be more specific if i have two java processes running in my system , in order to identify them properly can i have it running as java_1 or java_2 or something in those lines.
Please let me know if its possible.
Thanks Jatin _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
*Try htop, it might help you.* *http://htop.sourceforge.net/index.php?page=main *-------------------------- Best Wishes, Waleed Harbi
Dream | Do | Be
On Mon, May 24, 2010 at 9:20 AM, Mr Gabriel gabriel@impactteachers.comwrote:
You might want to jump on the nagios list, and ask about monitoring a process on a box.
Kind Regards, Mr Gabriel (bberry mail)
-----Original Message----- From: "Jatin Davey" jashokda@cisco.com Date: Mon, 24 May 2010 10:36:38 To: centos@centos.org Subject: [CentOS] Naming of a Java Process in Linux
Hi
Not a specific question on CentOS but in general about java processes running on Linux boxes.
I have a couple of java processes running on my linux boxes , They basically form a component of a bigger application. My point of interest is to monitor the resource usage of the java processes running on the linux box. So currently when i have these procs running on my box they show up as "java" in the ps -A command. I dont know for sure as to which java process belongs to which component of my appliacation. Hence what i do is add up all the resource utilization values for all java processes as my monitoring application relies on process names. So what i thought was , Is there a solution in linux or the way the JVM is initiated can we have process names different for different java processes. To be more specific if i have two java processes running in my system , in order to identify them properly can i have it running as java_1 or java_2 or something in those lines.
Please let me know if its possible.
Thanks Jatin _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
linux box. So currently when i have these procs running on my box they show up as "java" in the ps -A command. I dont know for sure as to which
if you can use the 'f' option in your ps command, you will get the arguments used to start the JVM. This may provide you with enough information to distinguish between them them
e.g.: ps -Af | grep java
identify them properly can i have it running as java_1 or java_2 or
as far as I know, it is not (easily) possible
You could give a try to the jconsole tool which comes with the JDK (in package java-1.6.0-openjdk-devel), it allows you to monitor Java processes precisely (either local or remote via JMX).
The Eclipse TPTP project also provides a lot of tools, but this would probably be an overkill in your case.
Le 2010-05-24 à 06:21, Mathieu Baudier a écrit :
linux box. So currently when i have these procs running on my box they show up as "java" in the ps -A command. I dont know for sure as to which
if you can use the 'f' option in your ps command, you will get the arguments used to start the JVM. This may provide you with enough information to distinguish between them them
e.g.: ps -Af | grep java
identify them properly can i have it running as java_1 or java_2 or
as far as I know, it is not (easily) possible
You could give a try to the jconsole tool which comes with the JDK (in package java-1.6.0-openjdk-devel), it allows you to monitor Java processes precisely (either local or remote via JMX).
+1 for JMX, and someone wrote a Nagios plugin that use JMX to monitor some parts of Java processes :
http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/c...
Jatin,
On 24 May 2010 06:06, Jatin Davey jashokda@cisco.com wrote:
show up as "java" in the ps -A command. I dont know for sure as to which java process belongs to which component of my appliacation. Hence what i do is add up all the resource utilization values for all java processes
Add a -Darbitrary_string into your java commands.
Unless you are very unlucky with your arbitrary string, these will be passed to the java engine as parameters and will be ignored by the rest of the application. Then you can use this to pin the process in ps output.
On Sun, May 23, 2010 at 10:06 PM, Jatin Davey jashokda@cisco.com wrote:
Hi
Not a specific question on CentOS but in general about java processes running on Linux boxes.
I have a couple of java processes running on my linux boxes , They basically form a component of a bigger application. My point of interest is to monitor the resource usage of the java processes running on the linux box. So currently when i have these procs running on my box they show up as "java" in the ps -A command. I dont know for sure as to which java process belongs to which component of my appliacation. Hence what i do is add up all the resource utilization values for all java processes as my monitoring application relies on process names. So what i thought was , Is there a solution in linux or the way the JVM is initiated can we have process names different for different java processes. To be more specific if i have two java processes running in my system , in order to identify them properly can i have it running as java_1 or java_2 or something in those lines.
Use
ps auxwww
to identify the process, and you can use
jconsole
(which is bundled with jdk) to monitor.