From: Trey <sig...@hy...> - 2010-06-27 07:00:06
|
I'm having some difficulting identifying a unique java process. sigar> pargs State.Name.eq=java pid=64486 0=>/usr/local/openjdk6//bin/java<= 1=>-jar<= 2=>./bundles/agent-4.3.0-1443/pdk/lib/sigar.jar<= ------------------------ pid=64418 ------------------------ pid=64383 ------------------------ pid=53889 ------------------------ pid=31110 ------------------------ All the info I get about other processes is just pid... I'm running sigar.jar as the root user. This is FreeBSD 8 BTW. Is it possible to use a process.query that just pulls the pid out of a pid file? |
From: Mirko P. <m.p...@gm...> - 2010-06-24 23:52:54
|
Hi, please check out the documentation, especially look for ps Pid.PidFile.eq=/var/run/sshd.pid http://support.hyperic.com/display/SIGAR/PTQL Mirko |
From: Trey <sig...@hy...> - 2010-06-27 07:00:09
|
Great, thanks, I'll take a look at that... but I'll still have to find a way to coerce activemq into writing a pid file. Anyone have any idea how to get sigar to report params? |
From: Jeppe T. <sig...@hy...> - 2010-06-27 07:00:09
|
Have you tried out "pinfo State.Name.eq=java"? It may show more distinct information about each of the Java processes. |
From: Trey <sig...@hy...> - 2010-06-27 07:00:10
|
Nothing useful enough to truly uniquely identify the activemq process. sigar> pinfo State.Name.eq=java pid=67882 state={Name=java, State=S, Ppid=67778, Priority=134, Nice=0} mem={Resident=25604096, Size=1310720} cpu={User=215, LastTime=1277484599573, Percent=0.0, StartTime=1277484589791, Total=229, Sys=14} ------------------------ pid=64486 state={Name=java, State=S, Ppid=64349, Priority=128, Nice=0} mem={Resident=25317376, Size=1310720} cpu={User=9952, LastTime=1277484599574, Percent=0.0, StartTime=1277403596942, Total=24433, Sys=14481} ------------------------ pid=64418 state={Name=java, State=S, Ppid=64410, Priority=132, Nice=0} mem={Resident=102281216, Size=1179648} cpu={User=56602, LastTime=1277484599574, Percent=0.0, StartTime=1277402346198, Total=96298, Sys=39696} --More-- (Page 1 of 2) ------------------------ pid=64383 state={Name=java, State=S, Ppid=64375, Priority=128, Nice=0} mem={Resident=119799808, Size=1179648} cpu={User=35143, LastTime=1277484599574, Percent=0.0, StartTime=1277402254890, Total=53201, Sys=18058} ------------------------ pid=31110 state={Name=java, State=S, Ppid=1, Priority=128, Nice=0} mem={Resident=204992512, Size=1310720} cpu={User=5575093, LastTime=1277484599575, Percent=0.0, StartTime=1274152090341, Total=9598637, Sys=4023544} ------------------------ |
From: Doug M. <do...@hy...> - 2010-07-14 18:56:50
|
Have a look at the process arguments: sigar> pargs State.Name.eq=java The activemq plugin that ships with HQ uses something like: State.Name.eq=java,Args.*.sw=-Dactivemq.home |
From: Trey <sig...@hy...> - 2010-07-20 20:02:01
|
Thanks Doug, but that is exactly my problem. pargs can't get process data for ANY other process on FreeBSD (works fine on Solaris). sigar> pargs State.Name.eq=java pid=34692 0=>/usr/local/openjdk6/bin/java<= 1=>-jar<= 2=>lib/sigar.jar<= ------------------------ pid=64418 ------------------------ pid=64383 ------------------------ pid=31110 ------------------------ sigar> pargs State.Name.eq=java,Args.*.sw=-Dactivemq.home sigar> Additionally, I wasn't able to locate any setup instructions at all for the activemq plugin, it didn't have a helpful how to guide at the bottom of the config screen like Tomcat and all the docs I found by googling hyperic.com where very out of date. The activemq example you used won't work since I'll never be able to use the Args.*.sw selector. |
From: Doug M. <do...@hy...> - 2010-07-14 22:03:22
|
Whoops, missed that in the start of the thread. It does get the sigar.jar process args at least. What about everything else: pargs State.Name.ne=java I've only had a brief stint with FreeBSD 8 and that was a beta version, but have been meaning to bring up a instance with the release version. I'll try to do that this week. In the meantime, you can always manually create a new Server of type ActiveMQ, the default jmx.url is configured in the activemq startup script iirc. You can also automate the task using hqapi. But ideally we'll just be fixing sigar to get the process arguments. |
From: Trey <sig...@hy...> - 2011-02-17 18:57:03
|
Looks like the process information situation improves somewhat on FreeBSD when you mount procfs. I'll see if that helps sigar any in a few days. |