mysql problems

Discussion in 'MySQL' started by websys, Apr 29, 2006.

  1. #1
    hello
    I have a website which uses a invisionboard forum and is hosted on a Pentium 4 2.4Ghz, 1GB RAM .
    The website has around 25K members and the database size is almost around 230 MB by now .
    there are no other sites hosted on this server . BUt many times recently the database is failing . When i contacted the datacentre they said , it is because of too many multiple http connections at the same time .
    What could be a possible remedy for this ?
    Should the RAM be increases ? Should the processor be a higher one ? is there any mysql optimization for which it is failing because i have seen much bigger sites hosted using Invisionboard and i dont think it is because of Invisionboard
     
    websys, Apr 29, 2006 IP
  2. TheHoff

    TheHoff Peon

    Messages:
    1,530
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    0
    #2
    1st thing is to make sure database is checked and optimized (simple mySQL commands).

    2nd, make sure there aren't any excessively slow queries that should be fixed.

    3rd step is to increase the RAM.
     
    TheHoff, Apr 29, 2006 IP
  3. websys

    websys Active Member

    Messages:
    841
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    78
    #3
    first one , i of course do ... i will increase or decrease the time gap now more

    any advice on how to find which queries are slow ?
     
    websys, Apr 29, 2006 IP
  4. blueoceanwave

    blueoceanwave Peon

    Messages:
    210
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You might consider tracking the time it takes for each query and then averaging them out to determine whichever takes the most time. Basically start timer at beginning of query, end at the end, subtract the difference and insert into a logging table and then do the averages.
     
    blueoceanwave, May 1, 2006 IP