下面是tomcat的启动脚本catalina.bat 中的两个注释掉的配置项 rem CATALINA_OPTS (Optional) Java runtime options used when the "start", rem "run" or "debug" command is executed. rem Include here and not in JAVA_OPTS all options, that should rem only be used by Tomcat itself, not by the stop process, rem the version command etc. rem Examples are heap size, GC logging, JMX ports etc. remrem JAVA_OPTS (Optional) Java runtime options used when any command rem is executed. rem Include here and not in CATALINA_OPTS all options, that rem should be used by Tomcat and also by the stop process, rem the version command etc. rem Most options should go into CATALINA_OPTS.JVM启动时候会有一个默认的内存分配的,想自己设置jvm启动内存分配的话,可以放开注释使用 JAVA_OPTS="-Xms256m -Xmx512m" 或 CATALINA_OPTS="-Xms256m -Xmx512m" 就可以了jboss中应该有类似的配置项,楼主找找看,同样的方法修改下就可以了
rem CATALINA_OPTS (Optional) Java runtime options used when the "start",
rem "run" or "debug" command is executed.
rem Include here and not in JAVA_OPTS all options, that should
rem only be used by Tomcat itself, not by the stop process,
rem the version command etc.
rem Examples are heap size, GC logging, JMX ports etc.
remrem JAVA_OPTS (Optional) Java runtime options used when any command
rem is executed.
rem Include here and not in CATALINA_OPTS all options, that
rem should be used by Tomcat and also by the stop process,
rem the version command etc.
rem Most options should go into CATALINA_OPTS.JVM启动时候会有一个默认的内存分配的,想自己设置jvm启动内存分配的话,可以放开注释使用
JAVA_OPTS="-Xms256m -Xmx512m" 或 CATALINA_OPTS="-Xms256m -Xmx512m" 就可以了jboss中应该有类似的配置项,楼主找找看,同样的方法修改下就可以了