官术网_书友最值得收藏!

Using the shared application archive file

To use the shared application archive file (appCDS.jsa) with your AppCDS, execute the following command:

    java -Xshare:on 
         -XX:+UseAppCDS 
         -XX:SharedArchiveFile=appCDS.jsa 
         -cp appcds.jar 
         AppCDS  

The preceding code will use the shared application archive file to load the predefined core API classes and application classes to memory. This results in reduced startup time of user applications. The demo application used in this chapter included just four or five classes to demonstrate the process, without overwhelming you. You should be able to notice a considerable reduction in startup time for bigger user applications. Also, you can share the .jsa file between JVMs for a reduced memory footprint.

主站蜘蛛池模板: 顺平县| 夏津县| 平凉市| 尼木县| 搜索| 建平县| 乌拉特前旗| 玉龙| 渝北区| 巴东县| 开原市| 乌拉特后旗| 呼玛县| 鄂伦春自治旗| 绥德县| 富阳市| 远安县| 大连市| 循化| 阿克陶县| 烟台市| 泸定县| 且末县| 阿克陶县| 罗甸县| 武夷山市| 新密市| 外汇| 华亭县| 乌什县| 渭源县| 定南县| 尚义县| 滁州市| 柞水县| 瑞丽市| 郓城县| 绥芬河市| 若羌县| 调兵山市| 黔西县|