LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-10-2004, 09:38 AM   #1
eblack
LQ Newbie
 
Registered: Sep 2004
Location: Boston
Distribution: ubuntu
Posts: 3

Rep: Reputation: 0
Unable to kill Java process on Fedora Core 2


I have two instances of Tomcat(5.0.27) running on a Solaris dual processor blade server using Java 1.4.2. Seventy percent of the time, everything runs great, but occasionally one of the Tomcat/Java processes spins out of control and hogs most of the CPU resources. When that happens, I can't stop the process with a 'kill -9 ...' command, I have to restart the server.

I know it sounds crazy and my system admins didn't believe it until they saw it for themselves. I have a feeling that the JVM is intercepting the SIGKILL signal. Any help or direction would be greatly appreciated.

Eric
 
Old 12-22-2004, 11:45 PM   #2
dragoncity99
Member
 
Registered: Dec 2004
Location: Malaysia
Distribution: Redhat/Fedora Core, Slackware, Ubuntu, Knoppix, Gentoo, SUSE, Ubuntu
Posts: 40

Rep: Reputation: 15
Yeah, im having the same problem killing the java process. I was running a jar file which is executable.
 
Old 12-22-2004, 11:55 PM   #3
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
If the server/process has been started as root or as another user such as tomcat or www, you can only kill it as root.
 
Old 12-24-2004, 12:04 AM   #4
dragoncity99
Member
 
Registered: Dec 2004
Location: Malaysia
Distribution: Redhat/Fedora Core, Slackware, Ubuntu, Knoppix, Gentoo, SUSE, Ubuntu
Posts: 40

Rep: Reputation: 15
Hi,

Im using root to kill the process but the process does not terminate. Under the
"grep psaux | grep java" command, the

pts/xxx -----is a----> ? sign

Thank u in advance.
 
Old 12-25-2004, 03:51 PM   #5
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
if you have the command pidof available, to
pidof java|xargs kill -9
 
Old 12-25-2004, 08:06 PM   #6
dragoncity99
Member
 
Registered: Dec 2004
Location: Malaysia
Distribution: Redhat/Fedora Core, Slackware, Ubuntu, Knoppix, Gentoo, SUSE, Ubuntu
Posts: 40

Rep: Reputation: 15
Thank u very much again. I will give it a try.
 
Old 12-26-2004, 07:44 PM   #7
dragoncity99
Member
 
Registered: Dec 2004
Location: Malaysia
Distribution: Redhat/Fedora Core, Slackware, Ubuntu, Knoppix, Gentoo, SUSE, Ubuntu
Posts: 40

Rep: Reputation: 15
Hi,

it doesnt work. Any suggestions/other solutions to this problem? My cups service is having the same problem lately too.
 
Old 12-27-2004, 01:04 PM   #8
eblack
LQ Newbie
 
Registered: Sep 2004
Location: Boston
Distribution: ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
I had forgotten about this post. I had the system admin try to figure out what the problem was and he wasn't able to fix the problem until he upgraded the kernel to 2.6.8. The same problem happened on another machine with FC2 as well and he upgraded to 2.6.9 to fix the problem.
 
Old 03-18-2005, 08:06 PM   #9
dragoncity99
Member
 
Registered: Dec 2004
Location: Malaysia
Distribution: Redhat/Fedora Core, Slackware, Ubuntu, Knoppix, Gentoo, SUSE, Ubuntu
Posts: 40

Rep: Reputation: 15
Yeah, it's a big problem.

I managed to solve this problem by upgrading to Fedora Core 3.

Everything is solved now. ^_^

Thank u very much all.
 
Old 04-06-2005, 08:56 PM   #10
tham123
LQ Newbie
 
Registered: Apr 2005
Posts: 1

Rep: Reputation: 0
Hi,

I am using Fedora 3 and still having problems to kill process, even as root user, kernel version is 2.6.9-1.667smp. Any other suggestions?... I think this is really a SERIOUS issue. tks.

regrads,
thamch
 
Old 04-07-2005, 02:49 AM   #11
dragoncity99
Member
 
Registered: Dec 2004
Location: Malaysia
Distribution: Redhat/Fedora Core, Slackware, Ubuntu, Knoppix, Gentoo, SUSE, Ubuntu
Posts: 40

Rep: Reputation: 15
I'm using jsdk 1.4.2_06.

I do encounter unterminated process,
but it's able to be terminated. (Very rarely however it happen)

1. Goto "System"->"KDE System Guard"
2. Choose the "Process Table" table. Click on the service that u want to kill.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Open vpn kill on Fedora Core 3 omid1979 Linux - Networking 0 07-01-2005 07:38 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM
Startup process in Fedora core 2 cabua99 Red Hat 1 01-25-2005 12:51 PM
booting process (Fedora Core 2) chunlee Linux - General 3 10-12-2004 08:08 AM
Fedora Core 2 Kernel Panic: Attempt to kill init! ghg_legat0 Fedora 0 05-25-2004 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration