Spawns threads and fills stack and heap memory for memory allocation analysis of JVM.
Written for the article https://berksoftware.com/23/12/JVM-Stack-Memory.
Switch to the JDK version to analyze:
$ sdk use java 11.0.21-amzn
Build and install Docker image tagged with current Java version:
$ ./mvnw install
Docker image tagged with current Java version will be installed: memoryfiller:java11
An image for older version then current one can be build with Maven property jvm_version
:
$ ./mvnw -Djvm_version=17
Java 8 version is in separate branch: java8
Refer to the article https://berksoftware.com/23/12/JVM-Stack-Memory