dbTalk Databases Forums  

MySQL database gets slower over time

mailing.database.myodbc mailing.database.myodbc


Discuss MySQL database gets slower over time in the mailing.database.myodbc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Quezadas
 
Posts: n/a

Default MySQL database gets slower over time - 07-07-2003 , 03:27 AM






------=_NextPart_000_01E4_01C34425.7A6BCDF0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

HIdey Ho.

I have a fairly large mysql database (a few million records) and queries =
run pretty damn fast. However, over time (say, over the course of a =
month), performance gets slower and slower. I am not sure why! I =
suspected a memory leak so i restarted mysql. No dice. Now, if I reboot =
the whole *server*, then performance jumps back up. I have a ton of RAM =
(3 gigs). But could it be that the server is using more and more RAM for =
a memory cache and thus giving less of it to mysql over time, thus =
making it go slower? This is my theory, but not sure why. Here is are =
some tops:

First day:
Mem: 3098984K av, 1159340K used, 1939644K free, 0K shrd, 8168K =
buff
Swap: 1052248K av, 0K used, 1052248K free 1068688K =
cached

a week and a half later:
Mem: 3098984K av, 1764340K used, 1334644K free, 0K shrd, 66416K =
buff
Swap: 1052248K av, 0K used, 1052248K free 1585156K =
cached

40 days later:
Mem: 3098984K av, 2487488K used, 611496K free, 0K shrd, 70360K =
buff
Swap: 1052248K av, 0K used, 1052248K free 2274124K =
cached

Seems the "memory free" keeps on getting lower. Also I did *not* copy =
"my-huge.cnf" to "my.cnf". The server is a production machien and I =
didn't realize this later. I am thinking this might help my problem, but =
would like some feedback.=20

- Steve


------=_NextPart_000_01E4_01C34425.7A6BCDF0--


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.