eclipse中tomcat不能使用debug模式修改java檔案

來源:互聯網
上載者:User

eclipse以debug模式啟動tomcat時,修改java類或者分頁檔時,都出現了記憶體溢出異常,每次修改後都必須重啟tomcat才能正常,影響開發效率。後來檢查發現是eclipse中servers/TomcatV5.5 server at localhost-config/server.xml下的

Context標籤中的reloadable="true",將它改為false就正常了。

到網上找解決方案把 tomcat 的server.xml中的

<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />

注釋掉也不起作用...


使用Tomcat5.5 啟動後,修改java檔案時出現的異常:

log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
2015-6-24 14:51:24 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
嚴重: Caught exception (java.lang.OutOfMemoryError: PermGen space) executing org.apache.tomcat.util.net.LeaderFollowerWorkerThread@4df09169, terminating thread
2015-6-24 14:51:26 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren
嚴重: Exception invoking periodic operation: 
java.lang.OutOfMemoryError: PermGen space
2015-6-24 14:51:56 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren
嚴重: Exception invoking periodic operation: 
java.lang.OutOfMemoryError: PermGen space
2015-6-24 14:52:07 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren
嚴重: Exception invoking periodic operation: 
java.lang.OutOfMemoryError: PermGen space



使用Tomcat6.0 啟動後,修改java檔案時出現的異常:

2015-6-24 14:54:12 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
嚴重: A web application registered the JBDC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2015-6-24 14:54:12 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
嚴重: A web application appears to have started a thread named [Resource Destroyer in BasicResourcePool.close()] but has failed to stop it. This is very likely to create a memory leak.

 


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.