關(guān)于內(nèi)存溢出,我們可以在啟動tomcat時,加參數(shù)“-XX:+HeapDumpOnOutOfMemoryError”。
這樣,但內(nèi)存溢出時,會生成heap dump文件。