Out of Memory error starting JBoss with Portal from Eclipse

David picture David · May 19, 2009 · Viewed 9.8k times · Source

I cannot get JBoss Portal to start from Eclipse, though the AS alone starts fine, and the Portal starts correctly as well, when started from the command line as opposed to from within Eclipse. I'm running in Windows, with 3GB. Suggestions? Thank you.

Answer

martins.tuga picture martins.tuga · Jan 23, 2013

I've spend hours to discover this, and almost gave up and started to use JBoss out of Eclipse.

In order to increase your JBoss vmargs when starting it from Eclipse you have to change JBoss launch configuration. If you change standalone.conf, nothing happens because Eclipse doesn't use it.

So, to change JBoss vmargs in Eclipse, you have to go to "Servers" tab, right click on your Jboss instance, and select "Open".

It will appear a new window. In the first section, you have a option: "Open launch configuration". When you click there, you'll see the textbox to change vmargs.

Hope this helps you!