JBoss as a windows service. Where can i set the JAVA_OPTS?
Posted
by ikky
on Stack Overflow
See other posts from Stack Overflow
or by ikky
Published on 2010-03-10T15:05:51Z
Indexed on
2010/04/16
13:53 UTC
Read the original article
Hit count: 273
hi. 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.
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.
Here is my install.bat where i install the JBoss as a service:
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
When i look at the info about JBoss Application Server (http://localhost:8080/web-console/) i see this info:
JVM Environment
Free Memory: 9 MB
Max Memory: 63 MB
Total Memory: 63 MB
And i MUST have more Max Memory.
Does anybody know where i can set the JAVA_OPTS when running JBoss as a service?
© Stack Overflow or respective owner