MySQL uses %25 of 2GB RAM

Discussion in 'MySQL' started by ars_oguz, Oct 5, 2007.

  1. #1
    I have 4 sites that all use 1 database. But 2 weeks ago mysql started to use up to %25 of 2GB RAM. And also queries started to run slowly. So after a few hours server dies as there become lots of unresponded apache threads. I have indexes etc. for the tables. I cant find why it uses so much memory and responds so slowly. The tables have 200K~ rows. I need to fix it because they will have 1000K soon. I'll be happy if you can help me to fix that problem. Thanks a lot for your replies...
     
    ars_oguz, Oct 5, 2007 IP
  2. falcondriver

    falcondriver Well-Known Member

    Messages:
    963
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    145
    #2
    noticed yesterday that mysql used a lot of resources, like more than 34.000 (!!!) handles (skype and explorer have ~600, average is ~300 for "normal applications"). seems like it only happens on the newer mysql version, one of the old 4.x mysql servers dosnt has this problem.
     
    falcondriver, Oct 5, 2007 IP
  3. hostmellow

    hostmellow Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Have you tried enabling mysql query cache? It might help you in stopping the excessive use of resources by mysql.
     
    hostmellow, Oct 6, 2007 IP
  4. Forrest

    Forrest Peon

    Messages:
    500
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Are you pegging any tables or anything like that? Running lots of transactional code?

    I've managed 230,000,000 rows in a SQL Server (msft) with 4 GB of ram. You should be okay in that regard with good code and a healthy server.
     
    Forrest, Oct 6, 2007 IP
  5. ElixarRob

    ElixarRob Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Never had this problem. My load is always fine on my servers.
     
    ElixarRob, Oct 7, 2007 IP