MySQL Forums
Forum List  »  Italian

Re: CPU al 100%
Posted by: Gavin Towey
Date: December 08, 2009 04:47PM

> MySQL Version 5.0.67 i686

MySQL funziona piu' bene sul 64 bit, pero questo non penso sia facile per cambiare senza costruire un altra server.


> Avg. qps = 5002

Questo e' un cifra abbastanza alta, forse tu abbia raggiunto un livello dove e' piu' difficile di trovare cambiamenti per fare le cose piu' veloce.


> Physical Memory : 1010 M

Questo non e' molto, specialmente per un server che fa sia il webserver che il database. Pero' senza che il tuo server usasse "swap space," non e' importantissimo addesso.


> TABLE CACHE
> Current table_cache value = 64 tables
> You have a total of 76 tables
> You have 64 open tables.
> Current table_cache hit rate is 3%
> , while 100% of your table cache is in use
> You should probably increase your table_cache

Questo puo' aiutarti immediatamente; prova ad aumentare table_cache. In my.cnf mette table_cache=512 (sotto il titolo [mysqld]) oppure con un query: SET GLOBAL table_cache=512


> TABLE LOCKING
> Current Lock Wait ratio = 1 : 534
> You may benefit from selective use of InnoDB.

Queso e' importante. Dice che per ogne 534 query, uno di queste deve aspettare per un altro da finire. Quel rato e' alto, perche se tu abbia piu' di 5000 query per secondo, poi 10 per secondo stanno aspettando. Cambiare le tabelle da myisam a innodb aiutera', ma fa sicuro che tu controla tutte le opzione per configurare innodb, e piu' complesso di myisam.

In generale, sembra a me che tu sei vicino ai limiti del server. Pero' no posso dirlo veramente seza veredere tanto altro informatzione. E' necessario controllare i disks, la memoria, la applicazione, etc.

I query forse sono un'altro cosa importante controllare, specialmente con il "slow query log" (lenti query).

Non posso dire tutto quello che c'e' di "optimization," ma spero che io ti abbia dato qualche cose da ricercare. Se hai una domada precisa, fammi sapere.

Options: ReplyQuote


Subject
Views
Written By
Posted
5092
November 24, 2009 09:26AM
3140
November 25, 2009 10:29PM
2878
November 26, 2009 06:37AM
2959
December 02, 2009 12:09PM
4171
December 07, 2009 06:13PM
Re: CPU al 100%
3577
December 08, 2009 04:47PM
3081
December 09, 2009 01:30AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.