We have a JRE installed on our production environment, but not a JDK. The versions of the JRE and OS are below.
[me@mymachine ~]$ java -version java version &
Use jattach, a tool created by JVM hacker Andrei Pangin. It's tiny (24KB), works with just JRE and supports Linux containers.
jattach PID-OF-JAVA dumpheap