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

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.

主站蜘蛛池模板: 保定市| 佛山市| 宁明县| 平远县| 宁蒗| 政和县| 梅州市| 察隅县| 体育| 新平| 绥滨县| 新安县| 施甸县| 富蕴县| 阿巴嘎旗| 平阴县| 大田县| 杭州市| 敦化市| 浑源县| 深州市| 襄垣县| 祁连县| 思茅市| 南安市| 行唐县| 临沧市| 宁都县| 金平| 武穴市| 常山县| 黄平县| 炎陵县| 麦盖提县| 威海市| 商南县| 汤阴县| 札达县| 临安市| 东辽县| 成武县|