简体   繁体   English

太多打开的文件 - KairosDB

[英]Too many open files - KairosDB

on running this query: 在运行此查询时:

{ "start_absolute":1359695700000, "end_absolute":1422853200000, "metrics":[{"tags":{"Building_id":["100"]},"name":"meterreadings","group_by":[{"name":"time","group_count":"12","range_size":{"value":"1","unit":"MONTHS"}}],"aggregators":[{"name":"sum","align_sampling":true,"sampling":{"value":"1","unit":"Months"}}]}]} {“start_absolute”:1359695700000,“end_absolute”:1422853200000,“metrics”:[{“tags”:{“Building_id”:[“100”]},“name”:“meterreadings”,“group_by”:[{“命名 “:” 时间 “ ”GROUP_COUNT“: ”12“, ”RANGE_END个“:{ ”值“: ”1“, ”单元“: ”个月“}}], ”聚合“:[{ ”名称“:”总和”, “align_sampling”:真, “采样”:{ “值”: “1”, “单元”: “月”}}]}]}

I am getting the following response: 我收到以下回复:

500 {"errors":["Too many open files"]} 500 {“errors”:[“太多打开的文件”]}

Here this link it is written that increase the size of file-max. 这里写的这个链接增加了file-max的大小。

My file-max output is: 我的文件最大输出是:

cat /proc/sys/fs/file-max
382994

it is already very large, do I need to increase its limit 它已经非常大了,我是否需要增加其限制

What version are you using? 你用的是什么版本? Are you using a lot of grou-by in your queries? 你在查询中使用了很多群体吗? You may need to restart kairosDB as a workaround. 您可能需要重新启动kairosDB作为解决方法。

Can you check if you have deleted (ghost) files handles (replace by kairosDB process ID in the command line below)? 你能检查一下是否删除了(ghost)文件句柄(在下面的命令行中用kairosDB进程ID替换)?

ls -l /proc/<PID>/fd | grep kairos_cache | grep -v '(delete)' | wc -l  

THere was a fix in 0.9.5 for unclosed file handles. 对于未关闭的文件句柄,这是0.9.5的修复。 There's a fix pending for next release (1.0.1). 下一个版本(1.0.1)有一个待修复的修复程序。

cf. 比照 https://github.com/kairosdb/kairosdb/pull/180 , https://github.com/kairosdb/kairosdb/issues/132 , and https://github.com/kairosdb/kairosdb/issues/175 . https://github.com/kairosdb/kairosdb/pull/180https://github.com/kairosdb/kairosdb/issues/132https://github.com/kairosdb/kairosdb/issues/175

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM