anapsix / docker-alpine-java

Oracle Java8 over AlpineLinux with glibc 2.29
https://hub.docker.com/r/anapsix/alpine-java/
MIT License
726 stars 282 forks source link

Keep jcmd in JRE images to enable on demand flight recorder #70

Open mattnelson opened 6 years ago

mattnelson commented 6 years ago

The JRE images are purging[1] everything but the jre/bin directory. In order to enable flight recorder[2] on demand[3], jcmd should also be persisted.

[1] https://github.com/anapsix/docker-alpine-java/blob/8u172b11/8/172b11/server-jre/standard/Dockerfile#L40 [2] https://github.com/anapsix/docker-alpine-java/pull/6 [3] https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/tooldescr006.html

anapsix commented 6 years ago

jdk images do not have it removed could that not be used to debug things?

mattnelson commented 6 years ago

We have switched back to the JDK image for now, but we would like to use the JRE image because of the size.