title: how to increase jboss memory heap size in eclipse
body: <p>I have tried to increase the java memory heap size for jboss by making changes to the <code>run.conf.bat</code> file as suggested from </p>
  
  <p><a href="https://stackoverflow.com/questions/6252914/how-to-increase-the-jvm-size-in-java-and-which-file-i-need-to-alter-for-this#answer-6252978">How to increase heap size for jBoss server</a></p>
  
  <p>and set to</p>
  
  <pre><code>    rem # JVM memory allocation pool parameters - modify as appropriate.
  set "JAVA_OPTS=-Xms2048M -Xmx2048M -XX:MaxPermSize=1024M"
  </code></pre>
  
  <p>If I run the jboss server from the jboss_dir/bin directory using windows command prompt it runs with above <code>JAVA_OPTS</code> values </p>
  
  <p>however if run the same jboss from <code>eclipse IDE</code> the <code>eclipse console</code> shows following message</p>
  
  <pre><code>    22:31:46,457 INFO  [ServerInfo] Java version: 1.6.0_31,Sun Microsystems Inc.
  22:31:46,457 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
  22:31:46,457 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 20.6-b01,Sun Microsystems Inc.
  22:31:46,457 INFO  [ServerInfo] OS-System: Windows 7 6.1,amd64
  22:31:46,458 INFO  [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=Cp1252 
  22:31:46,483 INFO  [JMXKernel] Legacy JMX core initialized
  22:31:47,761 INFO  [ProfileServiceBootstrap] Loading profile: ProfileKey@4fe2fe5d[domain=default, server=default, name=default]
  </code></pre>
  
  <p>I was wondering what eclipse configuration I may have missed so that the jboss is still starting with the <code>JAVA_OPTS</code> with values <code>-Xms128m -Xmx512m -XX:MaxPermSize=256m</code></p>
  
  <pre><code>22:31:46,458 INFO  [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=Cp1252 
  </code></pre>