SQLinfo.ru - Все о MySQL

Форум пользователей MySQL

Задавайте вопросы, мы ответим

Вы не зашли.

#1 15.01.2016 11:36:02

Nortonback
Участник
Зарегистрирован: 15.01.2016
Сообщений: 4

Помогите понять, что случилось

Началось все так:

Timestamp, Thread, Type, Details
2016-01-15T00:42:40, 0, Warning, InnoDB: A long semaphore wait:
, , , --Thread 1420 has waited at buf0flu.cc line 1209 for 737.00 seconds the semaphore:
, , , SX-lock on RW-latch at 00000074104E1790 created in file buf0buf.cc line 1379
, , , a writer (thread id 1496) has reserved it in mode  exclusive
, , , number of readers 0, waiters flag 1, lock_word: cfffffff
, , , Last time read locked in file btr0sea.cc line 1029
, , , Last time write locked in file g:\ade\build\sb_0-17208442-1448870833.93\mysql-5.7.10\storage\innobase\include\fut0fut.ic line 57
, , , InnoDB: ###### Starts InnoDB Monitor for 30 secs to print diagnostic info:
, , , InnoDB: Pending preads 0, pwrites 0
, , , =====================================
, , , 2016-01-15 04:42:52 0x5d0 INNODB MONITOR OUTPUT
, , , =====================================
, , , Per second averages calculated from the last 20 seconds
, , , -----------------
, , , BACKGROUND THREAD
, , , -----------------
, , , srv_master_thread loops: 47470 srv_active, 0 srv_shutdown, 6050 srv_idle
, , , srv_master_thread log flush and writes: 53520
, , , ----------
, , , SEMAPHORES
, , , ----------
, , , OS WAIT ARRAY INFO: reservation count 3399722
, , , --Thread 1420 has waited at buf0flu.cc line 1209 for 749.00 seconds the semaphore:
, , , SX-lock on RW-latch at 00000074104E1790 created in file buf0buf.cc line 1379
, , , a writer (thread id 1496) has reserved it in mode  exclusive
, , , number of readers 0, waiters flag 1, lock_word: cfffffff
, , , Last time read locked in file btr0sea.cc line 1029
, , , Last time write locked in file g:\ade\build\sb_0-17208442-1448870833.93\mysql-5.7.10\storage\innobase\include\fut0fut.ic line 57
, , , --Thread 2524 has waited at trx0trx.cc line 1185 for 7.00 seconds the semaphore:
, , , Mutex at 0000007418C00500, Mutex REDO_RSEG created trx0rseg.cc:211, lock var 1
, , , OS WAIT ARRAY INFO: signal count 2540523
, , , RW-shared spins 0, rounds 5190603, OS waits 2119222
, , , RW-excl spins 0, rounds 28632471, OS waits 822482
, , , RW-sx spins 63594, rounds 912017, OS waits 6398
, , , Spin rounds per wait: 5190603.00 RW-shared, 28632471.00 RW-excl, 14.34 RW-sx
, , , ------------
, , , TRANSACTIONS
, , , ------------
, , , Trx id counter 277241
, , , Purge done for trx's nyikes < 276962 undo nyikes < 4587310 state: running
, , , History list length 1707
, , , LIST OF TRANSACTIONS FOR EACH SESSION:
, , , ---TRANSACTION 281973410020256, not started inserting, thread declared inside InnoDB 5000
, , , mysql tables in use 1, locked 1
, , , 0 lock struct(s), heap size 1136, 0 row lock(s)
, , , ---TRANSACTION 281973410016768, not started
, , , 0 lock struct(s), heap size 1136, 0 row lock(s)
, , , ---TRANSACTION 281973410015896, not started
, , , 0 lock struct(s), heap size 1136, 0 row lock(s)
, , , --------
, , , FILE I/O
, , , --------
, , , I/O thread 0 state: wait Windows aio (insert buffer thread)
, , , I/O thread 1 state: wait Windows aio (log thread)
, , , I/O thread 2 state: wait Windows aio (read thread)
, , , I/O thread 3 state: wait Windows aio (read thread)
, , , I/O thread 4 state: wait Windows aio (read thread)
, , , I/O thread 5 state: wait Windows aio (read thread)
, , , I/O thread 6 state: wait Windows aio (write thread)
, , , I/O thread 7 state: wait Windows aio (write thread)
, , , I/O thread 8 state: wait Windows aio (write thread)
, , , I/O thread 9 state: wait Windows aio (write thread)
, , , Pending normal aio reads: [0, 0, 0, 0] , aio writes: [0, 0, 0, 0] ,
, , , ibuf aio reads:, log i/o's:, sync i/o's:
, , , Pending flushes (fsync) log: 0; buffer pool: 3
, , , 2986113 OS file reads, 763797 OS file writes, 230507 OS fsyncs
, , , 57.60 reads/s, 16384 avg bytes/read, 34.45 writes/s, 22.50 fsyncs/s
, , , -------------------------------------
, , , INSERT BUFFER AND ADAPTIVE HASH INDEX
, , , -------------------------------------
, , , Ibuf: size 1, free list len 41, seg size 43, 474 merges
, , , merged operations:
, , , insert 491, delete mark 0, delete 0
, , , discarded operations:
, , , insert 0, delete mark 0, delete 0
, , , Hash table size 34679, node heap has 0 buffer(s)
, , , Hash table size 34679, node heap has 56 buffer(s)
, , , Hash table size 34679, node heap has 0 buffer(s)
, , , Hash table size 34679, node heap has 35 buffer(s)
, , , Hash table size 34679, node heap has 1 buffer(s)
, , , Hash table size 34679, node heap has 455 buffer(s)
, , , Hash table size 34679, node heap has 1 buffer(s)
, , , Hash table size 34679, node heap has 859 buffer(s)
, , , 16675.92 hash searches/s, 871.91 non-hash searches/s
, , , ---
, , , LOG
, , , ---
, , , Log sequence number 45905353429
, , , Log flushed up to   45905352657
, , , Pages flushed up to 45903882746
, , , Last checkpoint at  45903882746
, , , 0 pending log flushes, 0 pending chkp writes
, , , 127176 log i/o's done, 1.90 log i/o's/second
, , , ----------------------
, , , BUFFER POOL AND MEMORY
, , , ----------------------
, , , Total large memory allocated 137297920
, , , Dictionary memory allocated 1582984
, , , Buffer pool size   8192
, , , Free buffers       0
, , , Database pages     6785
, , , Old database pages 2485
, , , Modified db pages  632
, , , Pending reads 1
, , , Pending writes: LRU 0, flush list 2, single page 3
, , , Pages made young 3706808, not young 511500528
, , , 32.70 youngs/s, 3716.21 non-youngs/s
, , , Pages read 2985717, created 272829, written 579422
, , , 57.60 reads/s, 0.05 creates/s, 16.35 writes/s
, , , Buffer pool hit rate 999 / 1000, young-making rate 0 / 1000 not 80 / 1000
, , , Pages read ahead 3.20/s, evicted without access 0.00/s, Random read ahead 0.00/s
, , , LRU len: 6785, unzip_LRU len: 0
, , , I/O sum[54895]:cur[823], unzip sum[0]:cur[0]
, , , --------------
, , , ROW OPERATIONS
, , , --------------
, , , 4 queries inside InnoDB, 0 queries in queue
, , , 3 read views open inside InnoDB
, , , Process ID=840, Main thread ID=1492, state: sleeping
, , , Number of rows inserted 66192322, updated 4778, deleted 19058136, read 668094624
, , , 0.40 inserts/s, 0.25 updates/s, 0.00 deletes/s, 17481.33 reads/s
, , , ----------------------------
, , , END OF INNODB MONITOR OUTPUT


