473,394 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 1317

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 10:16 An: mysql@lists.mysql.com Betreff: Re: WG:...
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 state, and building up over time. Eventually...
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? Because I can't running lots threads at the same...
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) { ....do work here. }
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), Sleep for x milliseconds 3. (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). If I returned the page right away, you could...
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 to 2.0 I was able to resume the thread after...
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 this file is not getting reflected when checked 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; using System.Threading; using System.Collections;...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.