Highlighted
Absent Member.. Absent Member..
Absent Member..
218 views

How to see Heap Breakdown in Diagnostic v7.5

Jump to solution
Hi Guys,
Does anyone know how to see heap breakdown on Diagnostic tool ? we notice that in profiler you have this option, which work with JVMPI, but we don't know how to use it.

please help,

Thx,
0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to see Heap Breakdown in Diagnostic v7.5

Jump to solution
If you are profiling a 1.4 JVM, it uses JVMPI. However, once you move to Java 1.5, it is supposed to use JVMTI.

You will need to add a Generic JVM Argument which calls the jvmti library. In AIX 64-bit, it might look like this:

-agentpath:/opt/MercuryDiagnostics/JavaAgent/DiagnosticsAgent/lib/ppc-aix64/libjvmti.a

After a restart, this ought to enable the Memory Analysis tab, which supercedes the Heap Breakdown tab for Java 1.5.

View solution in original post

6 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to see Heap Breakdown in Diagnostic v7.5

Jump to solution
If you are profiling a 1.4 JVM, it uses JVMPI. However, once you move to Java 1.5, it is supposed to use JVMTI.

You will need to add a Generic JVM Argument which calls the jvmti library. In AIX 64-bit, it might look like this:

-agentpath:/opt/MercuryDiagnostics/JavaAgent/DiagnosticsAgent/lib/ppc-aix64/libjvmti.a

After a restart, this ought to enable the Memory Analysis tab, which supercedes the Heap Breakdown tab for Java 1.5.

View solution in original post

Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to see Heap Breakdown in Diagnostic v7.5

Jump to solution
Thanks a lot.
do you know if there is any performance impact by adding this ?

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to see Heap Breakdown in Diagnostic v7.5

Jump to solution
If you have JVMTI turned on already, the Memory Analysis will not make a huge impact on performance. I would just suggest run a baseline test before and after, if you are concerned.
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to see Heap Breakdown in Diagnostic v7.5

Jump to solution
Hi,
we try to add it to our WebLogic start script, but its failing:

Unrecognized option: -agentpath:/MercuryDiagnostics75/DiagnosticsAgent/lib/sparc-sunos/libjvmti.so

is the-agentpath option is the right one ?

please advice,
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to see Heap Breakdown in Diagnostic v7.5

Jump to solution
1.) Just as a general rule of thumb, I always accept the default installation folder for HP Software products. This elimiates the questions from first level support. In this case, I can't tell if your path is right, but I will assume it is.

2.) Are you running a 64-bit version of the OS? If so, you need to change your path to call that library.
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to see Heap Breakdown in Diagnostic v7.5

Jump to solution
yes the path is ok.

the problem which we found (and still don't know how to fix) is: since we have java 1.4 we can't use -agentpath option. 😞

so do you know how to load this libary with java 1.4 ?
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.