天天看點

Exception in thread "http-bio-8080-exec-12" java.lang.OutOfMemoryError: PermGen space解決方案Exception in thread “http-bio-8080-exec-12” java.lang.OutOfMemoryError: PermGen space解決方案

Exception in thread “http-bio-8080-exec-12” java.lang.OutOfMemoryError: PermGen space解決方案

當在eclipse使用tomcat啟動項目時,報這個錯誤,即為tomcat虛拟機記憶體溢出,修改辦法:在eclipse的server欄,找到tomcat選項,輕按兩下項目的對應的service或者右鍵選擇open,然後在打開的視圖中,點選Open launch configuration 選項,在arguments 标簽框下面的VM Arguments 框最後面添加

-Xms128m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=512m

重新啟動項目就好了。操作如下截圖:

Exception in thread "http-bio-8080-exec-12" java.lang.OutOfMemoryError: PermGen space解決方案Exception in thread “http-bio-8080-exec-12” java.lang.OutOfMemoryError: PermGen space解決方案

繼續閱讀