LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices

Reply
 
Search this Thread
Old 03-06-2010, 12:31 AM   #1
sasd
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
why a process ( written in c++) taking 200% cpu usage?


Running a (c++) game application process (server)(multi threaded) under RedHat linux version 2.6.18-8.1.15.el5, which is using mysql db version 5.0.27.GUI is written in flash(client). Client communicates with server thro' socket. C++ Process is running successfully for 2 days, but cpu usage of this process has been increasing gradually and reaching 200% and at the end of 48hrs, process has not been responding.But if i check the status using ps command, it shows status running.Why process is not responding after 48hrs? Why the cpu usage increasing?
 
Old 03-06-2010, 02:19 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,363
Blog Entries: 52

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
The 200% usage simply means that the process is running both CPU cores flat out. Without knowing what the application is, it is anyone's guess as to the problem causing this. My guess is that it is starting threads and not ending them, but this is pure speculation.
 
Old 03-24-2010, 12:24 AM   #3
sasd
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by neonsignal View Post
The 200% usage simply means that the process is running both CPU cores flat out. Without knowing what the application is, it is anyone's guess as to the problem causing this. My guess is that it is starting threads and not ending them, but this is pure speculation.
Yes. I solved this issue. Now cpu usage is normal. Thank You.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to get %CPU usage of a process devershetty Linux - Newbie 1 08-18-2008 01:52 AM
process cpu usage hamedrafi Programming 5 06-11-2007 06:32 PM
process cpu usage vanv101 Fedora 9 06-24-2005 05:53 PM
Apache httpd taking 99% CPU Usage nimish Linux - Software 1 11-04-2004 06:49 AM
CPU usage of a process asharma Solaris / OpenSolaris 7 03-29-2003 02:17 PM


All times are GMT -5. The time now is 10:09 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration