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.

More than 500 MySQL connections open?????

Discussion in 'General Discussion' started by mr.wonderful, Jul 20, 2004.

  1. mr.wonderful

    mr.wonderful BANNED

    Joined:
    Feb 1, 2004
    Messages:
    345
    Likes Received:
    0
    Trophy Points:
    0
    This morning we received numerous tickets from clients claiming that their connection to mysql was giving them a TOO MANY MYSQL OPEN messages.

    Now this is very interesting. Upon investigation we found over 500 mysql connection open on the box. The box was rebooted only 5 days ago so Im not sure where these connection are coming from. There are all kinds of errors in the MySQL logs. Doesnt make any sense really. Unless Cpanel has done something with MySQL it has always worked without issues on this server.

    Taken from the log;

    Alarm status:
    Active alarms: 1
    Max used alarms: 3
    Next alarm time: 200
    mysqld got signal 11;
    This could be because you hit a bug. It is also possible that this binary
    or one of the libraries it was linked against is corrupt, improperly built,
    or misconfigured. This error can also be caused by malfunctioning hardware.
    We will try our best to scrape up some info that will hopefully help diagnose
    the problem, but since we have already crashed, something is definitely wrong
    and this may fail.

    key_buffer_size=16777216
    read_buffer_size=2093056
    max_used_connections=31
    max_connections=500
    threads_connected=2
    It is possible that mysqld could use up to
    key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 2574380 K
    bytes of memory
    bytes of memory
    Hope that's ok; if not, decrease some variables in the equation.

    thd=0x436444a8
    Attempting backtrace. You can use the following information to find out
    where mysqld died. If you see no messages after this, something went
    terribly wrong...
    Cannot determine thread, fp=0xbfcfef28, backtrace may not be correct.
    Stack range sanity check OK, backtrace follows:
    0x8071f44
    0x82a0e38
    0x80ba59d
    0x807f978
    0x8080735
    0x807be13
    0x807b85e
    0x807b088
    0x829e5ec
    0x82c7dea
    New value of fp=(nil) failed sanity check, terminating stack trace!
    Please read http://www.mysql.com/doc/en/Using_stack_trace.html and follow instructions on how to resolve the stack trace. R$
    stack trace is much more helpful in diagnosing the problem, so please do
    resolve it
    Trying to get some variables.
    Some pointers may be invalid and cause the dump to abort...
    thd->query at 0x845f968 = show grants for 'bailey_'@localhost
    thd->thread_id=1324008
    The manual page at http://www.mysql.com/doc/en/Crashing.html contains
    information that should help you find out what is causing the crash.

    Memory status:
    Non-mmapped space allocated from system: 1827716
    Memory status:
    Non-mmapped space allocated from system: 1827716
    Number of free chunks: 51
    Number of fastbin blocks: 0
    Number of mmapped regions: 3
    Space in mmapped regions: 50327552
    Maximum total allocated space: 0
    Space available in freed fastbin blocks: 0
    Total allocated space: 518388
    Total free space: 1309328
    Top-most, releasable space: 13272
    Estimated memory (with thread stack): 52282244


    Number of processes running now: 0

    Like to know whats goung on my MYSQL 4.0.18 Standard!
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Well, did you follow those very helpful links from the log file?
     
  3. mr.wonderful

    mr.wonderful BANNED

    Joined:
    Feb 1, 2004
    Messages:
    345
    Likes Received:
    0
    Trophy Points:
    0
    Not very helpful, told me basically nothing.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Then you either need to learn more about MySQL or hire someone who does, since those two pages are written by the experts. I'm surprised you got nothing from trying all of the recommendations mentioned, or didn't you even bother with them? :rolleyes:
     
  5. aromalp

    aromalp Member

    Joined:
    Jul 15, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    When this happens check mysqladmin processlist. This should give you a good idea on who owns the mysql processes which are currently active. :cool:
     
Loading...

Share This Page