File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Linux / UNIX
High CPU usage when execute native command through java Runtime
Joined: Jan 18, 2009
Jan 18, 2009 20:12:02
Have you guys met below problem, what's you investigation?
After issued a command of "kill -9 pid" using Runtime, it is not 100% reprocuced
Process process = Runtime.getRuntime().exec("/bin/kill -9 " + pid);
int value = process.waitFor();
//hang here, and CPU is high , almost 100%
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)
SunOS 5.10 Generic_137111-08 sun4u sparc SUNW,Sun-Fire-V240
Joined: Jun 06, 2007
Jan 18, 2009 21:23:40
"gossipgirl li " please check your private messages for an important administrative matter. You can check them by clicking the
My Private Messages
Asking Good Questions
I agree. Here's the link:
subject: High CPU usage when execute native command through java Runtime
Getting Version Numbers
Is there a bug with javaws on Fedora Core 8?
Unsupported major.minor version 50.0
Regex start() + group() question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014