Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I often have several java programs running and I can't tell which one needs to be killed. The command section of the process table only shows java, but doesn't tell me which jar or class files it is running. Edit: Is there a way to see more of the command call from withing KSysGuard?

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted
  1. ps aux | grep java
  2. You look for the Process ID(PID) of the process you want and then you use kill command (for how to use kill read my post here)

Also read: here and here and here

An alternative: ps -fp $(pgrep -d, -x java) or you might use htop or top and search for java

share|improve this answer
    
Something staying with ksysguard would be prefered. –  Blake Aug 19 '10 at 16:54
add comment

A GUI alternative to Ksysguard is qps. It's perhaps less visually appealing that ksysguard, but it shows a lot more information, including the whole command line.

share|improve this answer
add comment

You want the wide output option "w". Using it three times will allow unlimited width.

ps auxwww
share|improve this answer
    
I was hoping there is a way to see more of the command within ksysguard. –  Blake Aug 19 '10 at 16:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.