- Java 11 and 12:New Features
- Mala Gupta
- 109字
- 2021-07-02 12:27:04
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.
推薦閱讀
- Delphi程序設計基礎:教程、實驗、習題
- Learning Linux Binary Analysis
- Building a Recommendation Engine with Scala
- Java應用開發技術實例教程
- Android 應用案例開發大全(第3版)
- Unity Game Development Scripting
- UML 基礎與 Rose 建模案例(第3版)
- Lift Application Development Cookbook
- 編程改變生活:用Python提升你的能力(進階篇·微課視頻版)
- Shopify Application Development
- C語言程序設計教程
- C語言程序設計教程
- Mastering ASP.NET Web API
- Raspberry Pi Robotic Projects
- jQuery EasyUI從零開始學