Sorry if this is a dumb question, but what is the proper way to increase the JVM memory with JBoss? I'm getting a lot of OutOfMemoryErrors from my webapp when I execute jboss/bin/run.sh which is why I'm looking to do this. I see in run.sh file there is a JAVA_OPTS variable they are setting but I don't see them explicitly setting the -Xms or -Xmx parameters when launching the JVM, although it is being set somewhere.
Just curious what is the proper standard way to increase these variables. Do Xms and Xmx have to be set to equal values?
I'm using jboss 4.2.3 on linux and openjdk 64-Bit Server VM by the way. Thanks.