Tomcat in eclipse cannot modify Java files with debug mode

Source: Internet
Author: User

When Eclipse starts Tomcat in debug mode, a memory overflow exception occurs when you modify a Java class or paging file, and you must restart Tomcat after each modification to be normal and to affect development efficiency. Later, the check was found under servers/tomcatv5.5 server at Localhost-config/server.xml in Eclipse.

Reloadable= "true" in the Context tab, it is normal to change it to false.

Find solutions on the Internet to put the server.xml of Tomcat

<listener classname= "Org.apache.catalina.core.JreMemoryLeakPreventionListener"/>

Comment out also does not work ...


the exception that occurs when you modify a Java file after you start using Tomcat5.5:

Log4j:error logmananger.repositoryselector is null likely due to ERROR in class reloading, using noploggerrepository.< br> 2015-6-24 14:51:24 org.apache.tomcat.util.threads.threadpool$controlrunnable run
Serious: 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
Critical: Exception invoking periodic operation: 
Java.lang.OutOfMemoryError:PermGen space
2015-6-24 14:51:56 org.apache.catalina.core.containerbase$ Containerbackgroundprocessor Processchildren
Critical: Exception invoking periodic operation: 
Java.lang.OutOfMemoryError:PermGen space
2015-6-24 14:52:07 org.apache.catalina.core.containerbase$ Containerbackgroundprocessor Processchildren
Critical: Exception invoking periodic operation: 
Java.lang.OutOfMemoryError:PermGen Space



Use the exception that occurs when the Java file is modified when Tomcat6.0 is started:

2015-6-24 14:54:12 Org.apache.catalina.loader.WebappClassLoader Clearreferencesjdbc
Serious: A Web application registered the JBDC driver [Oracle.jdbc.driver.OracleDriver] but failed to unregister it when the We b application was stopped. To prevent a memory leak, the JDBC Driver has been, forcibly.
2015-6-24 14:54:12 Org.apache.catalina.loader.WebappClassLoader clearreferencesthreads
Serious: A Web application appears to have started a thread named [Resource Destroyer in Basicresourcepool.close ()] but has FAI led to stop it. This is very likely to create a memory leak.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.