User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 456,537 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,159 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 5164 | Replies: 2
Reply
Join Date: Oct 2007
Location: NewYork
Posts: 3
Reputation: pooranjaiswal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
pooranjaiswal's Avatar
pooranjaiswal pooranjaiswal is offline Offline
Newbie Poster

Help kill sleep process/connections

  #1  
Oct 12th, 2007
hi,

i want to kill all the sleep process in mysql , since it is unnecesserly taking the server memory and process..

Regards
Pooran Jaiswal
Pooran Jaiswal
Tech Architect
http://www.123bubbles.com
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2007
Location: india
Posts: 52
Reputation: ajay_tabbu is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
ajay_tabbu's Avatar
ajay_tabbu ajay_tabbu is offline Offline
Junior Poster in Training

Re: kill sleep process/connections

  #2  
Oct 16th, 2007
I don't know the that we can kill process in myaql or not,but it will be batter that u kill or sleep or close process(or connetion) by u r frunt hand aplication what ever u r using like java,c,c++,php etc.
Originally Posted by pooranjaiswal View Post
hi,

i want to kill all the sleep process in mysql , since it is unnecesserly taking the server memory and process..

Regards
Pooran Jaiswal
i m oblised for all member of daniweb.as helping me every time.this is best site for those who want to learn themself.
Reply With Quote  
Join Date: Nov 2007
Posts: 1
Reputation: CesarF is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
CesarF's Avatar
CesarF CesarF is offline Offline
Newbie Poster

Re: kill sleep process/connections

  #3  
Nov 22nd, 2007
The best approach is to add mysql_close() at the end of every page (as ajay_tabbu pointed out).

You have also two options:
1) In ssh, mysql | kill <procid>, or
2) In my.cnf, wait_timeout = 600 (time is in seconds)
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MySQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 4:52 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC