hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : Mysql Issue
Reply

Web Hosting Discussions on all aspects of web hosting including past experiences (both negative and positive), choosing a host, questions and answers, and other related subjects. If your service is unavailable, please click here.
Forum Jump

Mysql Issue

Reply Post New Thread In Web Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-17-2010, 12:43 PM
paraghost paraghost is offline
Newbie
 
Join Date: Dec 2010
Posts: 11

Mysql Issue


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,

Reply With Quote


Sponsored Links
  #2  
Old 12-17-2010, 12:58 PM
qtriangle qtriangle is offline
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


Reply With Quote
  #3  
Old 12-17-2010, 01:05 PM
MikeDVB MikeDVB is offline
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

Reply With Quote
Sponsored Links
  #4  
Old 12-17-2010, 01:08 PM
paraghost paraghost is offline
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

Reply With Quote
  #5  
Old 12-17-2010, 01:12 PM
MikeDVB MikeDVB is offline
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:
  1. Several intense queries taking a long time to execute - this would be obvious in the processlist from MySQL.
  2. 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

Reply With Quote
  #6  
Old 12-17-2010, 01:21 PM
paraghost paraghost is offline
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

Reply With Quote
  #7  
Old 12-17-2010, 01:49 PM
MikeDVB MikeDVB is offline
Web Host Extraordinaire!!!
 
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,316
Quote:
Originally Posted by paraghost View Post
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 View Post
Where cpu utilization log files can you provide the address?
There aren't any.

Quote:
Originally Posted by paraghost View Post
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

Reply With Quote
  #8  
Old 12-17-2010, 01:56 PM
paraghost paraghost is offline
Newbie
 
Join Date: Dec 2010
Posts: 11
Hello,

Both commands are not working.

Please advise

Reply With Quote
  #9  
Old 12-17-2010, 01:58 PM
MikeDVB MikeDVB is offline
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

Reply With Quote
  #10  
Old 12-17-2010, 02:05 PM
paraghost paraghost is offline
Newbie
 
Join Date: Dec 2010
Posts: 11
Hello,

Is there any way to resolve this issue?

By any command or log file?

Reply With Quote
  #11  
Old 12-17-2010, 02:10 PM
Matt R Matt R is offline
Web Hosting Master
 
Join Date: Mar 2005
Location: Florida
Posts: 2,516
Quote:
Originally Posted by paraghost View Post
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!

Reply With Quote
  #12  
Old 12-17-2010, 02:11 PM
MikeDVB MikeDVB is offline
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:
Code:
mysqladmin status
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

Reply With Quote
  #13  
Old 12-17-2010, 02:31 PM
paraghost paraghost is offline
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

Reply With Quote
  #14  
Old 12-17-2010, 02:36 PM
MikeDVB MikeDVB is offline
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

Reply With Quote
  #15  
Old 12-17-2010, 02:39 PM
paraghost paraghost is offline
Newbie
 
Join Date: Dec 2010
Posts: 11
Hello,

However its increasing Delayed insert for the database as atworkbe_stats

Please advise

Reply With Quote
Reply

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

Related posts from TheWhir.com
Title Type Date Posted
PayPal UK IPN Issues Impact Web Hosts, Users Web Hosting News 2013-02-01 09:34:43
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Parallels Now Offering Licenses for CloudLinux OS Web Hosting News 2011-10-26 17:29:25
Web Hosting Software Firm CloudLinux Releases CloudLinux OS Version 6.1 Web Hosting News 2011-09-13 14:08:49
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?