А закончилось так:

2016-01-15T00:46:16, 0, ERROR] [FATAL, InnoDB: Semaphore wait has lasted > 600 seconds. We intentionally crash the server because it appears to be hung.
, , , 2016-01-15 04:46:16 0x5cc  InnoDB: Assertion failure in thread 1484 in file ut0ut.cc line 923
, , , InnoDB: We intentionally generate a memory trap.
, , , InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
, , , InnoDB: If you get repeated assertion failures or crashes, even
, , , InnoDB: immediately after the mysqld startup, there may be
, , , InnoDB: corruption in the InnoDB tablespace. Please refer to
, , , InnoDB: http://dev.mysql.com/doc/refman/5.7/en/ … overy.html
, , , InnoDB: about forcing recovery.
, , , 00:46:17 UTC - mysqld got exception 0x80000003 ;
, , , This could be because you hit a bug. It is also possible that this binary
, , , or one of the libraries it was linked against is corrupt, improperly built,
, , , or misconfigured. This error can also be caused by malfunctioning hardware.
, , , Attempting to collect some information that could help diagnose the problem.
, , , As this is a crash and something is definitely wrong, the information
, , , collection process might fail.
, , , key_buffer_size=8388608
, , , read_buffer_size=65536
, , , max_used_connections=14
, , , max_threads=151
, , , thread_count=6
, , , connection_count=6
, , , It is possible that mysqld could use up to
, , , key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 58341 K  bytes of memory
, , , Hope that's ok; if not, decrease some variables in the equation.
, , , Thread pointer: 0x0
, , , Attempting backtrace. You can use the following information to find out
, , , where mysqld died. If you see no messages after this, something went
, , , terribly wrong...
, , , 7ff62874ebe2    mysqld.exe!my_errno()
, , , 7ff628aeb6c9    mysqld.exe!my_wildcmp_mb()
, , , 7ff628aea5c0    mysqld.exe!my_wildcmp_mb()
, , , 7ff62884bf78    mysqld.exe!?reserve@?$vector@EV?$allocator@E@std@@@std@@QEAAX_K@Z()
, , , 7ff62884c191    mysqld.exe!?reserve@?$vector@EV?$allocator@E@std@@@std@@QEAAX_K@Z()
, , , 7ff6287bf95d    mysqld.exe!?reserve@?$vector@EV?$allocator@E@std@@@std@@QEAAX_K@Z()
, , , 7ff8b0cc168d    KERNEL32.DLL!BaseThreadInitThunk()
, , , 7ff8b3054629    ntdll.dll!RtlUserThreadStart()
, , , The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
, , , information that should help you find out what is causing the crash.
2016-01-15T00:47:23, 307819, Warning, IP address '40.121.92.81' could not be resolved: Ýòîò õîñò íåèçâåñòåí.

Неактивен

 

#2 15.01.2016 21:46:27

paulus
Администратор
MySQL Authorized Developer and DBA
Зарегистрирован: 22.01.2007
Сообщений: 6756

Re: Помогите понять, что случилось

А физически с сервером всё хорошо? Там прямо с первых строк — Thread 1420 has waited at buf0flu.cc line 1209 for 737.00 seconds the semaphore, пытается получить доступ к семафору, чтобы сбросить буфер на диск, и не может. А дальше уже автоматика отработала, которая увидела, что система встала, и решила убиться на всякий случай.

Диски нормально работают, всё поднимается назад?

Неактивен

 

#3 15.01.2016 22:52:03

Nortonback
Участник
Зарегистрирован: 15.01.2016
Сообщений: 4

Re: Помогите понять, что случилось

Вообще с сервером все хорошо - физически. Но, завтра проверить могу, скажите, какие параметры проверить на сервере - подключение к электропитанию, к сети интернет, по объему памяти?

Неактивен

 

#4 15.01.2016 23:03:56

rgbeast
Администратор
MySQL Authorized Developer and DBA
Откуда: Москва
Зарегистрирован: 21.01.2007
Сообщений: 3878

Re: Помогите понять, что случилось

Есть ли свободное место на диске, нет ли ошибок жесткого диска в smart, нет ли ошибок в системных логах. Так все не перечислишь.

Неактивен

 

#5 15.01.2016 23:05:41

Nortonback
Участник
Зарегистрирован: 15.01.2016
Сообщений: 4

Re: Помогите понять, что случилось

всё назад поднимается, а вот нормально ли они работают, я утверждать не могу. но на мой взгляд скорее да, чем нет

Неактивен

 

#6 15.01.2016 23:07:05

Nortonback
Участник
Зарегистрирован: 15.01.2016
Сообщений: 4

Re: Помогите понять, что случилось

с железом все ок

Неактивен

 

#7 16.01.2016 16:23:24

paulus
Администратор
MySQL Authorized Developer and DBA
Зарегистрирован: 22.01.2007
Сообщений: 6756

Re: Помогите понять, что случилось

Я бы попробовал сделать на всякий случай полный бэкап, и, если все данные целы, то всё хорошо. А причина — если с железом всё ок, значит, проблема с софтом. Можно попробовать обновиться до последней версии и смотреть, повторится ли проблема.

Неактивен

 

Board footer

Работает на PunBB
© Copyright 2002–2008 Rickard Andersson