Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315940 - Remember custom JDK that is set for Acquire Heap Dump
Summary: Remember custom JDK that is set for Acquire Heap Dump
Status: RESOLVED FIXED
Alias: None
Product: MAT
Classification: Tools
Component: GUI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-07 04:50 EDT by Dominik Stadler CLA
Modified: 2010-06-24 06:16 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Stadler CLA 2010-06-07 04:50:44 EDT
Build Identifier: Eclipse Memory Analyzer Version 1.0.0

Currently the jdkhome property is always reset, this means users that need to use a different JDK for heap dump retrieval need to always enter the different one, it would be more user friendly to have the last custom jdk remembered for this field as you typically do a number of memory dumps of the same application during memory analysis.

I typically have to set a different JDK when my "system under analysis" is running with 32-bit, whereas MAT is executed with 64-bit (necessary to have more memory available than 2G).

Reproducible: Always

Steps to Reproduce:
1. Acquire a heap dump where you set the jdkhome to a different value
2. Acquire another heap dump, the jdkhome property is reset to the default value instead of the value you just entered before
Comment 1 Krum Tsvetkov CLA 2010-06-24 06:16:35 EDT
I checked in some changes which solve the problem.
Previously only the user setting for the JDK used to get the list of JVMs was saved and this was reused for calling jmap. It was possible to choose another VM for jmap but this specific setting wasn't saved. Now both of them are saved as separate properties.

The change will be included in the next bugfix release, which I (tentatively) see in about a month. Until then as a workaround for your problem you can use the "Configure" button on the first page and set there the jdkHome used to get the list of VMs to the x32 one. As I said this one is used then to call jmap.