Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
gradle/wrapper
src/main/java/com/oblac
.gitignore
Dockerfile
README.md
build.gradle
docker-settings.png
gradlew
gradlew.bat

README.md

Java Nom-Nom

Running native

Run:

gw run

Before:

Available processors (cores): 8
Free memory: 242.9 MB
Maximum memory: 3.6 GB
Total memory: 245.5 MB

After:

Free memory: 150.1 MB
Maximum memory: 3.6 GB
Total memory: 2 GB

Inside Docker

docker build -t oblac/java-nom-nom .
docker run -a stdin -a stdout oblac/java-nom-nom

Before:

Available processors (cores): 4
Maximum memory: 1.7 GB

After:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

Docker, with limits

docker build -t oblac/java-nom-nom .
docker run -a stdin -a stdout --memory=1g --cpuset-cpus=0 oblac/java-nom-nom

Before:

Available processors (cores): 1
Maximum memory: 1.9 GB

Docker, limits & Java flags

docker build -t oblac/java-nom-nom .
docker run -a stdin -a stdout --memory=1g --cpuset-cpus=0 oblac/java-nom-nom

Before:

Available processors (cores): 1
Maximum memory: 247.5 MB
You can’t perform that action at this time.