I am fairly new to JBOSS but I got it up and running. I am running JBOSS 5.0.1 on Windows Server 2003 32Bit. I cahnged the line in the run.bat to the following:
set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m -XX:MaxPermSize=512m
But when I change the -Xmx1024m to for example 2048 then the service does not want to start anymore. The eventlog does not really show any error. Why can't I run the service with 2048 for example. We have currently tomcat 6.0 in production and there I can run the service with 1536MB. So I also changed the setting for the JBOSS service as well to 1536MB but it still fails to start.
I googeled the issue but I was not able to find an answer.
Thank you for you help
2048M is a larger heap than what Java can handle on 32-bit Windows - the largest I have seen is around 1.7GB.
Also, whenever you run into issues like this you should try running it from the command line to see what output you get, rather than running it as a service. There will never be any information about what went wrong in the event logs.