Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Performance and the fly likes how can I down the CPU use rate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "how can I down the CPU use rate " Watch "how can I down the CPU use rate " New topic
Author

how can I down the CPU use rate

Dingcheng lee
Greenhorn

Joined: Aug 26, 2002
Posts: 18
in my program,I found i run my program,the CPU use rate is very high(often in 100% used),and after the work has compeleted,the cpu use rate not
down.and there is no empty running thread.
i can't get the reason.who can help me,and give me some advise to impove the performance!
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
What OS are you using? Can you find out which process is taking up most of the CPU? On Windows use the Processes tab of Task Manager, and click on the top of the CPU column to sort by CPU usage. On Unix use the "top" command. This may give helpful clues...


"I'm not back." - Bill Harding, Twister
Dingcheng lee
Greenhorn

Joined: Aug 26, 2002
Posts: 18
the OS on my machine is win2000 server.thanks!
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
OK, so that means you've got Windows Task Manager, right? Which process is taking up all the CPU? Is it even a java process?
Dingcheng lee
Greenhorn

Joined: Aug 26, 2002
Posts: 18
yes,is the java.exe,and now i am delete much useless operation, and now the cpu use rate down,
thanks ,my dear friends
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
smartHawk, we find that the Ranch is a more pleasant place when people don't use obviously fictitious names. Please review the JavaRanch Naming Policy and change your display name to comply with the guidelines. Thanks!
 
Consider Paul's rocket mass heater.
 
subject: how can I down the CPU use rate