Solved

How do i find the memory used by jvm loaded using c++ process

Posted on 2011-02-24
5
614 Views
Last Modified: 2013-12-21
I have loaded the jvm from c++ and starting the java using JNI.
I want to check what is the memory usage of the jvm after the process is started.
please specify a tool with example(Unix) which i can use.
0
Comment
Question by:raj17
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 9

Expert Comment

by:amolg
ID: 34979723
which unix OS? for solaris use "prstat -a".
0
 

Author Comment

by:raj17
ID: 35004093
Am not running any jar file using java command, there is no separate process id  to find the statistics about. jvm has been initialized from C++
0
 
LVL 9

Accepted Solution

by:
fcontrepois earned 250 total points
ID: 35088083
Short answer: JVMSTAT http://www.oracle.com/technetwork/java/faq-141822.html

Long one:
 JVM manages it's own memory, so you set it or you're using defaults and those are differents for every JVM (sun, ibm, jrockit, terracotta ...) and others elements.

Command lines parameters for JVM that affect memory
http://download.oracle.com/javase/1.5.0/docs/tooldocs/solaris/java.html#Xms you'll use Xmx + some MB for the permgen memory.

Using JVMSTAT should be more precise but more complicated to setup
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 35321640
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ejb stateless example 2 61
Run AutoHotkey script directly from Notepad++ 5 215
Do Wend Macro not working 22 68
SCO 5.0.7 on HP Proliant DL380 G5 will not shutdown properly. 6 85
This is about my first experience with programming Arduino.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question