The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mysql_connect(): Can\'t create a new thread (errno 11).

Discussion in 'General Discussion' started by BianchiDude, Sep 9, 2005.

  1. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    16
    I have serveral people getting this error?

    Warning: mysql_connect(): 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 /home/user/public_html/shop/includes/functions/database.php on line 19
    Unable to connect to database server!

    What is causing this?

    I check free and the server has plenty of available swap space and ram
     
  2. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    16
  3. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    The error message is self explanatory. It appears that you are running out of memory.
    To find how much memory your MySQL server consumes, do the math:

    key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = TOTAL Memory

    Overall, it depends on how you configured your server in relation to memory and swap.

    You might want to reduce the values above in line with the performance you require so you won't exceed the maximum amount of memory available. As you may know, your OS and other processes require memory too.
     
Loading...

Share This Page