EsgynDB Troubleshooting - ERROR[2012] Server process tdm_arkesp could not becreated

本文分析了因ESP进程启动过多导致SQL执行报错的问题。错误表现为:Serverprocessesp启动失败,提示“Insufficientbufferspace”。原因是monitor启动的进程总数达到上限(2048)。解决方法包括考虑kill部分ESP进程。

现象

某环境由于ESP进程启动过多,导致SQL执行报错,报错信息为:

ERROR[2012] Server process tdm_arkesp could not be created on xxx- Operating system error 4022, TPCError = 31, error detail = 0. Insufficient buffer space.

分析

问题原因:
esp是由monitor启动的,而monitor启动的进程总数是有限制的,是由内部的宏MAX_PROCESSES限制的,这个值是2048,目前这个值在代码中是硬编码的,外部无法修改。
monitor启动的进程数超过这个值时,就会报2012错误,同时,monitor日志中会打印 [CExtNewProcReq::performRequest], Unsuccessful, MAX_PROCESSES limit!

解决

由于代码中对进程个数有硬性限制,需要考虑kill部分进程,如ESP进程。

FATAL Error: Cannot find module '../series_functions/undefined' Require stack: - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\vis-type-timelion-plugin\server\lib\load_functions.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\vis-type-timelion-plugin\server\plugin.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\vis-type-timelion-plugin\server\index.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\core-plugins-server-internal\src\plugin.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\core-plugins-server-internal\src\discovery\plugins_discovery.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\core-plugins-server-internal\src\discovery\index.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\core-plugins-server-internal\src\plugins_service.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\core-plugins-server-internal\src\index.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\core-plugins-server-internal\index.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\core-root-server-internal\src\server.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\core-root-server-internal\src\index.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\core-root-server-internal\index.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\node_modules\@kbn\core\server\index.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\src\cli\serve\serve.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\src\cli\cli.js - D:\kibana-9.1.5-windows-x86_64\kibana-9.1.5\src\cli\dist.js
最新发布
10-18
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

数据源的港湾

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值