title: JBoss as a windows service. Where can i set the JAVA_OPTS?
body: <p>I'm running JBoss as a windows service, but i can't seem to find where i can configure the JAVA_OPTS to make it work properly.
  I need to set the Xms and the Xmx.</p>
  
  <p>I have tried to just run JBoss manually (run.bat) and in the same file i set the JAVA_OPTS= -Xms128m -Xmx512m. And that works.</p>
  
  <p>Here is my install.bat where i install the JBoss as a service:</p>
  
  <pre><code>set JBOSS_CLASS_PATH=%JAVA_HOME%\lib\tools.jar;%JBOSS_HOME%\bin\run.jar
  
  rem copy /Y JavaService.exe D:\PROJECT\bin\JBossService.exe
  
  JBossService.exe -install JBoss %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%JBOSS_CLASS_PATH% -start org.jboss.Main -stop org.jboss.Shutdown -method systemExit -out %PROJECT_HOME%\log\JBoss_out.log -err %PROJECT_HOME%\log\JBoss_err.log -current D:\PROJECT\bin
  net start JBoss
  </code></pre>
  
  <p>When i look at the info about JBoss Application Server (<a href="http://localhost:8080/web-console/" rel="noreferrer">http://localhost:8080/web-console/</a>) i see this info:</p>
  
  <pre><code>JVM Environment
  Free Memory: 9 MB
  Max Memory: 63 MB
  Total Memory: 63 MB
  </code></pre>
  
  <p>And i MUST have more Max Memory.</p>
  
  <p>Does anybody know where i can set the JAVA_OPTS when running JBoss as a service?</p>