Accompanying repo for the Amsterdam Java User Group Meetup
The quickest way, would be to run:
java -jar MeetupMemory.jar single
for a single threaded examplejava -jar MeetupMemory.jar multi
for a multi threaded example
This requires Java 17.
One could also build the jar themselves using gradle jar
and running the resulting jar file in build/libs
.`
To build the Docker container for the examples, run:
docker build -t meetup .
When running the container, one should specify the following environment variable:
THREAD_MODE
: required, either 'single' or 'multi'
It is possible to set different optional LD_PRELOAD
to use jemalloc or mimalloc.
Or tune any of the chosen memory allocators.
It is also possible to do the steps above with the scripts in scripts/