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

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.

主站蜘蛛池模板: 关岭| 长治市| 浮山县| 清水河县| 基隆市| 湘潭市| 万山特区| 阳泉市| 苍溪县| 鲁山县| 临安市| 神木县| 芦山县| 花垣县| 临武县| 从化市| 桂阳县| 镶黄旗| 洞口县| 收藏| 阳谷县| 石棉县| 共和县| 盱眙县| 平昌县| 左贡县| 常熟市| 新昌县| 腾冲县| 张家口市| 平和县| 抚宁县| 博客| 安塞县| 习水县| 香河县| 密云县| 高清| 湖南省| 浠水县| 吉木乃县|