Out of memory: PermGen space

1,428 views
Skip to first unread message

azuniga

unread,
Mar 24, 2011, 12:54:11 PM3/24/11
to Google Web Toolkit
I'm using Eclipse IDE on RHEL. I am trying to determine if the problem
is from the jvm, birt, gwt or my code. I started eclipse with a bigger
perm gen space but still got the error. I am able to make an rpc call,
return from it and then display the report, but once i try to run a
2nd report, the rpc calls again and this is where it fails. Here is
the error:
[WARN] A new version of GWT (2.2.0) is available
For additional info see: file:/tmp/gwt-update-2.2.0.html
Done generating report.
The response was successful
Starting Jetty on port 8888
[ERROR] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
com.birt.rpc.gwt.client.ReportGenerationService.executeReport(java.lang.String,java.util.ArrayList,java.util.ArrayList)'
threw an unexpected exception: java.lang.OutOfMemoryError: PermGen
space
[ERROR] Error for /rpcsamplebirt/report
java.lang.OutOfMemoryError: PermGen space
[ERROR] EXCEPTION
java.lang.OutOfMemoryError: PermGen space
[ERROR] Out of memory; to increase the amount of memory, use the -
Xmx flag at startup (java -Xmx128M ...)
com.google.gwt.user.client.rpc.StatusCodeException: 500
Exception in thread "State Saver" java.lang.OutOfMemoryError: PermGen
space

Juan Pablo Gardella

unread,
Mar 24, 2011, 1:31:07 PM3/24/11
to google-we...@googlegroups.com
Increase Permgem memory (http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_available_to_Eclipse%3F), perhaps its too low

2011/3/24 azuniga <alessand...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


azuniga

unread,
Mar 24, 2011, 3:07:24 PM3/24/11
to Google Web Toolkit
Actually, I've tried that. Still get the same error. This is my
eclipse.ini file.
---------------------------------------------------------------------------------
-startup

plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.0.v20100503

-product

org.eclipse.epp.package.reporting.product

--launcher.defaultAction

openFile

-showsplash

org.eclipse.platform

--launcher.XXMaxPermSize

256m

--launcher.defaultAction

openFile

-vmargs

-Dosgi.requiredJavaVersion=1.5

-XX:MaxPermSize=256m

-Xms40m

-Xmx512m
---------------------------------------------------------------------------------

On Mar 24, 1:31 pm, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
wrote:
> Increase Permgem memory (http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_availa...),
> perhaps its too low
>
> 2011/3/24 azuniga <alessandro.zun...@gmail.com>

Cheng Wei Lee

unread,
Mar 24, 2011, 3:24:54 PM3/24/11
to google-we...@googlegroups.com, azuniga
From the log I see that it's the Developer Server who is complaining so adjusting the PermGen size in eclipse.ini won't help. Go to your Debug config of the Google Web Application (the main class should be com.google.appengine.tools.development.DevAppServerMain) and add -XX:MaxPermSize=512m to the VM arguments.
--
Lee Cheng Wei
Reply all
Reply to author
Forward
0 new messages