This are the slides for my lightning talk at the Vienna Scala Usergroup on September 14th 2017 about running Playframework Applications inside Docker containers.
8. RUNNING THE APPLICATION
Build the Docker image with
Run the Docker image with
sbt docker
docker run -m 128M -it --rm -p 9000:9000 -name showcase
-e PLAY_HTTP_SECRET_KEY=changed
com.github.dpfeiffer/play-docker-showcase
9. USEFUL COMMANDS
View the Docker container stats
Enter the container bash
Get a memory overview of the JVM inside the
container
docker stats showcase
docker exec -it showcase /bin/bash
jcmd 1 VM.native_memory summary
11. FINAL THOUGHTS
existing VM flags are not enough
non-heap at least is "predictable"
"micro" services on the JVM are not that micro
use small base images to save traffic
non heap grows over time, keep some space