解決"Could not reserve enough space for object heap"
昨日將tomcat一直開著跑,今晨發現昨日測試通過的網頁都出現了問題,直覺是tomcat出現問題,索性直接重啟tomcat。
然後問題出現了,在關閉tomcat時,出現“Error occured during initialization of VM. Could not reserve enough space for object heap.",與此同時,tomcat也無法正常關閉。
經搜尋,修改了bin/catalina.sh指令碼,新增如下程式碼:
JAVA_OPTS="-server -Xms256m -Xmx1024m -XX:PermSize=600m -XX:MaxPermSize=600m -Dcom.sun.management.jmxremote"
此時再執行bin/shutdown.sh,可正常關閉tomcat。
附:
執行平臺為ubuntu10.10
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25432352/viewspace-692468/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- java.lang.OutOfMemoryError: Java heap space的解決JavaError
- eclipse java.lang.OutOfMemoryError: Java heap space 解決方案EclipseJavaError
- android錯誤unable to execute dex java heap space解決方案AndroidJava
- 解決Eclipse和MyEclipsejava.lang.OutOfMemoryError Java heap space的錯誤EclipseJavaError
- Jmeter記憶體溢位:java.lang.OutOfMemoryError: Java heap space解決思路JMeter記憶體溢位JavaError
- Not enough space to build proposed filesystem while setting up superblockUIWhileBloC
- 關於GWT的Java heap spaceJava
- java.lang.OutOfMemoryError: Java heap spaceJavaError
- An internal error has occurred. Java heap spaceErrorJava
- kettle java.lang.OutOfMemoryError: Java heap spaceJavaError
- Maven編譯出現“java.lang.OutOfMemoryError: Java heap space”問題及解決辦法Maven編譯JavaError
- java - OutOfMemoryError: Java heap space 堆空間不足JavaError
- mysql 報錯:java.lang.OutOfMemoryError: Java heap spaceMySqlJavaError
- 介面返回[object,Object]解決方法Object
- Could not find *.apk!解決辦法APK
- opatch java.lang.OutOfMemoryError:Java heap space錯誤一例JavaError
- Doris建立表報錯Failed to find enough host with storage medium問題解決AI
- Go:錯誤 could not launch process: EOF 解決Go
- Could not find jar tool executable問題解決JAR
- jar檔案could not find the main class解決JARAI
- java.lang.OutOfMemoryError: PermGen space及其解決方法JavaError
- LOCK_NAME_SPACE 引數解決的使用
- Eclipse Tomcat OutOfMemoryError: PermGen space解決方案EclipseTomcatError
- AIX下安裝RAC 關於 reserve_lock(reserve_policy)AI
- Many To Many could not initialize proxy – no Session的解決方法Session
- 解決yarn打包時出現“FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory”的問題YarnErrorMITAIJavaScript
- Idea執行遇到:maven-resources-production....:java.lang.OutOfMemoryError: Java heap spaceIdeaMavenJavaError
- 【BBED】使用bbed解決 the amount of space used is not equal to block sizeBloC
- 由node的批量requests引起的”heap out of memory”解決方案
- 解決Heap size *K exceeds notification threshold(2048K)
- 關於 artisan migrants Could not find drive 解決方法
- Could not decode a text frame as UTF-8 的解決
- Android: The following classes could not be instantiated: 解決方法Android
- Could not resolve host: 'localhost 報錯解決辦法localhost
- 手動寫java OOM記憶體溢位 java.lang.OutOfMemoryError: Java heap spaceJavaOOM記憶體溢位Error
- tomcat記憶體溢位:PermGen space解決方法Tomcat記憶體溢位
- Could not initialize class sun.awt.X11GraphicsEnvironment解決方案
- org.hibernate.exception.SQLGrammarException: could not extract ResultSet解決方案ExceptionSQL