Postgresql 报错:worker took too long to start 导致CPU 的使用率达到96%-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

Postgresql 报错:worker took too long to start 导致CPU 的使用率达到96%

2016-04-01 15:31:30 6876 2

大家好,请教一个问题,前段时间我遇到一个问题,我们的数据库是基于pg9.3版本的,操作系统是Centos6.4操作系统,不知道什么原因,导致数据库报错 worker took too long to start; canceled 从而导致服务器的CPU的使用率达到了96%,进而导致数据库和服务器宕机,请问这大概是什么原因,怎么引起的呢?明白原因后我好继续排查问题,希望大家不吝赐教,谢谢大家。

附日志部分报错信息:
2016-03-31 05:04:53.993 CST - zyml - glptuser - fb09 : LOG: process 108742 acquired ExclusiveLock on extension of relation 80385 of database 24576 after 2803790.559 ms
2016-03-31 05:04:53.993 CST - zyml - glptuser - fb09 : STATEMENT: insert into T_ZY_VALUE_TEMP (C_ID,N_ZY_ID,N_FY,D_TJSJ,N_VALUE,N_ZL,N_JB) select replace(''||uuid_generate_v4(), '-', '') as C_ID,N_ZY_ID,N_JBFY as N_FY,now() as D_TJSJ,N_VALUE,N_ZL, 1 from ( SELECT COUNT (1) as N_VALUE,MSES.N_JBFY as N_JBFY,437 as N_ZY_ID,1 as N_ZL from DB_MSES.T_MSESDSR DSR INNER JOIN DB_MSES.T_MSESYASTML STML ON DSR.N_AJBS = STML.N_AJBS AND DSR.N_DSR=STML.N_XH INNER JOIN DB_MSES.T_MSES MSES ON DSR.N_AJBS = MSES.N_AJBS WHERE (STML.N_LX = 1 OR STML.N_LX = 4) AND STML.N_SF IS NULL GROUP BY MSES.N_JBFY) as temp
2016-03-31 05:05:54.672 CST - - - : WARNING: worker took too long to start; canceled
2016-03-31 05:07:05.375 CST - - - : WARNING: worker took too long to start; canceled
2016-03-31 05:18:38.168 CST - - - : WARNING: worker took too long to start; canceled
2016-03-31 05:52:36.340 CST - - - : WARNING: worker took too long to start; canceled
2016-03-31 07:16:01.209 CST - - - : WARNING: worker took too long to start; canceled
2016-03-31 07:31:17.312 CST - - - : WARNING: worker took too long to start; canceled
2016-03-31 07:40:58.997 CST - [unknown] - appuser - postgres : LOG: could not receive data from client: Connection reset by peer
2016-03-31 07:59:57.668 CST - - - : WARNING: autovacuum worker started without a worker entry
2016-03-31 08:04:53.137 CST - - - : WARNING: autovacuum worker started without a worker entry
2016-03-31 08:29:09.090 CST - [unknown] - appuser - postgres : LOG: could not receive data from client: Connection reset by peer
2016-03-31 09:32:50.259 CST - - - : WARNING: worker took too long to start; canceled
2016-03-31 09:35:41.776 CST - [unknown] - [unknown] - [unknown] : WARNING: pg_getnameinfo_all() failed: 域名解析暂时失败
2016-03-31 09:37:21.383 CST - - - : WARNING: worker took too long to start; canceled

取消 提交回答
全部回答(2)
  • 卓刀
    2019-07-17 18:37:10

    从报错上来看,像是因为autovacuum launcher想要创建新的worker,但是却发现上次创建计划仍然没有成功,但是不确定,如果再次遇到这样的问题,请把对应的调用栈保存下来。

    0 0
  • 德哥
    2019-07-17 18:37:10

    有方法能重现吗?

    0 0
添加回答
相关问答

18

回答

【大咖问答】对话PostgreSQL 中国社区发起人之一,阿里云数据库高级专家 德哥

阿里ACE 彭飞 2019-07-10 09:36:10 1048070浏览量 回答数 18

145

回答

【新手入门】云服务器linux使用手册

fanyue88888 2012-11-26 17:14:18 157766浏览量 回答数 145

8

回答

OceanBase 使用动画(持续更新)

mq4096 2019-02-20 17:16:36 337108浏览量 回答数 8

22

回答

爬虫数据管理【问答合集】

我是管理员 2018-08-10 16:37:41 147285浏览量 回答数 22

2

回答

mySQL数据库报错You have an error in your SQL syntax

落地花开啦 2016-02-14 16:09:24 129187浏览量 回答数 2

38

回答

安全组详解,新手必看教程

我的中国 2017-11-30 15:23:46 259913浏览量 回答数 38

21

回答

请教一下数据量有100万条左右要什么配置?

易网网络 2013-03-27 15:18:02 192666浏览量 回答数 21

249

回答

阿里云LNAMP(Linux + Nginx + Apache + MySQL + PHP)环境一键安装脚本

云代维 2014-02-14 15:26:06 305709浏览量 回答数 249

97

回答

Redhat/CentOS一键安装web环境全攻略

xiaofanqie 2011-08-11 14:51:38 123739浏览量 回答数 97

2

回答

区域选择帮助

fanyue88888 2012-12-07 15:54:30 204431浏览量 回答数 2
+关注
0
文章
6
问答
问答排行榜
最热
最新
相关电子书
更多
《2021云上架构与运维峰会演讲合集》
立即下载
《零基础CSS入门教程》
立即下载
《零基础HTML入门教程》
立即下载