• Archives
  • All Categories
  • All Tags

hexo

1 article

404 adobe-xd app开发 bbs centos curl dart discourse ditto dns docker fastjson flame flutter flutter-web fork git github hexo homebrew idea jar java json just-for-fun kotlin linux macos map maven microsoft应用商店 minecraft mybatis mybatis-plus mysql nginx node npm null nvm object php pip pr python react spring springboot sql stack-overflow swagger ubuntu unicode vim vue win10 windows wordpress yum 上线准备 书籍资源 关联查询 出生日期 前端 博客排版 后端 国内加速 国际化 图像 字段 字符编码 字符转义 容器 常用操作 常用组件 常识 序列化 开源 快速开发 技术书籍 搜狗 支付宝 效率 教程 数据库 文件编辑 时区 极客用语 毛玻璃 游戏开发 环境部署 生日 空格 缓存 网络配置 访问加速 词库 踩坑 输入法 运维 闲鱼 阿里巴巴 项目信息
images/default2.jpg

Linux 出现 too many open files 的处理办法

Tuesday, Jun 22, 2021

今天在使用Hexo generate时出现了oo many open files这个问题, 在此记录下过程以及解决方案. 环境 CentOS 排查步骤 使用此命令获取当前系统打开文件数量: lsof | wc -l 使用此命令获取打开文件数量上限: ulimit -a 会返回类似: ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 7268 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 7268 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited 其中, open files的值就为上限.
1 minute read

© 2025 阿航的技术小站

蜀ICP备2022014599号-1

© 2025 阿航的技术小站

蜀ICP备2022014599号-1