<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>系统调优 on Moxuan's Blog</title><link>https://blog.moxuan.de/tags/%E7%B3%BB%E7%BB%9F%E8%B0%83%E4%BC%98/</link><description>Recent content in 系统调优 on Moxuan's Blog</description><image><title>Moxuan's Blog</title><url>https://i.postimg.cc/7hwBy7VS/calcr.png</url><link>https://i.postimg.cc/7hwBy7VS/calcr.png</link></image><generator>Hugo -- 0.154.3</generator><language>zh-cn</language><copyright>©2023-2026 moxuan</copyright><lastBuildDate>Wed, 28 Feb 2024 09:45:00 +0800</lastBuildDate><atom:link href="https://blog.moxuan.de/tags/%E7%B3%BB%E7%BB%9F%E8%B0%83%E4%BC%98/index.xml" rel="self" type="application/rss+xml"/><item><title>服务突然 502？排查 Linux 'Too many open files' 报错踩坑日记</title><link>https://blog.moxuan.de/posts/linux-too-many-open-files-fix/</link><pubDate>Wed, 28 Feb 2024 09:45:00 +0800</pubDate><guid>https://blog.moxuan.de/posts/linux-too-many-open-files-fix/</guid><description>&lt;p&gt;&lt;strong&gt;故障现场&lt;/strong&gt;
昨天半夜，挂在 VPS 上的一个高频采集脚本突然停止工作，Nginx 前端直接报 502 Bad Gateway。
登进服务器看了一眼 CPU 和内存，都非常空闲。去查服务的错误日志，发现满屏都是夺命报错：
&lt;code&gt;Accept error: accept: Too many open files&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>