166 questions
0
votes
1
answer
48
views
jmap in kubectl debug container returns immediately; heap dump file is missing
I'm trying to get a Java heap dump out of a GKE container.
First I connect to the container:
kubectl debug -it my-pod --image adoptopenjdk/openjdk11:latest --target=my-container -- bash
Then I run:
...
0
votes
0
answers
68
views
How to Integrate Stalwart JMAP with ASP.NET Core Web API?
I am developing a client application in ASP.NET Core Web API and want to integrate JMAP functionality using Stalwart Mail Server. Specifically, I need guidance on:
Establishing connectivity between my ...
0
votes
0
answers
101
views
Why assigned a jvm process id to jmap, but attach failed with no such process and show me another process id
$ jmap -heap 95320
Attaching to process ID 95320, please wait...
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed ...
1
vote
0
answers
158
views
jmap -dump is FULL GC be executed?
I'm trying to create and analyze a heap dump using Java Jmap.
I learned how to do and concept through Google.
jmap -dump:format=b,file=heapdump.hprof[pid]
If the command at the top is executed, does ...
2
votes
1
answer
4k
views
How do I install jhat?
I have downloaded Java JDK 17 and I need to analyse a dump I did with the jmap command.
I have searched about how to do it and jhat is apparently an already installed command that lets you analyse the ...
1
vote
0
answers
98
views
Java object memory footprint - what to believe ? jhat ? ClassLayout?
I have a simple java class "Tile" that declares 4 fields :
two integers
two objects (pointers)
I'm trying to know what is the exact memory footprint of an instance of this class.
Using the ...
0
votes
0
answers
218
views
Why does taking a heap histo using OnOutOfMemoryError hang?
When the JVM (OpenJDK 18) throws an OutOfMemoryError, I want to make sure it stops and we take a heap histogram using jmap.
I achieve that with the flags -XX:-ExitOnOutOfMemoryError -XX:...
2
votes
1
answer
2k
views
Install JMAP inside a docker container
How can I install jmap on my docker container to get its heap dump once its deployed to AWS ECS as a container.I am using distroless as my base java image.Below is my dockerFile.I have managed to ...
0
votes
0
answers
15
views
su -c <user> command fails in shell script [duplicate]
I was trying to generate a heap dump by the script below. The jmap command works from the cmd. But it fails if I run by the script. Any idea why?
#!/bin/bash
# Check to ensure we're running as root.
...
5
votes
0
answers
706
views
jhsdb can't attach the java process in MacOS Monterey
macOS Monterey version is 12.5
and jdk version is 11
I was going with sudo jhsdb jmap --heap --pid xxxx to analyze java process. Then I got the error followed
Password:
Attaching to process ID 47413, ...
0
votes
2
answers
2k
views
Why all java utils for dumping heap are not working? How to dump heap?
I'm tired to trying to dump java heap when I need it. Any time when I could do that none of utils are not able to do that. I'm trying jmap, jvisualvm, jconsole, jmc and none of them not able to do ...
0
votes
0
answers
802
views
Convert a core file dump into a heap dump
I have an taken a core dump file from a machine, with file size 2GB. I can open this file with gdb and see the processes that were running when I took the core file. I want though to convert this file ...
1
vote
1
answer
663
views
Java Heap committed memory is bigger than -Xmx
I am trying to hunt the memory leak in Java Spring Boot app inside docker container.
Heap size of the app is limited like this:
java -XX:NativeMemoryTracking=summary -jar /app-0.1.jar -Xms256m -...
0
votes
1
answer
715
views
Jmap does not have the file parameter, so the execution is abnormal. However, the execution is normal after the file parameter is added
The specific exception information is as follows:
root@test-6cf7db85b7-sxk8h:/# jmap 7
Attaching to process ID 7, please wait...
ERROR: ptrace(PTRACE_ATTACH, ..) failed for 7: Operation not permitted
...
2
votes
2
answers
1k
views
jps not listing tomcat process and jmap fails to create heap dump
I have running tomcat (9.0.39.0) server, started by user cpappt and running with pid: 1682650. The machine on which this server runs is not bare metal but a VMware machine and the JVM is from OpenJ9
&...