當前位置:首頁 » 編程語言 » wasjavaheap

wasjavaheap

發布時間: 2023-03-19 10:11:32

❶ [Websphere]如何產生javacore文件和heapmp文件

在was啟動前設置下面環境變數(可以加在啟動腳本中) export IBM_HEAPDUMP=true export IBM_HEAP_DUMP=true export IBM_HEAPDUMP_OUTOFMEMORY=true export IBM_HEAPDUMPDIR=<directory path> 2.2please use set command to make sure you do not have DISABLE_JAVADUMP parameter then start this cluster member. 用set命令檢查參數設置,確保沒有設置DISABLE_JAVADUMP,然後啟動server 2.3when you find free memory < 50% when no heavy access, please run kill -3 <pid> 執行kill -3 <pid>命令可以生成javacore文件和heapmp文件(pid為was java進程的id號,可以用ps -ef|grep java 查到),可以多執行幾次,按照下面操作進行 ps -ef > psef1.txt ps aux > psaux1.txt vmstat 5 10 > vmstat.txt kill -3 <app server id> wait for 2 mins kill -3 <app server id> wait for 2 mins kill -3 <app server id> netstat -an> netstat2.txt ps -ef > psef2.txt ps aux > psaux2.txt 將上面產生的 txt 文件和/usr/WebSphere/AppServer/javacore*文件和heapmp文件拷貝到本地,然後刪除這些文件,因為這些文件會佔用較大的文件系統空間。

熱點內容
我的世界對戰伺服器2021 發布:2025-09-16 02:13:05 瀏覽:740
蘋果店教編程 發布:2025-09-16 01:55:33 瀏覽:531
linux安全狗 發布:2025-09-16 01:51:18 瀏覽:638
bash腳本格式 發布:2025-09-16 01:42:02 瀏覽:505
ftp訪問錯誤代碼550 發布:2025-09-16 01:32:21 瀏覽:439
打lol什麼配置要求 發布:2025-09-16 01:32:14 瀏覽:60
香港績點演算法 發布:2025-09-16 01:25:33 瀏覽:935
集合順序存儲 發布:2025-09-16 01:17:31 瀏覽:583
安卓如何開啟應用數據 發布:2025-09-16 00:51:14 瀏覽:585
it固定資產管理系統源碼 發布:2025-09-16 00:35:42 瀏覽:357