Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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:
    166
  3. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    4
    Trophy Points:
    193
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice