Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 94171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:27:34+00:00 2026-05-10T23:27:34+00:00

I was wondering if something exists (in Java world) able to take an snapshot

  • 0

I was wondering if something exists (in Java world) able to take an snapshot of the JVM current state with the following features:

  • Do it while an exception is being thrown.
  • Capture local variables, method’s arguments, etc.
  • Put it in a handy file which can be used to extract or reproduce in a IDE the situation in your source code.

The two first features are required (third would be awesome). And it must be suitable for production use (so, there is no way about debuggers).

Before asking this I’ve searched through the WWW (as long as possible) and I found some pointers:

  • Cajoon Interceptor: As said in Dzone post, it’s a passive JVM agent which fulfill the three requirements! But, it has two downsides: you must pay for it and the site is down (maybe there is no chance to pay anything).
  • AviCode Intercept Studio: Cajoon’s .NET equivalent. Just to give some insight about.
  • JavaFrame: Ok, it’s a tweet, but it points to a available SVN repo which have the source code (under MIT license) of a JVM agent which looks fine (I’m going to give a try to it).

So, maybe I’m looking for a non existent solution? It’s not urgent, but I had this idea for a project and it would be great to explore this ‘unknown’ (?) path and get something real.

It seems to be clear that it would be a JVM agent (exception event from JVMTI, for example).

At last, I would highlight the followin paragraph from Wikipedia’s Exception Handling article:

In runtime engine environments such as Java or .NET, there exist tools that attach to the runtime engine and every time that an exception of interest occurs, they record debugging information that existed in memory at the time the exception was thrown (call stack and heap values). These tools are called Automated Exception Handling or Error Interception tools and provide ‘root-cause’ information for exceptions.

That’s the idea. I hope somebody can give me some insight or maybe, in the future, somebody get inspired by this humble post 🙂

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:27:35+00:00Added an answer on May 10, 2026 at 11:27 pm

    I give a look to JavaFrame and it seems a good starting point. Just install Apache Ant, do ant in the javaframe directory and launch the test suite (inside test directory) with:

    LD_LIBRARY_PATH=../build/native/ java -agentlib:frameintrospect -classpath ../build/classes/:. org.thobe.frame.Test 

    It does not get any local variable but it tries. So, as I said, it can be an starting point. I hope to get further about its usage, but no time and no documentation (there are lots of projects named JavaFrame) are bad circumstances.

    Maybe some day it can be done again. Yes, again. There was Cajoon, it looked promising and shiny but its website is down and there is no trace of any downloadable jar to try.

    Thanks to everybody!

    PD.: Just for reference, some links I found while researching:

    • How VM Agents Work
    • JVM options
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 189k
  • Answers 189k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If your Value is a dictionary then Cache.Add's second parameter… May 12, 2026 at 5:51 pm
  • Editorial Team
    Editorial Team added an answer a couple of methods are described in this SO: Oracle… May 12, 2026 at 5:51 pm
  • Editorial Team
    Editorial Team added an answer mysql -u <user> -p -e 'select * from schema.table' (Note… May 12, 2026 at 5:51 pm

Related Questions

I am looking to set up a central point of control for settings that
I'm starting with Python coming from java. I was wondering if there exists something
I was wondering if there is something like an interpreter for C. That is,
A particular class has a Hashtable containing 1..N elements. I'm wondering if there are

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.