- 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.
推薦閱讀
- Arduino開發實戰指南:LabVIEW卷
- Java Web及其框架技術
- Scratch 3.0少兒編程與邏輯思維訓練
- Mastering Kali Linux for Web Penetration Testing
- Kinect for Windows SDK Programming Guide
- 深入淺出PostgreSQL
- RabbitMQ Cookbook
- Learning Concurrent Programming in Scala
- Visual C++開發入行真功夫
- HTML5從入門到精通(第4版)
- 智能手機APP UI設計與應用任務教程
- 小程序,巧應用:微信小程序開發實戰(第2版)
- Python:Deeper Insights into Machine Learning
- 深度學習程序設計實戰
- C#程序設計基礎入門教程