GXT : Out of memory error

121 views
Skip to first unread message

Pankaj Dwivedi

unread,
Jun 13, 2011, 12:56:57 PM6/13/11
to google-we...@googlegroups.com
Hi,

I am new to GXT development.We have used GXT in our project. However, on running the hosted mode in debug I encounter Out of memory error very frequently. Is there any thing which i can do to prevent this or minimize the frequency of occurance?

Any tweaks for this?

Thanks,
Pankaj D.

Shawn Brown

unread,
Jun 14, 2011, 6:26:00 AM6/14/11
to google-we...@googlegroups.com


Can't you go to Run Configurations (to configure hosted mode) and set
more memory as a VM argument? Well that assumes you use Eclipse. I
have -Xmx512m and it never has a problem.

If that doesn't work, I'd try setting a VM argument under Advanced
when you click to compile the project. I"m not sure if the settings
get carried over to developer mode though, so that's why I'd set it
directly first.

Peter Leong

unread,
Dec 20, 2012, 1:48:28 AM12/20/12
to google-we...@googlegroups.com
I was having an OutOfMemoryError issue and found this thread useful: https://groups.google.com/d/msg/codehaus-mojo-gwt-maven-plugin-users/d6l5FL7dSOE/j2_MMOIIYiAJ

In short, despite my error message suggesting '-Xmx...' it was actually a Perm Gen problem requiring a different JVM arg.

Hope that helps others that happen by this way.

Cheers,
Pete
Reply all
Reply to author
Forward
0 new messages