can mat(memory analyze tool) display primitive types in a heapdump
I want to see the stack frame of a method from a heapdump using mat. But I can't see any primitive type in the callstack, but types like String can be displayed from the threadDetail.
public int fun(int x, int y) {
int d = this.hashCode();
int a = x + y;
String jj = "123";
sleep(100000L);
return a + d + jj.length();
}
I can only see the object instance and String jj in the stackframe. I want to know if it's the problem of MAT, or the heapdump doesn't contain primitive type variables.
java jvm stack mat stackframe
|
show 2 more comments
I want to see the stack frame of a method from a heapdump using mat. But I can't see any primitive type in the callstack, but types like String can be displayed from the threadDetail.
public int fun(int x, int y) {
int d = this.hashCode();
int a = x + y;
String jj = "123";
sleep(100000L);
return a + d + jj.length();
}
I can only see the object instance and String jj in the stackframe. I want to know if it's the problem of MAT, or the heapdump doesn't contain primitive type variables.
java jvm stack mat stackframe
Is this a PHD portable heap dump or a HPROF binary heap dump?
– flakes
Nov 23 '18 at 6:17
hprof dump, I dump it with visualvm
– Xinli Niu
Nov 23 '18 at 6:35
Well, it’s called heap dump, not stack dump. The heap dump allows to identify stack frames as an object’s GC root, but that’s a different feature than storing the contents of stack frames. For the included objects (heap data), the field values of primitive types are available.
– Holger
Nov 23 '18 at 8:34
is there a way to get something like 'stack dump' from a running jvm so I can't see all the local variables?
– Xinli Niu
Nov 24 '18 at 5:31
I don’t know of any. Though, there are debuggers and debuggers are just software using the JVM’s debug interface. So, in principle, it is possible to write such software reading all these values via that interface and storing them. But I don’t know of any standard (or common) tool (besides the interactive debuggers).
– Holger
Nov 29 '18 at 18:09
|
show 2 more comments
I want to see the stack frame of a method from a heapdump using mat. But I can't see any primitive type in the callstack, but types like String can be displayed from the threadDetail.
public int fun(int x, int y) {
int d = this.hashCode();
int a = x + y;
String jj = "123";
sleep(100000L);
return a + d + jj.length();
}
I can only see the object instance and String jj in the stackframe. I want to know if it's the problem of MAT, or the heapdump doesn't contain primitive type variables.
java jvm stack mat stackframe
I want to see the stack frame of a method from a heapdump using mat. But I can't see any primitive type in the callstack, but types like String can be displayed from the threadDetail.
public int fun(int x, int y) {
int d = this.hashCode();
int a = x + y;
String jj = "123";
sleep(100000L);
return a + d + jj.length();
}
I can only see the object instance and String jj in the stackframe. I want to know if it's the problem of MAT, or the heapdump doesn't contain primitive type variables.
java jvm stack mat stackframe
java jvm stack mat stackframe
asked Nov 23 '18 at 5:38
Xinli Niu
9115
9115
Is this a PHD portable heap dump or a HPROF binary heap dump?
– flakes
Nov 23 '18 at 6:17
hprof dump, I dump it with visualvm
– Xinli Niu
Nov 23 '18 at 6:35
Well, it’s called heap dump, not stack dump. The heap dump allows to identify stack frames as an object’s GC root, but that’s a different feature than storing the contents of stack frames. For the included objects (heap data), the field values of primitive types are available.
– Holger
Nov 23 '18 at 8:34
is there a way to get something like 'stack dump' from a running jvm so I can't see all the local variables?
– Xinli Niu
Nov 24 '18 at 5:31
I don’t know of any. Though, there are debuggers and debuggers are just software using the JVM’s debug interface. So, in principle, it is possible to write such software reading all these values via that interface and storing them. But I don’t know of any standard (or common) tool (besides the interactive debuggers).
– Holger
Nov 29 '18 at 18:09
|
show 2 more comments
Is this a PHD portable heap dump or a HPROF binary heap dump?
– flakes
Nov 23 '18 at 6:17
hprof dump, I dump it with visualvm
– Xinli Niu
Nov 23 '18 at 6:35
Well, it’s called heap dump, not stack dump. The heap dump allows to identify stack frames as an object’s GC root, but that’s a different feature than storing the contents of stack frames. For the included objects (heap data), the field values of primitive types are available.
– Holger
Nov 23 '18 at 8:34
is there a way to get something like 'stack dump' from a running jvm so I can't see all the local variables?
– Xinli Niu
Nov 24 '18 at 5:31
I don’t know of any. Though, there are debuggers and debuggers are just software using the JVM’s debug interface. So, in principle, it is possible to write such software reading all these values via that interface and storing them. But I don’t know of any standard (or common) tool (besides the interactive debuggers).
– Holger
Nov 29 '18 at 18:09
Is this a PHD portable heap dump or a HPROF binary heap dump?
– flakes
Nov 23 '18 at 6:17
Is this a PHD portable heap dump or a HPROF binary heap dump?
– flakes
Nov 23 '18 at 6:17
hprof dump, I dump it with visualvm
– Xinli Niu
Nov 23 '18 at 6:35
hprof dump, I dump it with visualvm
– Xinli Niu
Nov 23 '18 at 6:35
Well, it’s called heap dump, not stack dump. The heap dump allows to identify stack frames as an object’s GC root, but that’s a different feature than storing the contents of stack frames. For the included objects (heap data), the field values of primitive types are available.
– Holger
Nov 23 '18 at 8:34
Well, it’s called heap dump, not stack dump. The heap dump allows to identify stack frames as an object’s GC root, but that’s a different feature than storing the contents of stack frames. For the included objects (heap data), the field values of primitive types are available.
– Holger
Nov 23 '18 at 8:34
is there a way to get something like 'stack dump' from a running jvm so I can't see all the local variables?
– Xinli Niu
Nov 24 '18 at 5:31
is there a way to get something like 'stack dump' from a running jvm so I can't see all the local variables?
– Xinli Niu
Nov 24 '18 at 5:31
I don’t know of any. Though, there are debuggers and debuggers are just software using the JVM’s debug interface. So, in principle, it is possible to write such software reading all these values via that interface and storing them. But I don’t know of any standard (or common) tool (besides the interactive debuggers).
– Holger
Nov 29 '18 at 18:09
I don’t know of any. Though, there are debuggers and debuggers are just software using the JVM’s debug interface. So, in principle, it is possible to write such software reading all these values via that interface and storing them. But I don’t know of any standard (or common) tool (besides the interactive debuggers).
– Holger
Nov 29 '18 at 18:09
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53441154%2fcan-matmemory-analyze-tool-display-primitive-types-in-a-heapdump%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53441154%2fcan-matmemory-analyze-tool-display-primitive-types-in-a-heapdump%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Is this a PHD portable heap dump or a HPROF binary heap dump?
– flakes
Nov 23 '18 at 6:17
hprof dump, I dump it with visualvm
– Xinli Niu
Nov 23 '18 at 6:35
Well, it’s called heap dump, not stack dump. The heap dump allows to identify stack frames as an object’s GC root, but that’s a different feature than storing the contents of stack frames. For the included objects (heap data), the field values of primitive types are available.
– Holger
Nov 23 '18 at 8:34
is there a way to get something like 'stack dump' from a running jvm so I can't see all the local variables?
– Xinli Niu
Nov 24 '18 at 5:31
I don’t know of any. Though, there are debuggers and debuggers are just software using the JVM’s debug interface. So, in principle, it is possible to write such software reading all these values via that interface and storing them. But I don’t know of any standard (or common) tool (besides the interactive debuggers).
– Holger
Nov 29 '18 at 18:09