![]() ![]() ![]() I am getting PermGen Space in Jetty Server, does any one has experience with Jetty here ?įrom Java 8, Oracle is removing PermGen space from JVM, which means no : PermGen space, instead they are introducing metaspace which will give berth to a new set of OutOfMemoryError in Javaįor all those who use the installer version of tomcat. Note: ms-windows should be running on 64 bit system. That could be correct, when it exists 16g RAM on the used computer system. You have a mistake in your setup of JVM options (maximum JVM heap size) "-Xmx10246m" is to much memory. There is a better way to proof the consumed memory of the Tomcat server process on, see here It gives you the details of the leak, and also teaches how to solve the leak in-process. To find the "offending class which is causing memory leak in tomcat", use Plumbr. the step we have taken is to increase PermGen and stop frequent redeploy of webapp without restarting server. though tomcat print useful information like whether its ThreadLocal which is causing OutOfMemory etc but for permgen space you need to do this analysis. You are correct I have faced : PermGen space on both Tomcact 6 and Tomcat 7. ![]() This not only removes dependency like JDBC driver, DBCP or any other jar but also get rid of this OutOfMemroy Error in Tomcat by effectively shifting driver jar into tomcat lib folder. You shouldn't include JDBC driver in your classpath because its better to use Database Connection pool provided by J2EE Server or Tomcat instead of Managing JDBC Pool on code. This is a gud explanation and we also had this error driving us mad recently. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |