title: JBoss AS 7 deployment dilemma, eclipse vs standalone.bat
body: <p>![enter image description here][1]I am using Eclipse plug-in to deploy my J2EE application on JBoss AS 7. 
  I made changes in JBOSS_HOME/bin/standalone.conf as well as in standalone.conf.bat, where I updated the JVM heap sizes.</p>
  
  <p>If I deploy the application via eclipse, the modified JVM configuriation isn't applied during the server start up. However, when I start it, using the standalone.conf.bat the changes are reflected during the start up as expected.</p>
  
  <p>Is there anything I'm missing that eclipse fails to pick up?</p>
  
  <p>Here is how the standalone.conf reads:</p>
  
  <pre><code>#JAVA=""
  
  if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
  JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman"
  fi
  
  # Uncomment the following line to prevent manipulation of JVM options
  # by shell scripts.
  #
  #PRESERVE_JAVA_OPTS=true
  
  #
  # Specify options to pass to the Java VM.
  #
  if [ "x$JAVA_OPTS" = "x" ]; then
  JAVA_OPTS="-Xms256m -Xmx1024m -XX:MaxPermSize=512m -Djava.net.preferIPv4Stack=true -       Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 - Dsun.rmi.dgc.server.gcInterval=3600000"
  JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS - Djava.awt.headless=true"
  JAVA_OPTS="$JAVA_OPTS -Djboss.server.default.config=standalone.xml"
  else
    echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"
  fi
  </code></pre>
  
  <p>standalone.conf.bat:</p>
  
  <pre><code>if not "x%JAVA_OPTS%" == "x" (
  echo "JAVA_OPTS already set in environment; overriding default settings with values:     %JAVA_OPTS%"
  goto JAVA_OPTS_SET
  )
  rem # JVM memory allocation pool parameters - modify as appropriate.
  set "JAVA_OPTS=-Xms64M -Xmx512M -XX:MaxPermSize=256M"
  
  rem # Reduce the RMI GCs to once per hour for Sun JVMs.
  set "JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -   Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true"
  </code></pre>
  
  <p>The eclipse runtime clearly points to c: where i have done the edits to configuration files</p>
  
  <p>![Eclipse Image]: <a href="http://i.stack.imgur.com/Mdq8d.jpg" rel="nofollow">http://i.stack.imgur.com/Mdq8d.jpg</a> </p>