1. 程式人生 > >遇到問題------tomcat重新啟動Insufficient space for shared memory file

遇到問題------tomcat重新啟動Insufficient space for shared memory file

情況
線上的web專案css等樣式突然失效,載入不出來。
想重新啟動但是報錯Insufficient space for shared memory file。
Java HotSpot(TM) 64-Bit Server VM warning: Insufficient space for shared memory file

原因分析
根據排查是伺服器的資源不足

解決方式
使用命令

df

輸出如下:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 10189112 10172724 0 100% /
tmpfs 870496 68 870428 1% /dev/shm

發現硬碟使用率100%

使用命令

find / -size +100M -exec ls -lh {} \;

檢視大小超過100M的檔案,然後進入目錄,刪除一些超大的可刪的日誌檔案,然後重啟tomcat,一切恢復正常。