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

  • SEARCH
  • Home
  • 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 8960171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:36:45+00:00 2026-06-15T15:36:45+00:00

I am working on a JVMTI agent that monitors memory usage of an application.

  • 0

I am working on a JVMTI agent that monitors memory usage of an application. I have managed to monitor memory allocations on the heap using bytecode instrumentation so that a native method gets invoked whenever a new object/array gets allocated.
But I am really confused about how to determine the amount of memory allocated on the stack.
If you could provide any ideas, tips or links I would greatly appreciate that.

  • 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-06-15T15:36:46+00:00Added an answer on June 15, 2026 at 3:36 pm

    How much detail are you hoping to get from the JVMTI interface? It looks like it only reports logical Java stack frame information which means you can’t find out how much actual runtime stack space is being used, but you can use the jmethodID to figure out the layout of a Java Stack Frame to make a reasonable guess (the number of local variables is fixed for a specific method at compile time, see GetLocalVariableTable). Stack frames for native methods won’t be visible. And other JVM state stored on the stack (e.g., debugging information or space used by the JIT, and thread infrastructure) won’t be visible either.

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

Sidebar

Related Questions

Working with a Lucene index, I have a standard document format that looks something
Working with an Oracle 9i database from an ASP.NET 2.0 (VB) application using OLEDB.
Working with Sharepoint 2010, I have a class that inherits SPPersistedObject with various settings:
Working in FlashBuilder, I build a mobile AS3 application that uses a Loader to
Working in VS2010 / C# - I have a form that shows data by
Working on a small game using an HTML5 canvas, and javascript. And it's working
Working with an undisclosed API, I found a function that can set the number
Working with Reporting Services 2008 r2. So here's my issue: We have 5 reports
Working on a project using Entity Framework (4.3.1.0). I'm trying to figure out how
Working sample using one Table SELECT t.* FROM ( SELECT TITLE.name, (TITLE.value-TITLE.msp) AS Lower,

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.