472,328 Members | 967 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

Sleeping threads even with wait_timeout on Server2003/XP

Hello All,

Currently we are running MySQL 4.0.17-nt on a Server 2003 machine. I
am having a problem with connections hanging around in a sleep state,
and building up over time. Eventually websites start returning a "No
More Connections" error. Our websites are ASP.NET, and we are using
the CoreLab MySQLDirect.NET component for the .NET interface. Our code
opens and closes each connection explicitly using that API, but
occasionally ASP.NET worker processes start a new thread and one of
the connections (persistent and pooled I assume) is sleeping and never
appears to be reused. This happens over time until there are alot of
them. I thought that setting wait_timeout to a reasonable value, say,
20 minutes, would help clear up those unused connections, but it
appears to have no effect. Time counts on the threads in the process
list just continue forever.

Anyone have any insights?

Thanks,
D. Niemeyer
Xionetic Technologies, Inc.
Jul 20 '05 #1
0 1260

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Moritz Steiner | last post by:
Thanks a lot, that solved my problem! Moritz -----Urspr=FCngliche Nachricht----- Von: Egor Egorov =20 Gesendet: Freitag, 18. Juli 2003...
0
by: D. Niemeyer | last post by:
Hello All, Currently we are running MySQL 4.0.17-nt on a Server 2003 machine. I am having a problem with connections hanging around in a sleep...
0
by: Shenron | last post by:
Hello, I've seen lots of queries which are sleeping with SHOW PROCESSLIST. Why are they sleeping? How can I prevent this sleeping queries?...
3
by: siddharthkhare | last post by:
Hi All, I have a block of code. I don't want more than five threads to enter this block simultaneously... Some thing like this lock(MyObject)...
10
by: Alfonso Morra | last post by:
Hi, I need help witht he sleep function as follows. I need to be write som code to do the ff: 1. creates a new thread 2. (in the new thread),...
4
by: cmay | last post by:
Can someone give me some guidance on this? I am implementing a system where if a user fails the login, I am doing a thread.sleep(random number)....
17
by: Benny Raymond | last post by:
I have a thread that sleeps for 5 minutes once it's finished running a method and then it repeats itself if it's supposed to (bool = true). Prior...
0
by: sandhya0209 | last post by:
I am using MYSQL version 5.0 (5.0.46). I intend to configure wait_timeout variable by updating the my.ini file(WINDOWS XP). But the value updated in...
2
by: puzzlecracker | last post by:
The following example of rudimentary thread pool is 'bluntly' copied from "Accelerated C#" book. My questions follow the code: using System;...
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.