- 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.
推薦閱讀
- Mastering JavaScript Functional Programming
- 自然語言處理實戰:預訓練模型應用及其產品化
- Beginning C++ Game Programming
- Python從菜鳥到高手(第2版)
- HTML5 Mobile Development Cookbook
- Julia Cookbook
- Bootstrap 4:Responsive Web Design
- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Java項目實戰精編
- 軟件測試實用教程
- C語言程序設計
- Learning YARN
- Troubleshooting Citrix XenApp?
- PyQt編程快速上手
- SQL Server 2012 數據庫應用教程(第3版)