jifa icon indicating copy to clipboard operation
jifa copied to clipboard

MAT processed index files in JIFA

Open nikhildongre opened this issue 4 years ago • 6 comments

Hi Team,

Can we process hprof file in MAT client and use generated index files in JIFA to view reports ??

I tried to open MAT client generated index files in JIFA but its not able to open Leak suspect, Histogram and Overview. Other reports are working fine.

Regards Nikhil Dongre

nikhildongre avatar Oct 29 '21 12:10 nikhildongre

See #39 for details on this including a patch to MAT to generate the required index for faster opening of reports.

jasonk000 avatar Oct 29 '21 15:10 jasonk000

Is #39 available with latest JIFA?

As i can see #39 is fixed on 03-Nov-2019 and #39 won't be available with MAT eclipse 1.12.0 Release on 16 June 2021.

nikhildongre avatar Nov 08 '21 11:11 nikhildongre

The patch in #39 was accepted to Eclipse MAT upstream last week (Nov 3rd), so it should be available in the next Eclipse MAT release, after which we will bring it into JIFA automatically. If you need it earlier you'll need to build MAT yourself and include it during packaging.

The build process in our stack involves a few steps:

  • Building Eclipse MAT with any custom patches
  • Running the JIFA build
  • Copying the heap-dump-analyzer-*.jar, and Eclipse MAT plugins to a custom path (eg: /opt/eclipse-jifa-deps).
  • Modifying startup command to include WORKER_OPTS="... -Dmat-deps=/opt/eclipse-jifa-deps ...`.

jasonk000 avatar Nov 08 '21 21:11 jasonk000

I processed hprof file in MAT client(using ParseHeapdump command) and i2sv2 index file generated along with other index files but when I tried to access those files in jifa i am still getting NullPointer exception for Leak suspect, Histogram and Overview.

nikhildongre avatar Nov 16 '21 11:11 nikhildongre

Could you paste the stack-trace please.

jasonk000 avatar Nov 16 '21 16:11 jasonk000

By when we can expect #39 will be part of JIFA? Any approx date for next Eclipse MAT release?

nikhildongre avatar Jan 26 '22 19:01 nikhildongre