Permgen Issues

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Permgen Issues

David Whitehurst
Has anyone ever just started getting permgen memory issues using AppFuse and found something wrong with their application? I expect this is a memory leak. I have every computer profile I touch set up with JAVA_OPTS and MAVEN_OPTS.

Comments anyone … ?


David

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Permgen Issues

mraible
Administrator
What do you have your JAVA_OPTS set to? On demo.appfuse.org, it's set to the following:

-server -Xms64m -Xmx512m -Djava.awt.headless=true -XX:MaxPermSize=384m

On Tue, Aug 4, 2015 at 9:01 AM, David Whitehurst <[hidden email]> wrote:
Has anyone ever just started getting permgen memory issues using AppFuse and found something wrong with their application? I expect this is a memory leak. I have every computer profile I touch set up with JAVA_OPTS and MAVEN_OPTS.

Comments anyone … ?


David


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Permgen Issues

David Whitehurst
My settings were too high. Now that I think about it, just starting up shouldn’t drain the heap and the permgen space should be for slow garbage collection. If the permgen is gone on startup or rendering the landing page, I shouldn’t have that many class instantiations. I fixed JAVA_OPTS but now I’m wondering how MAVEN_OPTS works with this and what it means really. Getting my continuing education today.

Thanks Matt, I’ll report in a bit on this thread if reducing everything worked. I expect it will.

David


On Aug 4, 2015, at 11:17 AM, Matt Raible <[hidden email]> wrote:

What do you have your JAVA_OPTS set to? On demo.appfuse.org, it's set to the following:

-server -Xms64m -Xmx512m -Djava.awt.headless=true -XX:MaxPermSize=384m

On Tue, Aug 4, 2015 at 9:01 AM, David Whitehurst <[hidden email]> wrote:
Has anyone ever just started getting permgen memory issues using AppFuse and found something wrong with their application? I expect this is a memory leak. I have every computer profile I touch set up with JAVA_OPTS and MAVEN_OPTS.

Comments anyone … ?


David



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Permgen Issues

David Whitehurst
This is very odd but kind of makes sense. I set my JAVA_OPTS just like Matt posted and my permgen problems went away for most of the day but not entirely. I would get the error off and on but mostly when a page (JSP) had not been precompiled. I also have a lot going on my laptop so I’m not sure if the errors were my problem because of everything else.

I originally had the issue on a 6GB Windows VM utilizing a huge DB2 database. I fixed that, the problem went away, and the production deployment seems fine. Users are pounding it.

I moved back to my local (Macbook Pro) and database MySQL to trial some changes local first and started with the issue. Consider this thread closed unless anyone has any wisdom that they would like to share.



David

On Aug 4, 2015, at 11:30 AM, David Whitehurst <[hidden email]> wrote:

My settings were too high. Now that I think about it, just starting up shouldn’t drain the heap and the permgen space should be for slow garbage collection. If the permgen is gone on startup or rendering the landing page, I shouldn’t have that many class instantiations. I fixed JAVA_OPTS but now I’m wondering how MAVEN_OPTS works with this and what it means really. Getting my continuing education today.

Thanks Matt, I’ll report in a bit on this thread if reducing everything worked. I expect it will.

David


On Aug 4, 2015, at 11:17 AM, Matt Raible <[hidden email]> wrote:

What do you have your JAVA_OPTS set to? On demo.appfuse.org, it's set to the following:

-server -Xms64m -Xmx512m -Djava.awt.headless=true -XX:MaxPermSize=384m

On Tue, Aug 4, 2015 at 9:01 AM, David Whitehurst <[hidden email]> wrote:
Has anyone ever just started getting permgen memory issues using AppFuse and found something wrong with their application? I expect this is a memory leak. I have every computer profile I touch set up with JAVA_OPTS and MAVEN_OPTS.

Comments anyone … ?


David




Loading...