?
Solved

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

Posted on 2011-02-24
5
Medium Priority
?
622 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:Amol
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 1000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Great sound, comfort and fit, excellent build quality, versatility, compatibility. These are just some of the many reasons for choosing a headset from Sennheiser.
In the modern office, employees tend to move around the workplace a lot more freely. Conferences, collaborative groups, flexible seating and working from home require a new level of mobility. Technology has not only changed the behavior and the expe…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Simple Linear Regression
Suggested Courses

765 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