views:

61

answers:

2

I'm pretty new with EJB's and GWT but I've been using Java for a little while.

My question is: How do I get GWT and EJB's running all together on eclipse? I keep getting pretty severe memory issues with it all together. It consumes 600mb of VM and 200mb of mem and every other operation I do (i.e. open a .java file or build), it crashes with a permgen error. I have installed eclipse helios with java ee, and installed gwt as a plugin. I then installed the Oracle Weblogic eclipse plugin. Is there a better setup or IDE?

Thank you so much!

A: 

When you get permgen errors, the solution is usually to edit your eclipse.ini. Look for the line

-XX:MaxPermSize=...m

and increase the value. The permgen space is separate from the heap and stack space, so increasing them doesn't help. It's also pretty usual, that the default MaxPermSize value in the eclipse.ini is too small.

Chris Lercher
How much can I increase it by? I've currently it set to 1024m right now.
Kenneth
@Kenneth: 1024 megabytes is very, very much (I wouldn't set it that high). If it doesn't work with that, and if you're sure, that it doesn't get set anywhere else (attention: some eclipse.inis erroneously contain two `-XX:MaxPermSize` lines), then there has to be a more severe problem with the plugins.
Chris Lercher