Re: "Can't create thread"

2004-03-15 Thread Sasha Pachev
We wrote a wrapper with LD_PRELOAD. When mysqld does pthread_attr_setstacksize() we translate it into an anonymous mmap() and use pthread_attr_setstackaddr() instead. It's the equivalent of FLOATING_STACKS. ;) Our mysqld (which is running as slave) will seg fault if we set the thread_stack to 25

Re: "Can't create thread"

2004-03-13 Thread Sasha Pachev
Michael Bacarella wrote: Does Red Hat have some kind of userland address space hack that we're not aware of? Do you have any special kernel config options that you did not use before? the thread stacks are 2MB apiece (bf601000-bf80 is 2093056 bytes, or 2044kB)! Yet: # mysql -e 'show variable

Re: "Can't create thread"

2004-03-11 Thread Michael Bacarella
> >>>Does Red Hat have some kind of userland address space hack that > >>>we're not aware of? > >> > >>Do you have any special kernel config options that you did not use before? > > the thread stacks are 2MB apiece (bf601000-bf80 is > > 2093056 bytes, or 2044kB)! Yet: > > > > # mysql -e 'sho

Re: "Can't create thread"

2004-03-09 Thread Sasha Pachev
Michael Bacarella wrote: We recently started getting "Can't create thread" errors since switching to Debian. On Red Hat 8.0 we were able to spawn more than 400 mysql threads and never encountered this error. mysql 3.23.56 compiled from source, stock kernel. (2GB of RAM) Now we

RE: "Can't create thread"

2004-03-08 Thread Donny Simonton
t: Re: "Can't create thread" > > > > We recently started getting "Can't create thread" errors since > > > switching to Debian. > > > > > > On Red Hat 8.0 we were able to spawn more than 400 mysql threads > > > and n

Re: "Can't create thread"

2004-03-08 Thread Michael Bacarella
> > We recently started getting "Can't create thread" errors since > > switching to Debian. > > > > On Red Hat 8.0 we were able to spawn more than 400 mysql threads > > and never encountered this error. mysql 3.23.56 compiled from > > source,

Re: "Can't create thread"

2004-03-08 Thread Sasha Pachev
Michael Bacarella wrote: We recently started getting "Can't create thread" errors since switching to Debian. On Red Hat 8.0 we were able to spawn more than 400 mysql threads and never encountered this error. mysql 3.23.56 compiled from source, stock kernel. (2GB of RAM) Now we

"Can't create thread"

2004-03-08 Thread Michael Bacarella
We recently started getting "Can't create thread" errors since switching to Debian. On Red Hat 8.0 we were able to spawn more than 400 mysql threads and never encountered this error. mysql 3.23.56 compiled from source, stock kernel. (2GB of RAM) Now we get it all the time on

RE: Can't create thread error

2003-04-01 Thread Mike William
t did. I set ulimit -u to 50 and restarted mysql. It worked fine until max_used_connectsion and the number of sleeping/persistent connections got up to 45, then it started throwing off the "Can't create thread" error. Then I did ulimit -u 150 and restarted mysql again. This time

RE: Can't create thread error

2003-04-01 Thread Mike William
gt; set-variable = wait_timeout=10 > > I tried this, and it was a mixed bag. On the one hand, the "Can't create > thread..." error did indeed go away, and max_used_connections and the > number of sleeping/persistent connections dropped down well below > 250. However

RE: Can't create thread error

2003-03-31 Thread Don Read
and it was a mixed bag. On the one hand, the "Can't create > thread..." error did indeed go away, and max_used_connections and the > number of sleeping/persistent connections dropped down well below > 250. However, making this change caused a new problem: on about ever

RE: Can't create thread error

2003-03-31 Thread Mike William
Hi Don, Thanks for the suggestions. Here's what happened. > Your pconnects are probably sleeping too long. in /etc/my.cnf: [mysqld] set-variable = wait_timeout=10 I tried this, and it was a mixed bag. On the one hand, the "Can't create thread..." error

RE: Can't create thread error

2003-03-31 Thread Don Read
On 31-Mar-2003 Mike William wrote: > After a routine restart of our MySQL 3.23 server today, we began getting > the following PHP error message during times of moderately high database > server load: > > Warning: MySQL Connection Failed: Can't create a new thread (errno 11). > If > you are no

Can't create thread error

2003-03-31 Thread Mike William
After a routine restart of our MySQL 3.23 server today, we began getting the following PHP error message during times of moderately high database server load: Warning: MySQL Connection Failed: Can't create a new thread (errno 11). If you are not out of available memory, you can consult the man