2

I am looking into Tapiki https://www.takipi.com/product. For every error and exception they add an url. In the url, they show what is the value of every variable at that point of error.

I am guessing that they use JVM snapshots for that purpose. How is it possible to capture JVM snapshot at the time of error and map it to code?

1 Answers1

0

You can easily handle java.lang.OutOfMemoryError heap dumps by using -XX:+HeapDumpOnOutOfMemory command line option (see command line tools reference)

For all other cases you should use JVMTI and implement your own agent for exception interception. You can find example program here

Community
  • 1
  • 1
Maciej Marczuk
  • 3,593
  • 29
  • 28