Debian 服务器内存偶尔不够用怎么办: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

16 March 2026

  • curprev 23:0723:07, 16 March 2026Mwroot talk contribs 1,064 bytes −2 No edit summary
  • curprev 23:0623:06, 16 March 2026Mwroot talk contribs 1,066 bytes −423 No edit summary
  • curprev 23:0423:04, 16 March 2026Mwroot talk contribs 1,489 bytes +909 No edit summary
  • curprev 23:0123:01, 16 March 2026Mwroot talk contribs 580 bytes +580 Created page with "前几天,我稳定运行两年的服务器里的网站的搜索功能,崩了。我查了下,是 out of memory,内存耗尽。听 ChatGPT 的加了 Swap 空间,目前来看确实有效,也没见到负面效果,暂且记下相关命令以备后用。 <syntaxhighlight lang="bash" line> # 设置 sudo fallocate -l 5G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab 在 /et..."