到你的命令行里面输入 java -X你会得到提示的
java -Xms 初始化的Memory 大小
java -Xmx 最大的Memory 大小

解决方案 »

  1.   

    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.
    ////////////
    还是没有效果啊
      

  2.   

    看解释的意思是 后面要加类名???????
    java -Xms50M class
      

  3.   

    如果我想所有jboss 加载的类都运行在内存为256M的JVM平台上我又该如何处理呢?
    在jboss里边有这样一句:rem Sun JVM memory allocation pool parameters. Uncomment and modify as appropriate.
    rem set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx256m这样是不是就已经可以了