WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-11-2008, 04:42 AM
edhan's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Singapore
Posts: 549
edhan RepRank 1
Default How to Kill MySQL Sleep ?

Hi

Using SHOW FULL PROCESSLIST to see that there are many open connection that have the Command: Sleep. How do I kill those SLEEP?

I have read somewhere saying that I can reduce the wait_timeout to 60 as the default is 4800, but I can't seem to find it anywhere in the Server for this setting. I have checked the my.cnf as well as the php.ini but none has mentioned it. Where is it located?

Hope someone can advice.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 07-12-2008, 05:15 AM
edhan's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Singapore
Posts: 549
edhan RepRank 1
Default Re: How to Kill MySQL Sleep ?

Finally I found that all I need to do is simply add the timeout command in my.cnf and it works.
Reply With Quote
  #3 (permalink)  
Old 09-19-2008, 02:59 AM
WebProWorld New Member
 

Join Date: Sep 2008
Posts: 3
BillPrice RepRank 0
Default Re: How to Kill MySQL Sleep ?

hey man i have the same problem like this

i've a problem with sleep processes in my mysql database. Some longe queries cause sleeping processes if the user break up before result is on the screen. There isnt yet a posibility to speed up the queries so the only way to avoid a breakdown of the system because of to many sleeping ones is to kill them after the slept for 2 min. Till now the run for 943 sek which is way to long.
__________________
Folder Printing Sticker Printing
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How Many Hours Do You Sleep? AmericanOnlineMall Breakroom (General: Any Topic) 7 10-21-2006 12:52 AM
Watching the Web, Even While You Sleep WPW_Feedbot Search Engine Optimization Forum 0 01-03-2006 10:30 AM
I eat, dream,sleep internet, am i normal or not? smm Breakroom (General: Any Topic) 1 04-15-2005 11:50 PM
Sleep. Surf. Slog. WPW_Feedbot Graphics & Design Discussion Forum 0 01-07-2005 01:01 PM
Furniture, bedding & sleep related sites jlknauff Marketing Strategies Discussion Forum 0 12-01-2004 03:57 PM


Search Engine Optimization by vBSEO 3.2.0