Re: Sleeping Processes Timeout?

2005-07-28 Thread Juan Pedro Reyes Molina
this, I found that we had too many sleeping processes. I was not even able to login to the mysql server from a command line. Is there a way to set a timeout for sleeping processes? This is a small example of what I am seeing when I run a 'show processlist&#

Re: Sleeping Processes Timeout?

2005-07-28 Thread Devananda
Jason Williard wrote: Hello, Today, I started experiencing some issues on our website with max connections exceeded errors. In looking into this, I found that we had too many sleeping processes. I was not even able to login to the mysql server from a command line. Is there a way to set a

Sleeping Processes Timeout?

2005-07-28 Thread Jason Williard
Hello, Today, I started experiencing some issues on our website with max connections exceeded errors. In looking into this, I found that we had too many sleeping processes. I was not even able to login to the mysql server from a command line. Is there a way to set a timeout for sleeping

Re: sleeping processes

2005-06-07 Thread Ronny Melz
On Monday 06 June 2005 10:58, Gleb Paharenko wrote: > Does this weird behavior remain if you're connecting trough UNIX socket > to local instance of MySQL? it does. At the moment, I try to approach the problem Carl proposed and starting from scratch. It works fine - hence the problem is not mysql

Re: sleeping processes

2005-06-07 Thread Gleb Paharenko
n the mysql processlist reports max_connections+1 pids (including the > terminal I use to get the processlist) whereas a '$ netstat | grep mysql | wc > -l' does never return due to an ever increasing number of open connections. > Each of them is in state TIME_WAIT. >

Re: Re: sleeping processes

2005-06-06 Thread Carl
e 06, 2005 3:58 AM Subject: Re: Re: sleeping processes > > Hi Carl, > > thank you for your reply. > did you have a look at my original posting where I included the code? > > your code (omitting the error routines) is essentially like this: > sock=mysql_init(0)) > mysql_re

Re: Re: sleeping processes

2005-06-06 Thread Ronny Melz
Hi Carl, thank you for your reply. did you have a look at my original posting where I included the code? your code (omitting the error routines) is essentially like this: sock=mysql_init(0)) mysql_real_connect(sock,ipNumber,userName,password,gvDatabase,3306,NULL,0) mysql_select_db(sock,g

Re: sleeping processes

2005-06-05 Thread Carl
d for some things, not good for other ones.) But, for the appropriate applications, it is very fast. 2. You have to free the result set after every select. By the way, this code came right out of Googling. Thanks and good luck, Carl - Original Message - From: "Ronny Mel

Re: sleeping processes

2005-06-05 Thread Ronny Melz
. Each of them is in state TIME_WAIT. > Do you see some sleeping processes > with ps utility or 'mysqladmin processlist' command? AFAIK, 'mysqladmin processlist' prints the same as a 'mysql> show full processlist', right? It's max_connections sleeping p

Re: sleeping processes

2005-06-05 Thread Gleb Paharenko
Hello. Is it possible that your application doesn't close connection properly? Check with netstat the states of connections between your application and server. Run netstat on the server. Do you see some sleeping processes with ps utility or 'mysqladmin processlist' comman

sleeping processes

2005-06-05 Thread Ronny Melz
Dear all, I have a problem with the mysql interface for c, which after a couple of hours thinking about bad or faulty programming are eliminated with probability almost 100%. within a loop, I do a mysql_query(), which is executed and I poll the result and everything is fine. Up to when

Re: Sleeping Processes

2004-01-06 Thread William R. Mussatto
> -- >>> + >>> | 680849 | tienda | localhost | tienda | Sleep | 22 | >>> | >>> NULL >>>| >>> | 680859 | tienda | localhost | tienda | Sleep | 15

Re: Sleeping Processes

2004-01-06 Thread Mike Morton
ios where the > normal connection closure may be skipped... > > My $0.02... > > Dan Greene > > > >> -Original Message- >> From: Mike Morton [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, January 06, 2004 2:15 PM >> To: [EMAIL PROTECTED] >

RE: Sleeping Processes

2004-01-06 Thread Dan Greene
erios where the normal connection closure may be skipped... My $0.02... Dan Greene > -Original Message- > From: Mike Morton [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 06, 2004 2:15 PM > To: [EMAIL PROTECTED] > Subject: Sleeping Processes > > > I have a m

Sleeping Processes

2004-01-06 Thread Mike Morton
| | 680942 | tienda | localhost | tienda | Sleep | 96 | | NULL | But upwards of as I said, 50 - 60 of them at any given time. I do not have a slow day comparison to offer, but I have done many a sight and never seen sle

Re: (sleeping) processes of > 90% CPU

2001-06-12 Thread Sinisa Milivojevic
Wouter de Jong writes: > On Tue, Jun 12, 2001 at 02:16:27PM +0300, Sinisa Milivojevic wrote: > We are running 2.4.5-ac4 currently on the server. Could you tell me why your binary >should run better ? Cause I tried it, and it dind't make a lot of difference. > > -- > Met vriendelijke groet/With

Re: (sleeping) processes of > 90% CPU

2001-06-12 Thread Wouter de Jong
On Tue, Jun 12, 2001 at 02:16:27PM +0300, Sinisa Milivojevic wrote: > > To solve SMP problems with Linux, you should use latest kernel 2.4.* > and our binary. We are running 2.4.5-ac4 currently on the server. Could you tell me why your binary should run better ? Cause I tried it, and it dind't

Re: (sleeping) processes of > 90% CPU

2001-06-12 Thread Sinisa Milivojevic
To solve SMP problems with Linux, you should use latest kernel 2.4.* and our binary. -- Regards, __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic <[EMAIL PROTECTED]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, FullTime Developer /_/ /_/\_, /___/\___\_\___/ Larn

Re: (sleeping) processes of > 90% CPU

2001-06-11 Thread Wouter de Jong
On Sun, Jun 10, 2001 at 01:15:38PM +0300, Sinisa Milivojevic wrote: > > Hello, > > > > I'm a database administrator for a hosting provider, and we have currently 2 SMP >MySQL-database servers. The one that is causing me problems, has at least 900 >databases running on it. That's an dual PIII-55

Re: (sleeping) processes of > 90% CPU

2001-06-10 Thread Sinisa Milivojevic
Wouter de Jong writes: > Hello, > > I'm a database administrator for a hosting provider, and we have currently 2 SMP >MySQL-database servers. The one that is causing me problems, has at least 900 >databases running on it. That's an dual PIII-550, with 1024MB memory, running RedHat >6.2, with L

(sleeping) processes of > 90% CPU

2001-06-09 Thread Wouter de Jong
Hello, I'm a database administrator for a hosting provider, and we have currently 2 SMP MySQL-database servers. The one that is causing me problems, has at least 900 databases running on it. That's an dual PIII-550, with 1024MB memory, running RedHat 6.2, with Linux 2.4.5-ac4. During working