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.

Poor MySql performance after cPanel installation - how modify MySql parms?

Discussion in 'Database Discussions' started by mvel001, Oct 15, 2011.

  1. mvel001

    mvel001 Member

    Joined:
    Sep 8, 2011
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello People

    I already have a shared hosting service with lot of accesses to database (some 20/30 per second). That hosting has MySql very well configured, because when listing processes, they never exceeds 2-3 seconds, never having more than 3-4 processes on queue, so all runs ok there. I use BLOB fields to show pictures, so tmp tables are necessary as I read in manual.

    But I heard I should move soon to VPS machine because shared services probably won´t support anymore this traffic.

    I installed a VPS - cPanel machine and made mirror-copy of my databases to it, then I set my scripts to work with these data to check if VPS really works so fine on it.

    To my surprise, on VPS machine appeared lot of "copying to tmp table", "sorting tmp table" and "login" commands on processes queue (some times until 60 - 80 entries), many of them lasting 30 - 40 seconds to excecute.

    No need to say performance became so bad I decided return to my old shared hosting until find a solution.

    My question is: where on cPanel can I modify MySql (or maybe PHP) parameters to increase database performance? I know there are several parameters like buffer-size, temp tables size and other that can be changed, for example in this link they are well explained. It is necessary edit linux or apache files to get this?

    /http://www.mysqlperformanceblog.com/2007/08/16/how-much-overhead-is-caused-by-on-disk-temporary-tables/

    thanks in advance
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page