menu LittleJake's Blog
color_lens
avatar
Jake Liu
Never Settle
creative commons by-nc-sa
hit
Category
keyboard_arrow_down

© 2024 LittleJake's Blog.

萌ICP备20223020号

Kafka出现报错Too Many Open File

起因

Kafka无故宕机,查看log发现报错Too Many Open File

处理

  1. 检查ulimit -a,发现open file大小正常,接近内核最大允许/proc/sys/fs/nr_open的1048576
  2. 修改kafka参数num.replica.fetchers由10改为60,观察效果

笔记

ulimit

  • nr_open

  • num.replica.fetchers

参考

linux下设置最大文件打开数nofile及nr_open、file-max说明

Buy me a beer

buymeacoffee
Jake Liu
Never Settle

Title: Kafka出现报错Too Many Open File

Author: Jake Liu

Origin:

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) For any re-post you must give appropriate credit.

文章遵循CC许可 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 转载请注明出处

Tag:Kafka, ulimit

评论区

Add a new comment.

Theme