MySQL stoppt alle paar Tage von selber

liltoe

Registered User
Nabend,

meine Seiten liegen auf einem V-Server. Alle paar Tage, teilweise auch mehrmals am Tag, stoppt der MySQL-Prozess und ich muss ihn von Hand wieder starten.

Der Support hat mir irgendwas von zu vielen Verbindungen erzählt. Genau hab ich das nicht verstanden. Ich sollte mir mal das folgende anschauen ... Und das hab ich auch nicht so ganz verstanden:

Code:
Version: 2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
   2064087: kmemsize        2506760    4283613    5644968    6209464          0
            lockedpages           0          8        302        302          0
            privvmpages       45503      70925      77672      85456          0
            shmpages            641       1985      16305      16305          0
            dummy                 0          0          0          0          0
            numproc              39         65         96         96          0
            physpages         15358      33898          0 2147483647          0
            vmguarpages           0          0      14604 2147483647          0
            oomguarpages      27575      43395      17750 2147483647        132
            numtcpsock           13         31        152        152          0
            numflock              8         17        168        183          0
            numpty                1          4         12         12          0
            numsiginfo            0         13        256        256          0
            tcpsndbuf          4440     250860    1133248    2214592          0
            tcprcvbuf             0     174988    1133248    2214592          0
            othersockbuf     162060     481044     524572     922896          0
            dgramrcvbuf           0     115236     524572     524572          0
            numothersock        107        152        152        152         16
            dcachesize       298892     492870     751593     774141          0
            numfile             772       1295       1680       1680          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10         32         32          0
 
Hallo!
Der Support wollte dir wahrscheinlich folgendes sagen:
Code:
mysql -u root -p
Kennwort : ********
mysql > SHOW SATUS;
Das Ergebnis hier posten. mysql mit Quit beenden.

mfG
Thorsten
 
Thorsten said:
Der Support wollte dir wahrscheinlich folgendes sagen:

Hat er aber nicht :confused:

Code:
+--------------------------+--------+
| Variable_name            | Value  |
+--------------------------+--------+
| Aborted_clients          | 0      |
| Aborted_connects         | 1      |
| Binlog_cache_disk_use    | 0      |
| Binlog_cache_use         | 0      |
| Bytes_received           | 13692  |
| Bytes_sent               | 734960 |
| Com_admin_commands       | 0      |
| Com_alter_db             | 0      |
| Com_alter_table          | 0      |
| Com_analyze              | 0      |
| Com_backup_table         | 0      |
| Com_begin                | 0      |
| Com_change_db            | 3      |
| Com_change_master        | 0      |
| Com_check                | 0      |
| Com_checksum             | 0      |
| Com_commit               | 0      |
| Com_create_db            | 0      |
| Com_create_function      | 0      |
| Com_create_index         | 0      |
| Com_create_table         | 0      |
| Com_dealloc_sql          | 0      |
| Com_delete               | 0      |
| Com_delete_multi         | 0      |
| Com_do                   | 0      |
| Com_drop_db              | 0      |
| Com_drop_function        | 0      |
| Com_drop_index           | 0      |
| Com_drop_table           | 0      |
| Com_drop_user            | 0      |
| Com_execute_sql          | 0      |
| Com_flush                | 0      |
| Com_grant                | 0      |
| Com_ha_close             | 0      |
| Com_ha_open              | 0      |
| Com_ha_read              | 0      |
| Com_help                 | 0      |
| Com_insert               | 0      |
| Com_insert_select        | 0      |
| Com_kill                 | 0      |
| Com_load                 | 0      |
| Com_load_master_data     | 0      |
| Com_load_master_table    | 0      |
| Com_lock_tables          | 0      |
| Com_optimize             | 0      |
| Com_preload_keys         | 0      |
| Com_prepare_sql          | 0      |
| Com_purge                | 0      |
| Com_purge_before_date    | 0      |
| Com_rename_table         | 0      |
| Com_repair               | 0      |
| Com_replace              | 0      |
| Com_replace_select       | 0      |
| Com_reset                | 0      |
| Com_restore_table        | 0      |
| Com_revoke               | 0      |
| Com_revoke_all           | 0      |
| Com_rollback             | 0      |
| Com_savepoint            | 0      |
| Com_select               | 45     |
| Com_set_option           | 0      |
| Com_show_binlog_events   | 0      |
| Com_show_binlogs         | 0      |
| Com_show_charsets        | 0      |
| Com_show_collations      | 0      |
| Com_show_column_types    | 0      |
| Com_show_create_db       | 0      |
| Com_show_create_table    | 0      |
| Com_show_databases       | 0      |
| Com_show_errors          | 0      |
| Com_show_fields          | 0      |
| Com_show_grants          | 0      |
| Com_show_innodb_status   | 0      |
| Com_show_keys            | 0      |
| Com_show_logs            | 0      |
| Com_show_master_status   | 0      |
| Com_show_new_master      | 0      |
| Com_show_open_tables     | 0      |
| Com_show_privileges      | 0      |
| Com_show_processlist     | 0      |
| Com_show_slave_hosts     | 0      |
| Com_show_slave_status    | 0      |
| Com_show_status          | 1      |
| Com_show_storage_engines | 0      |
| Com_show_tables          | 0      |
| Com_show_variables       | 0      |
| Com_show_warnings        | 0      |
| Com_slave_start          | 0      |
| Com_slave_stop           | 0      |
| Com_truncate             | 0      |
| Com_unlock_tables        | 0      |
| Com_update               | 0      |
| Com_update_multi         | 0      |
| Connections              | 6      |
| Created_tmp_disk_tables  | 6      |
| Created_tmp_files        | 3      |
| Created_tmp_tables       | 18     |
| Delayed_errors           | 0      |
| Delayed_insert_threads   | 0      |
| Delayed_writes           | 0      |
| Flush_commands           | 1      |
| Handler_commit           | 0      |
| Handler_delete           | 0      |
| Handler_discover         | 0      |
| Handler_read_first       | 2      |
| Handler_read_key         | 1713   |
| Handler_read_next        | 1248   |
| Handler_read_prev        | 0      |
| Handler_read_rnd         | 1242   |
| Handler_read_rnd_next    | 4966   |
| Handler_rollback         | 0      |
| Handler_update           | 576    |
| Handler_write            | 1839   |
| Key_blocks_not_flushed   | 0      |
| Key_blocks_unused        | 14479  |
| Key_blocks_used          | 22     |
| Key_read_requests        | 6606   |
| Key_reads                | 30     |
| Key_write_requests       | 609    |
| Key_writes               | 0      |
| Max_used_connections     | 2      |
| Not_flushed_delayed_rows | 0      |
| Open_files               | 14     |
| Open_streams             | 0      |
| Open_tables              | 7      |
| Opened_tables            | 18     |
| Qcache_free_blocks       | 0      |
| Qcache_free_memory       | 0      |
| Qcache_hits              | 0      |
| Qcache_inserts           | 0      |
| Qcache_lowmem_prunes     | 0      |
| Qcache_not_cached        | 0      |
| Qcache_queries_in_cache  | 0      |
| Qcache_total_blocks      | 0      |
| Questions                | 53     |
| Rpl_status               | NULL   |
| Select_full_join         | 0      |
| Select_full_range_join   | 0      |
| Select_range             | 9      |
| Select_range_check       | 0      |
| Select_scan              | 24     |
| Slave_open_temp_tables   | 0      |
| Slave_running            | OFF    |
| Slow_launch_threads      | 0      |
| Slow_queries             | 0      |
| Sort_merge_passes        | 0      |
| Sort_range               | 0      |
| Sort_rows                | 1242   |
| Sort_scan                | 18     |
| Table_locks_immediate    | 62     |
| Table_locks_waited       | 0      |
| Threads_cached           | 0      |
| Threads_connected        | 1      |
| Threads_created          | 5      |
| Threads_running          | 1      |
| Uptime                   | 185    |
+--------------------------+--------+
156 rows in set (0.00 sec)

Hoffe, du kannst damit mehr anfangen, als ich ...
 
Nabend,

das Problem besteht immer noch. Ich habe mittlerweile monit installiert, welches die Prozesse prüft und gegebenenfalls mysql wieder neu startet. Ist für mich allerdings keine Lösung.

Vielleicht hat ja noch jemand von euch Lust und Zeit mir dabei zu helfen ...
 
Wie ausgelastet ist der MySQL Server denn? Gibt es viele Zugriffe in der Minute? Könnte das vielleicht den Crash erzeugen?
 
Es ist eine kleine Seite, auf der WordPress läuft. Die anderen Seiten/Kunden nutzen mySQL garnicht. Die Besucherzahlen sind auch nicht übermäßig hoch.

Es scheint ein Problem mit (zu vielen?) socket-verbindungen zu geben. Mehr weiß ich aber auch nicht. Es gibt aber auch Tage/Nächte in denen mySQL aussetzt ohne dass vorher ein Zugriff auf die Seiten stattgefunden hat.
 
Ich würde ja glatt sagen die Resourcen deines Vservers reichen nicht aus:
numothersock 107 152 152 152 16

Du hast die Grenze bei 152...momentan bei 107, ABER du hast schon einen Failcount von 16. Schau mal ob der Wert steigt wenn MySQL abstürtzt. Wenn ja, dann liegts an den Systemresourcen.
Hast du denn noch etwas socket-fressendes auf deinem Server laufen? Chat? TS Server? .. kA...
 
