Solved

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

Posted on 2011-02-24
5
611 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
On Beyond Tools A conversation I recently had with the DevOps manager of a major online retailer really made me think about DevOps monitoring tools (https://www.onpage.com/devops-incident-management-tool/). The manager and I discussed how sever…
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.:
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

831 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