Please solve my issue regarding max_user_connections

Discussion in 'Site & Server Administration' started by Om ji Kesharwani, Mar 17, 2011.

  1. #1
    I AM running a MLM site on the dedicated server having more than 30k members. I am getting error already has more than 'max_user_connections' active connections
    I increased the max_user_connections from default 25 to 200 but still i am getting the problem. I also tried by using mysql_close() fucntion but the problem is still same.
    Someone suggested me that there is problem in script...
    What could be the problem ? Is it the problem of script ? If yes please tell me the solution.
    or tell me the server setting if it needed.

    I will be very Thankfull for saving my site.
     
    Om ji Kesharwani, Mar 17, 2011 IP
  2. kaung

    kaung Twitter @KaungKo

    Messages:
    4,040
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    155
    #2
    If all the members are connecting at the same time and stay longer, you might ahve to configure the timeout depending on your needs or it's time to expand.
    You may want to have mysqltuner.pl and tuning-primer.sh installed.
    They'll tell you what specs you need to change sql qise and give tips and advises and probably values.
     
    kaung, Mar 17, 2011 IP
  3. vinoth.t

    vinoth.t Peon

    Messages:
    156
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Make sure that colse the connection once the operation is finished. If you are using java technology try using connection pool. Also Increase MySQL connection Limit.
     
    vinoth.t, Mar 21, 2011 IP
  4. idcatalin

    idcatalin Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    max_user_connections need to be set at 0 for unlimited connections
     
    idcatalin, Mar 21, 2011 IP