Gå til innhold

MySQL detter ut og det går ikke ann å koble til nettsiden


Anbefalte innlegg

Hei,

 

jeg har en CentOS server (VPS hos servetheworld).

Har endel trafikk, og mysql henger seg opp når det blir for mye trafikk. Og for å få til å koble til nettsiden igjen må jeg restarte mysqld tjenesten. Så henger den seg opp igjen etter 30 min.

 

Har 1 GB ram, den holder seg under 50% hele tiden.

 

my.cnf ser slik ut:

[mysqld]
bind-address=127.0.0.1
max_connections = 200
key_buffer = 384M
myisam_sort_buffer_size = 384M
sort_buffer_size = 20M
table_cache = 1800
max_connect_errors = 1000
read_rnd_buffer_size = 524288
bulk_insert_buffer_size = 8M
query_cache_limit = 136M
query_cache_size =136M
query_cache_type = 1
query_prealloc_size = 65536
query_alloc_block_size = 231072
default-storage-engine = MyISAM
skip-name-resolve

[mysqld_safe]
nice = -5
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M

 

Har dere noen tips til hvordan jeg skal få mysql til å kjøre smertefritt og ikke henge seg opp?

Om noe var uklart, så si ifra :)

Lenke til kommentar
Videoannonse
Annonse

Slik ser ser omtrent hele loggen på mysql ut:

100523 00:25:04 mysqld started
100523 0:25:04 InnoDB: Started; log sequence number 0 3262612374
100523 0:25:04 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.77' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
100523 20:22:24 [Note] /usr/libexec/mysqld: Normal shutdown

100523 20:22:26 InnoDB: Starting shutdown...
100523 20:22:29 InnoDB: Shutdown completed; log sequence number 0 3262955719
100523 20:22:29 [Note] /usr/libexec/mysqld: Shutdown complete

100523 20:22:29 mysqld ended

100523 20:22:29 mysqld started
100523 20:22:30 InnoDB: Started; log sequence number 0 3262955719
100523 20:22:30 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.77' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
100523 22:36:52 [Note] /usr/libexec/mysqld: Normal shutdown

100523 22:36:54 InnoDB: Starting shutdown...
100523 22:36:56 InnoDB: Shutdown completed; log sequence number 0 3262991967
100523 22:36:56 [Note] /usr/libexec/mysqld: Shutdown complete

100523 22:36:56 mysqld ended

100523 22:36:56 mysqld started
100523 22:36:57 InnoDB: Started; log sequence number 0 3262991967
100523 22:36:57 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.77' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
100523 23:24:48 [Note] /usr/libexec/mysqld: Normal shutdown

100523 23:24:50 InnoDB: Starting shutdown...
100523 23:24:52 InnoDB: Shutdown completed; log sequence number 0 3263006051
100523 23:24:52 [Note] /usr/libexec/mysqld: Shutdown complete

100523 23:24:52 mysqld ended

 

"InnoDB: Starting shutdown..." :ermm:

 

Jeg bruker lighhtpd, slik ser den loggen ut:

2010-05-23 23:21:48: (server.c.1357) [note] sockets disabled, connection limit reached 
2010-05-23 23:24:16: (server.c.1311) [note] sockets enabled again 
2010-05-23 23:24:16: (server.c.1357) [note] sockets disabled, connection limit reached 
2010-05-23 23:24:23: (server.c.1311) [note] sockets enabled again 
2010-05-23 23:24:23: (server.c.1357) [note] sockets disabled, connection limit reached 
2010-05-23 23:24:42: (server.c.1311) [note] sockets enabled again 
2010-05-23 23:24:42: (server.c.1357) [note] sockets disabled, connection limit reached 

 

:)

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...