全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1325|回复: 5

[lighttpd] wordpress数据库总是崩溃,搬瓦工双11款

[复制链接]
发表于 2020-11-16 19:38:23 | 显示全部楼层 |阅读模式
各位大佬,小弟采集了一个站,大约1万多篇文章。wordpress未作优化。最近数据库总是崩溃,日IP才两百多而已。被爬虫爬死的吗?

内存占用在1.8个G左右。

今日PV        今日UV        今日IP        今日流量        总流量        今日请求        总请求        蜘蛛       
4,747        2,679        2,032        269.98 MB        65.28 GB        26,448        842,700        6,576       

201116 17:51:10 [Note] Plugin 'FEDERATED' is disabled.
201116 17:51:10 InnoDB: The InnoDB memory heap is disabled
201116 17:51:10 InnoDB: Mutexes and rw_locks use GCC atomic builtins
201116 17:51:10 InnoDB: Compressed tables use zlib 1.2.11
201116 17:51:10 InnoDB: Using Linux native AIO
201116 17:51:10 InnoDB: Initializing buffer pool, size = 256.0M
201116 17:51:10 InnoDB: Completed initialization of buffer pool
201116 17:51:10 InnoDB: highest supported file format is Barracuda.
InnoDB: Log scan progressed past the checkpoint lsn 12489878704
201116 17:51:10  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 12489880752
201116 17:51:12  InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
InnoDB: Last MySQL binlog file position 0 3200205, file name ./mysql-bin.000375
201116 17:51:12  InnoDB: Waiting for the background threads to start
201116 17:51:13 InnoDB: 5.5.62 started; log sequence number 12489880752
201116 17:51:13 [Note] Recovering after a crash using mysql-bin
201116 17:51:13 [Note] Starting crash recovery...
201116 17:51:13 [Note] Crash recovery finished.
201116 17:51:13 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
201116 17:51:13 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
201116 17:51:13 [Note] Server socket created on IP: '0.0.0.0'.
201116 17:51:14 [Note] Event Scheduler: Loaded 0 events
201116 17:51:14 [Note] /www/server/mysql/bin/mysqld: ready for connections.
Version: '5.5.62-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
201116 17:51:22 [Note] Plugin 'FEDERATED' is disabled.
201116 17:51:22 InnoDB: The InnoDB memory heap is disabled
201116 17:51:22 InnoDB: Mutexes and rw_locks use GCC atomic builtins
201116 17:51:22 InnoDB: Compressed tables use zlib 1.2.11
201116 17:51:22 InnoDB: Using Linux native AIO
201116 17:51:22 InnoDB: Initializing buffer pool, size = 256.0M
InnoDB: mmap(274726912 bytes) failed; errno 12
201116 17:51:22 InnoDB: Completed initialization of buffer pool
201116 17:51:22 InnoDB: Fatal error: cannot allocate memory for the buffer pool
201116 17:51:22 [ERROR] Plugin 'InnoDB' init function returned error.
201116 17:51:22 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
201116 17:51:22 [ERROR] Unknown/unsupported storage engine: InnoDB
201116 17:51:22 [ERROR] Aborting

201116 17:51:23 [Note] /www/server/mysql/bin/mysqld: Shutdown complete
发表于 2020-11-16 19:42:23 | 显示全部楼层
上redis,如果没有互动建议直接静态化。
 楼主| 发表于 2020-11-16 19:51:51 | 显示全部楼层
siyi 发表于 2020-11-16 19:42
上redis,如果没有互动建议直接静态化。

谢谢 我搞一下试试
发表于 2020-11-16 20:36:13 | 显示全部楼层
创建个SWAP 你会发现sql在也没有出现崩溃
 楼主| 发表于 2020-11-16 23:16:51 | 显示全部楼层
呆子 发表于 2020-11-16 20:36
创建个SWAP 你会发现sql在也没有出现崩溃

嗯,我改大一点。
发表于 2020-11-16 23:35:20 来自手机 | 显示全部楼层
麻烦你调一下数据库参数
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-25 04:45 , Processed in 0.062049 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表