
12-17-2010, 12:43 PM
|
|
Newbie
|
|
Join Date: Dec 2010
Posts: 11
|
|
Hello,
We have issue with mysql is cpu utilization process all ways goes high on linux server.
Where can i find cpu utilization log files?
How can i resolved this issue?
Thanks,
|

12-17-2010, 12:58 PM
|
|
Web Hosting Master
|
|
Join Date: Aug 2009
Location: World citizen in Delhi
Posts: 564
|
|
see it using "ps" command.
You may need to restart mysql daemon.
May be some customer of yours is abusing it.
__________________
██ Qtriangle - Website development and web hosting solutions ██ The very best of PHP/MySQL development services
|

12-17-2010, 01:05 PM
|
|
Web Host Extraordinaire!!!
|
|
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,316
|
|
MyTOP is one good way to see what queries are being executed that are causing issues. It's not installed by default so you'll have to download and install it.
__________________
█ Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
█ LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
█ For high-end shared accounts ideal for business, check out our Semi-Dedicated offerings!
█ http://www.mddhosting.com/ - Providing Quality Services since 2007
|

12-17-2010, 01:08 PM
|
|
Newbie
|
|
Join Date: Dec 2010
Posts: 11
|
|
Hello,
I use to mysqladmin processlist command check it.
However its not use.
Can you tell how can i find which mysql process is causing for it.
Where cpu utilization log files can you provide the address?
Thanks
|

12-17-2010, 01:12 PM
|
|
Web Host Extraordinaire!!!
|
|
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,316
|
|
If the MySQL CPU usage is high then it's one of two things generally: - Several intense queries taking a long time to execute - this would be obvious in the processlist from MySQL.
- A *ton* of small queries, this isn't obvious from the processlist usually but you can see the queries per second with "mysqladmin status".
__________________
█ Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
█ LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
█ For high-end shared accounts ideal for business, check out our Semi-Dedicated offerings!
█ http://www.mddhosting.com/ - Providing Quality Services since 2007
|

12-17-2010, 01:21 PM
|
|
Newbie
|
|
Join Date: Dec 2010
Posts: 11
|
|
Hello,
How can i find particular mysql process is causing for high cpu utilization?
Where cpu utilization log files can you provide the address?
Thanks
|

12-17-2010, 01:49 PM
|
|
Web Host Extraordinaire!!!
|
|
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,316
|
|
Quote:
Originally Posted by paraghost
How can i find particular mysql process is causing for high cpu utilization?
|
mytop or the MySQL show process list.
Quote:
Originally Posted by paraghost
Where cpu utilization log files can you provide the address?
|
There aren't any.
Quote:
Originally Posted by paraghost
Thanks
|
Welcome.
__________________
█ Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
█ LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
█ For high-end shared accounts ideal for business, check out our Semi-Dedicated offerings!
█ http://www.mddhosting.com/ - Providing Quality Services since 2007
|

12-17-2010, 01:56 PM
|
|
Newbie
|
|
Join Date: Dec 2010
Posts: 11
|
|
Hello,
Both commands are not working.
Please advise
|

12-17-2010, 01:58 PM
|
|
Web Host Extraordinaire!!!
|
|
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,316
|
|
Well MyTOP has to be installed, it's not installed by default and you said above "I use to mysqladmin processlist command check it." so I sort of assumed you knew how to view the process list.
I'd suggest hiring a server administration company at this point as it sounds like you're in over your head when it comes to diagnosing this.
__________________
█ Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
█ LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
█ For high-end shared accounts ideal for business, check out our Semi-Dedicated offerings!
█ http://www.mddhosting.com/ - Providing Quality Services since 2007
|

12-17-2010, 02:05 PM
|
|
Newbie
|
|
Join Date: Dec 2010
Posts: 11
|
|
Hello,
Is there any way to resolve this issue?
By any command or log file?
|

12-17-2010, 02:10 PM
|
|
Web Hosting Master
|
|
Join Date: Mar 2005
Location: Florida
Posts: 2,516
|
|
Quote:
Originally Posted by paraghost
Hello,
Is there any way to resolve this issue?
By any command or log file?
|
I couldn't agree with Mike more in this case. At this point, it's obvious that you don't know what you're doing. I'd suggest hiring a management company like Platinum Server Management or BX Server Management.
Doing it yourself just isn't working out, and no matter how many times we point you in the right direction, short of doing it for you you're likely not going to get it any time soon.
__________________
█ Matthew Rosenblatt, and I'm the lead developer for CloudPanel.
█ Check out the DreamVelop Blog for more information!
█ I'm back in the country. I work as a lighting technician for Celebrity Cruises.
█ Want to read about my job and my travels? Click here!
|

12-17-2010, 02:11 PM
|
|
Web Host Extraordinaire!!!
|
|
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,316
|
|
If only it were that simple, but no... Generally there isn't any command you can run to easily diagnose MySQL abuse.
You can run this to see the active queries at the point you run the command:
Code:
mysql -e 'show processlist;'
You can run this to see the queries per second:
How you use/interpret that information to resolve your issues is what becomes important... I can give you all the data in the world but if you don't know how to use it - it won't do you any good.
Again, I'd suggest hiring a server administrator to look into this and resolve this for you.
__________________
█ Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
█ LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
█ For high-end shared accounts ideal for business, check out our Semi-Dedicated offerings!
█ http://www.mddhosting.com/ - Providing Quality Services since 2007
|

12-17-2010, 02:31 PM
|
|
Newbie
|
|
Join Date: Dec 2010
Posts: 11
|
|
Hello,
We have got the result of mysql -e 'show processlist;'
As +--------+--------------+-----------+----------------+----------------+------+--------------------+------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+--------+--------------+-----------+----------------+----------------+------+--------------------+------------------------------------------------------------------------------------------------------+
| 225341 | DELAYED | localhost | atworkbe_stats | Delayed insert | 283 | Waiting for INSERT |
Is it means the database as atworkbe_stats is causing for the high cpu utilization?
Please advise
|

12-17-2010, 02:36 PM
|
|
Web Host Extraordinaire!!!
|
|
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,316
|
|
No, it doesn't... I normally try to be as nice as I possibly can be but it's obvious you have no idea what you're doing.
Hire a server administrator to help you with this.
__________________
█ Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
█ LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
█ For high-end shared accounts ideal for business, check out our Semi-Dedicated offerings!
█ http://www.mddhosting.com/ - Providing Quality Services since 2007
|

12-17-2010, 02:39 PM
|
|
Newbie
|
|
Join Date: Dec 2010
Posts: 11
|
|
Hello,
However its increasing Delayed insert for the database as atworkbe_stats
Please advise
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
MySQL issue
|
Tomdarkness |
Hosting Security and Technology |
10 |
03-19-2007 02:27 PM |
|
mysql issue
|
4mhf |
Hosting Security and Technology |
5 |
02-21-2007 09:31 PM |
|
mysql issue
|
4mhf |
Hosting Security and Technology |
8 |
09-08-2006 07:07 PM |
|
mysql issue
|
vision3 |
Hosting Security and Technology |
20 |
04-06-2005 03:31 PM |
|
mysql issue
|
gate2vn |
Hosting Security and Technology |
2 |
03-16-2004 12:43 PM |
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|