docker-alpine-java icon indicating copy to clipboard operation
docker-alpine-java copied to clipboard

Keep jcmd in JRE images to enable on demand flight recorder

Open mattnelson opened this issue 6 years ago • 2 comments

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

mattnelson avatar May 14 '18 17:05 mattnelson

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

anapsix avatar May 18 '18 14:05 anapsix

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

mattnelson avatar May 18 '18 14:05 mattnelson