Ja, der Failcount geht wohl jedesmal hoch:

Code:
 numothersock        112        152        152        152        694

Ich habe jetzt nichts großartig am Laufen, das Einzige größere ist WordPress, und ob das Socket-Verbindungen nutzt weiß ich nicht.

Was sagt eigentlich der Failcount? Der erste Wert steigt je nach Auslastung nehme ich an und der Failcount geht dann Hoch, wenn der maximale Wert überschritten ist, richtig?
 
Ja der Failcount zeigt an, wieoft es schon einen Fehler aufgrund dieses Wertes gegeben hat...Also liegts an deinen Sockets..also an den Serverresourcen.
Poste mal ein 'ps aux'
 
Code:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0    604    64 ?        Ss    2005   0:58 init
root     31489  0.0  0.0   1456   284 ?        Ss    2005   0:12 /sbin/syslogd -a /var/lib/named/dev/log -a /var/lib/ntp/dev/log
root     31585  0.0  0.0   1392   148 ?        Ss    2005   0:00 /sbin/klogd -c 1 -x
root     31785  0.0  0.0   4308   564 ?        Ss    2005   0:00 /usr/sbin/saslauthd -a pam -n 1
root     32064  0.0  0.0   4792   444 ?        Ss    2005   0:27 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
root      5824  0.0  0.0   1672   232 ?        Ss    2005   0:10 /usr/sbin/cron
root      8417  0.0  0.0   2076   300 ?        Ss    2005   0:01 /usr/sbin/xinetd
vscan     5763  0.0  0.0  19932  5852 ?        S     2005   0:59 /usr/sbin/clamd
vscan     6465  0.0  0.0   4032   544 ?        Ss    2005   0:00 /usr/bin/freshclam -d
vscan    30240  0.0  0.0  19932  5852 ?        S     2005   0:44 /usr/sbin/clamd
root     32609  0.0  0.0   4580   380 ?        Ss    2005   1:01 /usr/lib/postfix/master
vscan    12449  0.0  0.0  38384   856 ?        Ss    2005   0:53 amavisd (master)
root     18052  0.0  0.0   5684  1236 ?        S     2005   1:11 monit
root     18083  0.0  0.0   5684  1236 ?        S     2005   0:13 monit
root     18112  0.0  0.0   5684  1236 ?        S     2005   0:29 monit
root     19301  0.0  0.0   2576  1156 ?        S    Jan05   0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/mysql/mysqld.pi
vscan    31558  0.0  0.3  39408 23116 ?        S    Jan06   0:01 amavisd (ch3-avail)
postfix  10403  0.0  0.0   4660  1324 ?        S    Jan06   0:00 qmgr -l -t fifo -u
postfix  21058  0.0  0.0   4616  1292 ?        S    Jan06   0:00 tlsmgr -l -t unix -u
root      4130  0.0  0.0  23756  5264 ?        Ss   Jan06   0:06 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
root     20678  0.0  0.0   3468   812 ?        S    Jan06   0:00 /usr/bin/perl /usr/local/confixx/pipelog.pl
root     20710  0.0  0.0   3472   816 ?        S    Jan06   0:00 /usr/bin/perl /usr/local/confixx/pipelog.pl
postfix   7552  0.0  0.0   4616  1500 ?        S    13:52   0:00 pickup -l -t fifo -u
root     15266  0.0  0.0   7860  2488 ?        Ss   14:20   0:00 sshd: root@pts/0
mysql    25313  0.0  0.2  57860 16468 ?        S    14:20   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f
root     25824  0.0  0.0   2840  1776 pts/0    Ss   14:20   0:00 -bash
mysql    27329  0.0  0.2  57860 16468 ?        S    14:20   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f
mysql    27360  0.0  0.2  57860 16468 ?        S    14:20   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f
mysql    27394  0.0  0.2  57860 16468 ?        S    14:20   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f
mysql    27425  0.0  0.2  57860 16468 ?        S    14:20   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f
mysql    27458  0.0  0.2  57860 16468 ?        S    14:20   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f
mysql    29092  0.0  0.2  57860 16468 ?        S    14:20   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f
mysql    29122  0.0  0.2  57860 16468 ?        S    14:20   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f
mysql    29252  0.0  0.2  57860 16468 ?        S    14:20   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f
mysql    29313  0.0  0.2  57860 16468 ?        S    14:20   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f
wwwrun   10948  0.5  0.2  31660 15204 ?        S    14:29   0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   27619  0.0  0.0  23756  5584 ?        S    14:32   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
root      6562  0.0  0.0   2380   832 pts/0    R+   14:33   0:00 ps aux
 
Back
Top