我看服务器上有个启动程序的.sh文件,内容如题,我不明白的是 -DSmsCent是什么意思,有没有高人指点一下

解决方案 »

  1.   

    -DSmsCent是设置内存?我看不像,我上网查了查,没有找到复合我这条件的
      

  2.   


    怀疑是一个值为空的全局参数配置。。web服务器下面的所有项目都可以使用
    如:项目中有一个参数CONFIG_XML的获取:
    String config = System.getProperty("CONFIG_XML")
    那可利用这种方式来配置:-DCONFIG_XML="xxxxx"
      

  3.   

    /usr/java/jdk1.5/bin/java -DSmsCent 在cmd使用java就可以看到
    -Xms128m使用最小内存 
    -Xmx512m使用最多内存
      

  4.   

    应该是自定义的系统参数吧public class Test {
    public static void main(String[] args) throws Exception {
    System.out.println(System.getProperties().containsKey("test"));
    }
    }测试下就知道区别了:
    java -Dtest Test  --print result "true"
    java Test             --print result "false"
      

  5.   

    -xms is the start memory (at the VM start), -xmx is the maximum memory for the VMOptions that begin with -X are non-standard (not guaranteed to be supported on all VM implementations), and are subject to change without notice in subsequent releases of the JDK.-DSmsCent
    这个-D是option吧