- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
MySql 接受连接的速度很慢,并且在尝试删除包含 5000 万条记录的大型表失败后变得昏昏欲睡。以前可以立即建立连接,现在只需 20-30 秒即可建立连接。
运行mysqlcheck
结果表正常,但是SHOW ENGINE INNODB STATUS
看起来不正确:
它以这样的多行开始:
+--------+------+---------------------------- ------------------------------------------------ -------------- -------------------------------------------------- ---------------------------------------------------------------- ---------------------------------------------------------- ---- -------------------------------------------------- -------------------------- ------------------------ -------------------------------------------------- ------
这会持续很多行,然后:
----------------------------------------------+
| InnoDB | |
=====================================
2017-01-31 19:03:05 0x7f2be82e5700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 35 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 19 srv_active, 0 srv_shutdown, 1234 srv_idle
srv_master_thread log flush and writes: 1253
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 91
OS WAIT ARRAY INFO: signal count 74
RW-shared spins 0, rounds 58, OS waits 23
RW-excl spins 0, rounds 205, OS waits 0
RW-sx spins 0, rounds 0, OS waits 0
Spin rounds per wait: 58.00 RW-shared, 205.00 RW-excl, 0.00 RW-sx
------------
TRANSACTIONS
------------
Trx id counter 40192594
Purge done for trx's n:o < 40190602 undo n:o < 0 state: running but idle
History list length 2280
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 421306474252112, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
--------
FILE I/O
--------
I/O thread 0 state: waiting for completed aio requests (insert buffer thread)
I/O thread 1 state: waiting for completed aio requests (log thread)
I/O thread 2 state: waiting for completed aio requests (read thread)
I/O thread 3 state: waiting for completed aio requests (read thread)
I/O thread 4 state: waiting for completed aio requests (read thread)
I/O thread 5 state: waiting for completed aio requests (read thread)
I/O thread 6 state: waiting for completed aio requests (write thread)
I/O thread 7 state: waiting for completed aio requests (write thread)
I/O thread 8 state: waiting for completed aio requests (write thread)
I/O thread 9 state: waiting for completed aio requests (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: 0
369979 OS file reads, 61 OS file writes, 15 OS fsyncs
286.85 reads/s, 16384 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 2193, seg size 2195, 0 merges
merged operations:
insert 0, delete mark 0, delete 0
discarded operations:
insert 0, delete mark 0, delete 0
Hash table size 1182691, node heap has 0 buffer(s)
Hash table size 1182691, node heap has 3 buffer(s)
Hash table size 1182691, node heap has 3 buffer(s)
Hash table size 1182691, node heap has 6 buffer(s)
Hash table size 1182691, node heap has 2 buffer(s)
Hash table size 1182691, node heap has 2 buffer(s)
Hash table size 1182691, node heap has 1 buffer(s)
Hash table size 1182691, node heap has 0 buffer(s)
0.00 hash searches/s, 0.00 non-hash searches/s
---
LOG
---
Log sequence number 310536690314
Log flushed up to 310536690314
Pages flushed up to 310536690314
Last checkpoint at 310536690305
0 pending log flushes, 0 pending chkp writes
16 log i/o's done, 0.00 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 4397727744
Dictionary memory allocated 39828543
Buffer pool size 262112
Free buffers 0
Database pages 262095
Old database pages 96806
Modified db pages 0
Pending reads 1
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 103, not young 6145557
0.00 youngs/s, 92166.80 non-youngs/s
Pages read 369591, created 34, written 37
286.88 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 999 / 1000, young-making rate 0 / 1000 not 368 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 262095, unzip_LRU len: 0
I/O sum[120336]:cur[304], unzip sum[0]:cur[0]
----------------------
INDIVIDUAL BUFFER POOL INFO
----------------------
---BUFFER POOL 0
Buffer pool size 32764
Free buffers 0
Database pages 32761
Old database pages 12102
Modified db pages 0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 12, not young 782981
0.00 youngs/s, 12008.66 non-youngs/s
Pages read 46266, created 0, written 3
36.46 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 999 / 1000, young-making rate 0 / 1000 not 369 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 32761, unzip_LRU len: 0
I/O sum[15042]:cur[38], unzip sum[0]:cur[0]
---BUFFER POOL 1
Buffer pool size 32764
Free buffers 0
Database pages 32760
Old database pages 12090
Modified db pages 0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 23, not young 714985
0.00 youngs/s, 10882.83 non-youngs/s
Pages read 43701, created 0, written 0
33.54 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 999 / 1000, young-making rate 0 / 1000 not 361 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 32760, unzip_LRU len: 0
I/O sum[15042]:cur[38], unzip sum[0]:cur[0]
---BUFFER POOL 2
Buffer pool size 32764
Free buffers 0
Database pages 32762
Old database pages 12102
Modified db pages 0
Pending reads 1
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 12, not young 826273
0.00 youngs/s, 12544.36 non-youngs/s
Pages read 47653, created 0, written 0
40.11 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 999 / 1000, young-making rate 0 / 1000 not 363 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 32762, unzip_LRU len: 0
I/O sum[15042]:cur[38], unzip sum[0]:cur[0]
---BUFFER POOL 3
Buffer pool size 32764
Free buffers 0
Database pages 32763
Old database pages 12103
Modified db pages 0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 11, not young 789399
0.00 youngs/s, 10819.38 non-youngs/s
Pages read 46867, created 0, written 0
34.46 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 999 / 1000, young-making rate 0 / 1000 not 364 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 32763, unzip_LRU len: 0
I/O sum[15042]:cur[38], unzip sum[0]:cur[0]
---BUFFER POOL 4
Buffer pool size 32764
Free buffers 0
Database pages 32762
Old database pages 12089
Modified db pages 0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 24, not young 716775
0.00 youngs/s, 10601.24 non-youngs/s
Pages read 45316, created 0, written 0
32.43 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 999 / 1000, young-making rate 0 / 1000 not 371 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 32762, unzip_LRU len: 0
I/O sum[15042]:cur[38], unzip sum[0]:cur[0]
---BUFFER POOL 5
Buffer pool size 32764
Free buffers 0
Database pages 32762
Old database pages 12094
Modified db pages 0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 20, not young 816196
0.00 youngs/s, 12974.26 non-youngs/s
Pages read 47369, created 0, written 0
39.77 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 999 / 1000, young-making rate 0 / 1000 not 378 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 32762, unzip_LRU len: 0
I/O sum[15042]:cur[38], unzip sum[0]:cur[0]
---BUFFER POOL 6
Buffer pool size 32764
Free buffers 0
Database pages 32764
Old database pages 12113
Modified db pages 0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 1, not young 739215
0.00 youngs/s, 11328.79 non-youngs/s
Pages read 46339, created 34, written 34
34.51 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 999 / 1000, young-making rate 0 / 1000 not 373 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 32764, unzip_LRU len: 0
I/O sum[15042]:cur[38], unzip sum[0]:cur[0]
---BUFFER POOL 7
Buffer pool size 32764
Free buffers 0
Database pages 32761
Old database pages 12113
Modified db pages 0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 0, not young 759733
0.00 youngs/s, 11007.29 non-youngs/s
Pages read 46080, created 0, written 0
35.60 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 999 / 1000, young-making rate 0 / 1000 not 367 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 32761, unzip_LRU len: 0
I/O sum[15042]:cur[38], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
1 read views open inside InnoDB
Process ID=2785, Main thread ID=139826948695808, state: sleeping
Number of rows inserted 0, updated 0, deleted 0, read 14
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================
+--------+------+---------------------------------------------------------------
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
最后,输出像开始一样以多行破折号和加号结束。
请告知我有关故障排除和修复的其他步骤。
最佳答案
如果你怀疑innoDB行为异常,你可以看看引擎在做什么,这很昂贵,所以在正常情况下不要这样做。手册内容如下:
Enable the InnoDB Monitors to obtain information about a problem (see Section 14.17, “InnoDB Monitors”). If the problem is performance-related, or your server appears to be hung, you should enable the standard Monitor to print information about the internal state of InnoDB. If the problem is with locks, enable the Lock Monitor. If the problem is in creation of tables or other data dictionary operations, enable the Table Monitor to print the contents of the InnoDB internal data dictionary. To see tablespace information enable the Tablespace Monitor.
InnoDB temporarily enables standard InnoDB Monitor output under the following conditions:
A long semaphore wait
InnoDB cannot find free blocks in the buffer pool
Over 67% of the buffer pool is occupied by lock heaps or the adaptive hash index
https://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html https://dev.mysql.com/doc/refman/5.6/en/innodb-monitors.html
关于MySQL 在 Drop Large Table 中挂起,现在需要很长时间才能连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41970438/
我有一个应用程序,当通过 eclipse 运行时,它会导致 eclipse 本身挂起。如果我将此应用程序导出为 jar 并运行它,它工作正常。但是,如果我运行(或调试)它,应用程序将显示为启动(根据
我正在将项目从 Rails2 切换到 Rails3。我跑: rails server 服务器启动没有错误: => Booting WEBrick => Rails 3.0.7 application
当我尝试使用 XCode 打开特定项目时,它挂起。当它挂起时,它显示以下屏幕: 其他项目可以正常打开,虽然挂起的项目也打开了,意味着我什么也做不了。我的 CPU 全速运行(风扇开始运转),我必须退出多
我正在使用 BNHtmlPdfKit 将 Html 呈现为 PDF。它工作得很好,但在 iOS8 中它只是挂起 [renderer drawPageAtIndex:i inRect:renderer.
我一直在尝试在 eclipse 中创建一个项目,并且有一个名为 InitRemoteEditJob 的工作正在阻止一切。它甚至没有被取消。 请建议怎么办? 最佳答案 这个错误有很多原因。 你可以试试这
我使用这个函数来发出 cURL 请求: function curl_request($options) //single custom cURL request. { $ch = curl_i
当我尝试归档某个项目时,Xcode 无法响应。如果让他一个人呆着,他会在很长一段时间后设法打开管理器。文件在那里。如果从 library/developer/xcode/archives 中手动删除,
有时我的 Eclipse 挂起,我需要猛烈地杀死它。但是,我一直无法正确地做到这一点。似乎 kill -9 实际上并没有以正确的方式关闭它,因为我仍然可以看到挂起的窗口。什么命令序列会正确杀死我的 E
我有一个JavaFX 8应用,它有时会挂起/冻结。我觉得我已经排除了造成此问题的许多原因,但它仍在发生。 不幸的是,我无法按需复制冻结/挂起。实际上,这仅发生在(到目前为止)我同事的计算机上。它可能在
我正在尝试学习网络基础知识,并且已经从this教程构建了回显服务器。我用telnet检查了服务器,它工作正常。 现在,当我使用Internet上的许多客户端示例中的一些示例时: // Create a
我正在尝试使用 SwiftUI 实现使用 Apple 登录,但在我输入正确的密码后它挂起。 我正在使用真实用户和模拟器以及 XCode 12.0 Beta。不幸的是,我现在没有可供测试的设备。我也尝试
我包括此简单的错误处理功能来格式化错误: date_default_timezone_set('America/New_York'); // Create the error handler. fun
我正在尝试为 VisualVM 安装一些插件,但它一直卡在下面的屏幕上 - 告诉我“请等待安装程序发现插件依赖项”。我运行的是 Ubuntu 12.04。当我尝试从“可用插件”列表中安装它们时,以及当
如果堆分配/取消分配/重新分配在另一个线程中进行,DbgHelp 库的 MiniDumpWriteDump() 将挂起。这是调用堆栈:DbgHelp 暂停其他线程,然后无限期地等待这些线程获得的互斥量
我正在尝试在 Eclipse C++ 版本中安装新软件。 帮助 -> 安装新软件。当我去安装新软件时,它会挂起或需要几个小时才能移动百分比。 我读到这是 JRE7 中的一个已知错误,我假设我在安装它后
这个问题已经有答案了: process.waitFor() never returns (12 个回答) 已关闭 3 年前。 我使用以下代码运行命令: open class AppRunner {
我正在尝试为 VisualVM 安装一些插件,但它一直卡在下面的屏幕上 - 告诉我“请等待安装程序发现插件依赖项”。我正在运行 Ubuntu 12.04。当我尝试从“可用插件”列表安装它们时,以及当我
如果堆分配/取消分配/重新分配在另一个线程中进行,DbgHelp 库的 MiniDumpWriteDump() 将挂起。这是调用堆栈:DbgHelp 暂停其他线程,然后无限期地等待这些线程获得的互斥量
尝试调试竞争条件,其中我们的应用程序的轮询器线程之一永远不会返回,导致 future 的轮询器永远不会被调度。用抽象术语来说,在捕获问题时隐藏我们的业务逻辑,这就是我们的代码路径。 我们必须更新远程服
我在程序完成时遇到 Java 的 ExecutorCompletionService 问题。 我需要使用 ExecutorCompletionService 而不是 ExecutorService 因
我是一名优秀的程序员,十分优秀!