On Thu, 11 Jan 2001, Johan Björk wrote:
> I _need_ help with this connections-to-mysql issue. Until I changed a few stuff in
>the MySQL setup, I kept getting the "Too many connections" message when connecting.
>After increasing both max_connections and table_cache, I get the error:
>
> Warning: Can't create a new thread (errno 11). If you are not out of available
>memory, you can consult the manual for a possible OS-dependent bug in db.php on line
>15
>
> Like... It's bissare! Something must be wrong with the threads on my system or
>something. I'm running RedHat 7.0 on a machine with 512 MB RAM and 1 ghz CPU, the
>memory is heaps free and the # of connections bareley passes a 100. Am running PHP
>4.0.4 with persistant connections btw. Also I'm running glibc-2.1.92. Here's a few
>lines from mysqladmin:
>
> ---variables---
>
> ---
> Johan Björk
>
>
It may be that your server needs some adjustments. Take a look at:
http://www2.linuxjournal.com/articles/sysadmin/0042.html
For example you can up the number of open files on your system from 4096
to 8192 by issuing this command
# echo "8192" > /proc/sys/fs/file-max
At the same time you will want to adjust your "inode-max" with:
# echo "24576" > /proc/sys/fs/inode-max
There shouldn't be any problems with threads on a RedHat 7.0 system.
regards
Rune Hansen
[EMAIL PROTECTED]
Viventus AS
+4766812280/91
We are but packets in the internett of life
-Mike, Userfriendly
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php