Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can I down the CPU use rate

 
Dingcheng lee
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Dingcheng lee
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the OS on my machine is win2000 server.thanks!
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic