Code examples are available here: https://github.com/ivailo-pashov/jvmmagic How well do you know what is going inside the JVM? How about its secret backdoors and nasty hacks? Initially they appear as magic tricks but being aware what is going on behind the scenes will save your time when real issues arise.