Team Members: Zeyu Wang, Jing Peng
- prepare JVM related files
- learn to write benchmarks
- find test games in java
- build docker of GraalVM, azul, HotSpot, OpenJ9
- deploy application in docker
- learn to use time in java to record execution time
- docker create and run a new container with specific image
docker run -i -t --name CONTAINER_NAME IMAGE_ID bash
- docker create container with specific image
docker container create -i -t --name MY_CONTAINER_NAME IMAGE_NAME
- docker create container with specific image and limit memory & CPU(eg:512m, cpus)
docker run -i -t -m 512m --cpus=2 --name MY_CONTAINER_NAME IMAGE_ID bash
- copy jar/java file to container
$ docker cp filepath/xxx container_id:/filepath/xxx
- start container
$ docker start container_id
- enter container
$ docker exec -it jre11-hotspot bash
- runtime check
$ time java -jar xxx.jar
$ time java xxx.java
- GC check
//for hotspot
java -verbose:gc -Xms10M -Xmx10m -XX:+PrintGCDetails Main.java
//if convert Main.java to Main, then it will not print GC while compile .java to .class
- ls active container
docker container ls
- container status
docker stats container_name
- all container status
docker container stats
yum install procps/vim