Search code examples
javajbossmyeclipse

How can I increase the -XXMaxPermGen jvm settings in Jboss under MyEclipse?


When I start Jboss on My Eclipse, server is started with following vm arguments

INFO [ServerInfo] VM arguments: -Djboss.home=C:\JBoss -Djava.library.path=C:\Program Files (x86)\Java\jdk1.6.0_30\bin -Djava.endorsed.dirs=C:\JBoss\lib\endorsed -Xms128m -Xmx512m -XX:MaxPermSize=256m

When I insert a big persistence object, I am getting out of memory exceptions. Jboss should be started -Xms512M -Xmx1024M .I have checked myeclipse ini file, I have change run.bat, run.conf.bat. I could not find where Myeclipse is reading this value.

Can you please show me the way to change jboss vm setting in MyEclipse 2014?

This is MyEclipse

When I select Manage Launch Configuration, this ui is shown

enter image description here

This is jboss definition in Run Configuration Panel

enter image description here

enter image description here


Solution

  • To change the memory settings for the JBoss server :

    Go to Window > Preferences > MyEclipse > Servers > JBoss > expand JBoss x.x > JDK > Optional Java VM Arguments.