hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Frequent too many MySQL connections error
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Frequent too many MySQL connections error

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-02-2010, 01:22 AM
Kailash12 Kailash12 is offline
Junior Guru
 
Join Date: Jan 2008
Location: India
Posts: 193

Frequent too many MySQL connections error


Hi,

I have a shared server running on Windows 2003 (32-bit) and MySQL 4.1 server. I frequently receive too many MySQL connections error. This is a shared server and there are around 300 websites and 50 MySQL databases are hosted. Can you suggest a tool to monitor the MySQL usage and connections?

Thanks,

Kailash

__________________
Web Hosting Support Blog - Site/Server security, SEO, Web Hosting knowledgebase, how to's etc.

Reply With Quote


Sponsored Links
  #2  
Old 07-02-2010, 01:31 AM
amnetworx amnetworx is offline
Newbie
 
Join Date: May 2007
Location: India
Posts: 22
Kailash,

You can use the following command from the command prompt to monitor the mysql usage.

'mysqladmin -i3 processlist -umysqluser -ppassword'

Reply With Quote
  #3  
Old 07-02-2010, 02:04 AM
VIPoint VIPoint is offline
Web Hosting Master
 
Join Date: Mar 2009
Posts: 968
Increase your Mysql connection limit. What is your current mysql conenction limit?

__________________
Level I-II, Level III, Senior SysAdmins & Full 24x7 Teams
Dedicated Linux Server Admins in Infopark Tech Park, India
VIPoint Pvt. Ltd | http://www.vipointsolutions.com
E-Mail: Sales@VIPointSolutions.com

Reply With Quote
Sponsored Links
  #4  
Old 07-02-2010, 01:05 PM
shawn_linux shawn_linux is offline
Disabled
 
Join Date: Jan 2010
Posts: 133
increae number of mysq connection limit in /etc/my.cnf

Reply With Quote
  #5  
Old 07-02-2010, 02:53 PM
Kailash12 Kailash12 is offline
Junior Guru
 
Join Date: Jan 2008
Location: India
Posts: 193
Quote:
Originally Posted by VIPoint View Post
Increase your Mysql connection limit. What is your current mysql conenction limit?
Current limit is 800. It seems there is some bad written scripts on the server. Do you suggest installing any mysql monitoring tool?

Thanks,

Kailash

__________________
Web Hosting Support Blog - Site/Server security, SEO, Web Hosting knowledgebase, how to's etc.

Reply With Quote
  #6  
Old 07-03-2010, 07:13 AM
bvsonline bvsonline is offline
Junior Guru
 
Join Date: Jan 2010
Location: India
Posts: 213
Quote:
mysql> mysqladmin -u <user> -p<password> version status proc
Will give the process list. There are also many tools available in the market which has GUI interface too to monitor the mysql process like http://www.webyog.com/en/

__________________
BVS Technologies-Best Support assured for the Value you Pay- you conceive the best of the best quality you feel,trust,infer in all our services!!!
Website :-http://bestvaluesupport.com/
e-Mail :-enquiry@bestvaluesupport.com

Reply With Quote
  #7  
Old 07-04-2010, 01:37 PM
inspiron inspiron is offline
Support Facility
 
Join Date: Jun 2009
Posts: 2,318
You can check the mysql processes using the command mysqladmin -proc

__________________
Support Facility | 24/7 web hosting technical support services
Technical support | Server management | Data migration

Technical Articles

Reply With Quote
  #8  
Old 07-04-2010, 08:20 PM
centauricw centauricw is offline
Web Hosting Guru
 
Join Date: Jul 2008
Location: Atlanta GA
Posts: 291
You can increase the system-wide connection limit in the my.ini file, but you should first try to find the offending website. It sounds very like bad code that is opening a new connect for each query. If you can't get them to clean up their code, you impose connection limits just for them to protect the other users.

Reply With Quote
  #9  
Old 07-05-2010, 01:24 AM
Kailash12 Kailash12 is offline
Junior Guru
 
Join Date: Jan 2008
Location: India
Posts: 193
Thanks everyone!

I will try your suggestions to find the offending web sites that are creating the problem.

Kailash

__________________
Web Hosting Support Blog - Site/Server security, SEO, Web Hosting knowledgebase, how to's etc.

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
frequent 500 - internal server error koolnhot Hosting Security and Technology 9 05-28-2009 06:58 AM
A Frequent Error thesecret Hosting Security and Technology 5 05-09-2009 09:29 AM
Frequent MySQL Downtime hbhb Hosting Security and Technology 5 07-15-2007 12:40 AM
frequent timeout error orlando_myers Dedicated Server 9 03-06-2007 12:22 AM
Too many MySQL connections error... Please help! Doh004 Hosting Security and Technology 6 10-07-2005 10:11 AM

Related posts from TheWhir.com
Title Type Date Posted
Cologix Expands Standard Connections Product to All Carrier Hotel Data Centers Web Hosting News 2013-01-15 11:25:06
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?