Glassfish Permgen Space Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the glassfish increase heap size company Business Learn more about hiring developers or posting ads with us Stack Overflow java.lang.outofmemoryerror: permgen space Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7
Jprofilermillion programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to get rid of PermGen space? up vote 2 down vote favorite 2 I am fed up with the following annoying error, how can I get it solved ? would it solve the problem if I use Tomcat rather than GlassFish? I am running locally, would it be the same if I run the same application on the server? SEVERE: java.lang.OutOfMemoryError: PermGen space SEVERE: Exception in module org.glassfish.main.core.kernel  : java.lang.OutOfMemoryError: PermGen space SEVERE: Exception in module org.glassfish.main.core.kernel  : java.lang.RuntimeException: java.lang.OutOfMemoryError: PermGen space SEVERE: Exception in thread "RMI RenewClean-[10.0.0.12:8686]" java java-ee tomcat glassfish share|improve this question asked Aug 16 '13 at 1:03 Tim Norman 151426 We need more details, especially the JVM arguments. –hexafraction Aug 16 '13 at 1:04 I am newbie to Glassfish where can I find those arguments? –Tim Norman Aug 16 '13 at 1:06 1 If you redeploy your app without restart your server this error will occur in some moment, because the container maintains the old copy of your application. It's a known issue: wiki.apache.org/tomcat/OutOfMemory –Badaro Aug 16 '13 at 2:03 add a comment| 3 Answers 3 active oldest votes up vote 2 down vote accepted Anytime you are redeploying the application need to restart the server to clean up its memory, as I have a similar issue with Tomcat. Changing memory size just delay the problem but would not prevent it. In addition, need to find memory leaks of your application using plugins of your IDE such as Profiler for netbeans or other available software. Moreover, as Shaunak said you can change the size of perm memory in /glassfish/domain/domain1/config/domain.xml file. share|improve this answer edited Nov 21 '13 at 6:00 answered Aug 16 '13 at 5:40 J888 43042256 add a comment| up vote 6 down vote Have you tried increasing the memory for glassfish? 1) goto "domain.xml" in /glassfish/domain/d
of EARs from IDE (Netbeans/Eclipse)Agile Board ExportXMLWordPrintable Details Type: Bug Status: Open Priority: Critical Resolution: Unresolved Affects Version/s: 4.0_b89_RC5 Fix Version/s: None Component/s: None Labels: None Environment: Mac OS X, Glassfish 4 Build 89, Netbeans 7.3.1, Eclipse 4.3 (Kepler) Tags: deployment ear glassfish4 outofmemory permgen Description There seems to be a Memory Leak available in Glassfish 4 which becomes visible when you deploy ear files again and again. This error is also available in Glassfish 3. Working with ear projects does not make fun at all as long as the issue is not fixed. My productivity is during development is also http://stackoverflow.com/questions/18264243/how-to-get-rid-of-permgen-space decreased a lot!!!! Therefore I believe this issue is at least critical. Please download the ear file from http://localhost:8080/download/tutorials/struts2/struts2-multi-module-demo.zip. It comes from my tutorial at http://www.nabisoft.com/tutorials/struts2/maven-struts-2-enterprise-application-based-on-java-ee-7-and-glassfish-4, so please check there for details about what you can find in the ear archive. Basically it is a Struts 2 project based on Java EE 7, Tiles, maven... The bug can be reproduced in Eclipse and Netbeans, so https://java.net/jira/browse/GLASSFISH-20732 I guess this is not an Eclipse nor a Netbeans issue. To reproduce the bug do the following in your Netbeans IDE (or Eclipse): Make sure to adapt the persistence.xml in the struts2-module-ejb module and make sure the corresponding JDBC resource is available on your Glassfish 4 (for details see the tutorial, which uses a PostgreSQL database). import the project into Netbeans deploy to your local Glassfish 4 server from within Netbeans and wait until deployment has finished go to MessageServiceBean.java (struts2-module-ejb module), change something (i.e. add an empty line somewhere) save the change to trigger a re-deployment wait until re-deployment has finished in your browser hit http://localhost:8080/service/message/ (I think this step helps to make the bug occur earlier than without this step) check the glassfish output in netbeans repeat steps 4-7 about 20-35 times (check glassfish output after each re-deployment). I typically get this error after around 10-25 re-deployments. Please let me know if you can reproduce the issue, I am willing to help as much as I can! Below you can see how the error looks like (by the way: after restarting Glassfish after the error the deployed appl
linux, it is located under /usr/share/glassfish3/glassfish/domains/domain1/config (in windows C:\glassfish3\glassfish\domains\domain1\config) There are two configs in domain.xml, server-config https://madvens.wordpress.com/2013/07/31/glassfish-permgen-space-error/ and default-config. Search for "-XX:MaxPermSize=" in server-config and set its https://netbeans.org/bugzilla/show_bug.cgi?id=171947 value to 256m or higher. (i.e.
compiles GlassFish fired an OutOfMemoryError error Summary: After about 30 compiles GlassFish fired an OutOfMemoryError error Status: RESOLVED INVALID Product: serverplugins Classification: Unclassified Component: GlassFish Version: 6.x Hardware: All Windows XP Priority: P2 (vote) TargetMilestone: TBD Assigned To: Vince Kraemer QA Contact: issues@serverplugins URL: Whiteboard: Keywords: Duplicates: 165341 (view as bug list) Depends on: Blocks: Show dependency tree /graph Reported: 2009-09-10 15:59 UTC by masha Modified: 2009-09-17 19:59 UTC (History) CC List: 2 users (show) phejl pjiricka See Also: Issue Type: DEFECT Exception Report : Attachments Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description masha 2009-09-10 15:59:08 UTC After about 30 compiles GlassFish fired an OutOfMemoryError error. I dint't changed application.xml before this error appeared, as is said on forum, just recompiled for many times (have changed code) StandardWrapperValve[RemoteJmxConnectorServlet]: PWC1406: Servlet.service() for servlet RemoteJmxConnectorServlet threw exception java.lang.OutOfMemoryError: PermGen space PWC3989: An exception or error occurred in the container during the request processing java.lang.OutOfMemoryError: PermGen space PWC3989: An exception or error occurred in the container during the request processing java.lang.OutOfMemoryError: PermGen space PWC3989: An exception or error occurred in the container during the request processing java.lang.OutOfMemoryError: PermGen space PWC3989: An exception or error occurred in the container during the request processing java.lang.OutOfMemoryError: PermGen space StandardWrapperValve[RemoteJmxConnectorServlet]: PWC1406: Servlet.service() for servlet RemoteJmxConnectorServlet threw exception java.lang.OutOfMemoryError: PermGen space WE