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 656157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:40:59+00:00 2026-05-13T22:40:59+00:00

Say I have a couple of java runtime environments running on my system which

  • 0

Say I have a couple of java runtime environments running on my system which are used by several applications. I would like to programmatically interact with these applications by reading their memory.

A typical approach would be to directly look into this application’s memory, however for java applications this seems to be practically impossible because of the java runtime environment. Instead, one has to look into the memory of the java runtime environment, or debug it.

[ the above is what I think I have learned from several searches on the web, if anything is false, please correct me ]

Note: keep in mind that the application I want to monitor is not owned by me and thus I do not have the source code nor the ability to launch the application in “debug mode” or something.

Now, as this is a non-production project, I would prefer an easy way out: using an existing windows GUI application which can already monitor variables of a java runtime environment and it’s applications to programmatically crawl these from this GUI application for usage in my own project. If any such program exists, I would really appreciate the help.

If the above is not possible, how would I (programmatically) retreive these variables otherwise?

  • 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. Editorial Team
    Editorial Team
    2026-05-13T22:41:00+00:00Added an answer on May 13, 2026 at 10:41 pm

    It’s difficult to answer this precisely without knowing much more about the application involved, its structure etc. Note that objects move around in the JVM’s memory, and so you can’t monitor the actual application memory directly.

    So the first question is, how do you know what you want to monitor without the source code ? e.g. which variables/objects etc.?

    Given that you’ve worked this out, it strikes me that you have two options.

    1. decompile and instrument the application (perhaps statically, perhaps using AOP), and recompile it. This assumes that the application is not obfuscated, and you’re not in breach of licensing etc.
    2. wrap the application in a thin layer that uses reflection to identify the variables you’re interested in, and tracks the values of those variables as the process executes. I suspect you’ll still have to decompile to identify these variables.

    You can monitor these values remotely by creating an MBean and exposing via JMX, and monitoring via JConsole. That’s pretty trivial compared to the initial step of finding those variables you’re interested in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 326k
  • Answers 326k
  • 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 you have complex roots that you want to plot… May 14, 2026 at 1:46 am
  • Editorial Team
    Editorial Team added an answer Try also bilinear interpolation or bicubic interpolation. May 14, 2026 at 1:46 am
  • Editorial Team
    Editorial Team added an answer No, you'll need to name them explicitly. May 14, 2026 at 1:46 am

Related Questions

Say I have my sources in my src/ tree (and possibly in my test/
I have a couple of classes that want to pass each other some information
I'm working on a small UML editor project, in Java, that I started a
When writing code in Java, it is very helpful to embrace composition and dependency
I am currently in the process of learning the CodeIgniter PHP framework. At the

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.