Java Module System
How to decrease your application footprint
Leonardo Zanivan - Crossover Rodrigo Cândido da Silva - Integritas
Java Module System How to decrease your application footprint - - PowerPoint PPT Presentation
Java Module System How to decrease your application footprint Leonardo Zanivan - Crossover Rodrigo Cndido da Silva - Integritas Java 9 Modules System Previous Module System Classpath After Module System Classpath JDK 9+ Spring Modules jlink
Leonardo Zanivan - Crossover Rodrigo Cândido da Silva - Integritas
JDK 9+
JDK-8146115 enhancement JDK-8186309 enhancement JDK-8179498 enhancement
Can extract container-specific information about number
Can extract container-specific information about allocated memory (automatically) Attaching to namespace issue(s) have been resolved!
host PID ⇒ container PID
New JVM flags for Docker support:
(default)
Support for Linux only
Reduce resource footprint when multiple JVMs were running on the same physical machine
Pre-Java 10, use of CDS had been restricted to the bootstrap class loader only Improve startup time
Processes/applications can sharing common class metadata (class-data), from a shared archive (CDS archive)
footprint and starts 2x faster than HotSpot.
builds are available. https://adoptopenjdk.net
Note: JDK 10 Alpine was built from source: https://hub.docker.com/r/panga/openjdk10/
Note: Best case scenario during my tests. Limit: 2 cpus, 1g memory, JVM_OPTS= Xmx512m
Note: Best case scenario during my tests. JMeter test plan was used to load application.
Note: Best case scenario during my tests. JMeter test plan was used to load application.