C:\>java -Xms50M Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file)where options include: -client to select the "client" VM -server to select the "server" VM -hotspot is a synonym for the "client" VM [deprecated] The default VM is client. //////////// 还是没有效果啊
看解释的意思是 后面要加类名??????? java -Xms50M class
如果我想所有jboss 加载的类都运行在内存为256M的JVM平台上我又该如何处理呢? 在jboss里边有这样一句:rem Sun JVM memory allocation pool parameters. Uncomment and modify as appropriate. rem set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx256m这样是不是就已经可以了
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
////////////
还是没有效果啊
java -Xms50M class
在jboss里边有这样一句:rem Sun JVM memory allocation pool parameters. Uncomment and modify as appropriate.
rem set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx256m这样是不是就已经可以了