PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > MySQL uses %25 of 2GB RAM
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
MySQL uses %25 of 2GB RAM

Réponse
 
LinkBack Outils de la discussion
Vieux 06/10/2007, 00h38   #1
ars_oguz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut MySQL uses %25 of 2GB RAM

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 me to fix that problem. Thanks a lot for your
replies...

  Réponse avec citation
Vieux 06/10/2007, 01h38   #2
Kevin Day
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: MySQL uses %25 of 2GB RAM

On Oct 5, 7:38 pm, ars_oguz <ars_o...@yahoo.com> wrote:
> 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 me to fix that problem. Thanks a lot for your
> replies...


It could be a lot of things. Can you try logging slow queries first
to see which queries are running slowly?
http://www.google.com/search?hl=en&s...g+slow+queries

Then, use the EXPLAIN statement to see how MySQL is performing these
slow queries. That should be a good start at least.

Also, it might not be a MySQL problem, it could be an Apache problem.
Just out of curiosity, are there any large Apache log files? I've
gotten bitten a few times by log files reaching 2 GB, which slows
Apache down a lot.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h06.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09284 seconds with 10 queries