Keep getting java.lang.OutOfMemoryError: PermGen space whatever the amount allocated with -XX:MaxPermSize

2,981 views
Skip to first unread message

jean

unread,
May 4, 2011, 6:45:20 AM5/4/11
to Codehaus Mojo gwt-maven-plugin Users
I've refactored a GWT app to be able to launch it with a consistent
Maven config.

It starts ok, but when trying to open the first page with a browser I
keep getting a java.lang.OutOfMemoryError: PermGen space, even with an
indecent permSize of 512m or 1024m.
This happens with Firefox, but with Chrome, the page just never comes,
the error doesn't appear in the StackTrace.

Any idea where I could look at to understand what's going on?

cheers

jean

unread,
May 9, 2011, 5:53:19 AM5/9/11
to Codehaus Mojo gwt-maven-plugin Users
I'm begging for help, I've been stuck for the past week.

I've set logLevel to ALL, increased all possible memory option to a
larger value (that I know of).
I don't get the "java.lang.OutOfMemoryError: PermGen space" anymore, I
get to my login page, but when trying to login, the hosted mode window
freeze, nothing appears in the Maven stacktrace.

I'm just stuck here, without any option left to explore.

This application is just working with the standard GWT folder layout.
I've been trying to mavenize it, and this is how far I got.

Can someone help me finding logs that I could examine? I can't see
anything else I could do right now.

cheers

Juan Pablo Gardella

unread,
May 9, 2011, 7:40:02 AM5/9/11
to codehaus-mojo-gwt-...@googlegroups.com
if you run in server mode work?

2011/5/9 jean <jean.e...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Codehaus Mojo gwt-maven-plugin Users" group.
To post to this group, send email to codehaus-mojo-gwt-...@googlegroups.com.
To unsubscribe from this group, send email to codehaus-mojo-gwt-maven-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?hl=en.


jean

unread,
May 10, 2011, 4:27:39 AM5/10/11
to Codehaus Mojo gwt-maven-plugin Users
Hi,

as mentioned, the app works in its original form (i.e. before
modifying the file layout to respect Maven convention).

And it works when deployed as a WAR into a container (Tomcat here)

cheers

On May 9, 7:40 pm, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
wrote:
> if you run in server mode work?
>
> 2011/5/9 jean <jean.eastc...@gmail.com>
> >http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?h....

Henry

unread,
May 12, 2011, 5:23:31 AM5/12/11
to Codehaus Mojo gwt-maven-plugin Users
Test

Henry

unread,
May 11, 2011, 12:56:18 PM5/11/11
to Codehaus Mojo gwt-maven-plugin Users
Just increase the Perm Gen Size of the plugin:

<extraJvmArgs>-Xss512m -Xmx1024m -XX:MaxPermSize=1024m</extraJvmArgs>

Bye Henry

On 10 Mai, 10:27, jean <jean.eastc...@gmail.com> wrote:

jean

unread,
May 13, 2011, 12:30:04 AM5/13/11
to Codehaus Mojo gwt-maven-plugin Users
thank you, it was THAT simple. It brings me a lot farther, i still
have problems though.

I guess I didn't try the combination of the 3 params all together.

cheers

Peter Leong

unread,
Dec 20, 2012, 1:45:16 AM12/20/12
to codehaus-mojo-gwt-...@googlegroups.com
Thanks Henry.  That worked for me.

My problem was the error message suggested using -Xmx... only so I didn't realize it was a Perm Gen issue.

Cheers,
Pete
> > > codehaus-mojo-gwt-maven-plugin...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > codehaus-mojo-gwt-maven-plugin-users+unsubscribe@googlegroups.com.

Pascal Heus

unread,
Dec 20, 2012, 2:55:26 AM12/20/12
to codehaus-mojo-gwt-...@googlegroups.com
Peter:
VisualVM is a nice free tool yto monitor your server or java apps and detect these kind of memory issues:
http://visualvm.java.net/
best
*P
To view this discussion on the web visit https://groups.google.com/d/msg/codehaus-mojo-gwt-maven-plugin-users/-/56QbvLixkBwJ.
To post to this group, send email to codehaus-mojo-gwt-...@googlegroups.com.
To unsubscribe from this group, send email to codehaus-mojo-gwt-maven-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?hl=en.

Reply all
Reply to author
Forward
0 new messages