jvm-hotspot Questions
1
For example, the HotSpot JVM implement null-pointer detection by catching SIGSEGV signal. So if we manually generate a SIGSEGV from external, will that also be recognized as NullPointerException in...
Reiff asked 15/11, 2023 at 3:20
4
Can someone explain the differences between GraalVM and Jvm-Hotspot, and how GraalVM is related to OpenJDK's HotSpot.
Pleurisy asked 24/7, 2018 at 3:17
5
I am working on a Java application for solving a class of numerical optimization problems - large-scale linear programming problems to be more precise. A single problem can be split up into smaller...
Retrospection asked 14/11, 2019 at 20:29
3
Solved
Prior to Java 8 we had 5 major runtime data areas:
Method Area
Heap
JVM Stacks
PC registers
Native method stacks
With Java 8, there is no Perm Gen, that means there is no more
“java.lang.Out...
Tertia asked 3/5, 2018 at 20:16
1
Solved
I have a hard time understanding how compressed pointers works in Java 19, help is appreciated.
In Java 11 the reference size is 4 for heaps below 32GiB (compressed pointers) and 8 for a larger hea...
Parental asked 5/11, 2022 at 19:24
6
We're using Wildfly 11 with Java 8 on Amazon Linux. We recently installed jstack to troubleshoot a high CPU utilization issue as we're trying to figure out what code is causing the CPU to spin. Fir...
Arriaga asked 11/9, 2018 at 14:26
3
Solved
I keep fighting to understand what VarHandle::setOpaque and VarHandle::getOpaque are really doing. It has not been easy so far - there are some things I think I get (but will not present them in th...
Wheels asked 28/5, 2019 at 12:19
2
Solved
Question
How to get a rolling recording into disk, with a maximum age?
Context
When something goes bad in my server, I want to be able to dump the profiling information of the hours prior and analy...
Dehlia asked 30/3, 2022 at 8:37
0
I have a java code which looks like this:
private volatile boolean myWriteActionPending;
void startWrite() {
boolean prev = myWriteActionPending;
myWriteActionPending = true;
try {
// acquire w...
Region asked 21/2, 2022 at 8:2
1
We run a complex clustered application with Java 11.0.11 and -XX:ReservedCodeCacheSize=375m with the same load profile attached 24/7 without any restarts.
After we updated AdoptOpenJDK jdk-11.0.11+...
Actable asked 23/11, 2021 at 19:8
1
In one of my computers, there is JRE 1.8.0_45 and in another machine there is OpenJDK.
I want to set the JVM flag Dlog4j2.formatMsgNoLookups=true, but where can I write this piece of configuration?...
Peacoat asked 11/12, 2021 at 9:27
1
Solved
Looking into UTF8 decoding performance, I noticed the performance of protobuf's UnsafeProcessor::decodeUtf8 is better than String(byte[] bytes, int offset, int length, Charset charset) for the foll...
Vernissage asked 8/12, 2021 at 9:29
5
Solved
I had to run jmap in order to take heap dump of my process. but jvm returned:
Unable to open socket file: target process not responding or HotSpot VM not loaded
The -F option can be used when the ...
Prosit asked 1/10, 2014 at 11:20
2
Solved
I just read the Java Magazine article Loop Unrolling. There the authors demonstrate that simple for loops with an int counter are compiled with loop unrolling optimization:
private long intStride1(...
Bulgarian asked 18/3, 2021 at 22:21
2
Solved
Suppose I have a java.util.Collection that I want to loop over. Normally I'd do this:
for(Thing thing : things) do_something_with(thing);
But suppose that this is in some core utility method that ...
Cesarean asked 1/6, 2021 at 16:30
2
Solved
I need to do some experiments showing the effect of inlining on my code. Anybody knows how to disable inlining with sun jvm? I searched http://www.oracle.com/technetwork/java/javase/tech/vmoptions-...
Keitloa asked 10/3, 2013 at 23:20
1
Solved
Consider the following function:
int foo(int[] indices) {
int[] lookup = new int[256];
fill(lookup); // populate values, not shown
int sum = 0;
for (int i : indices) {
sum += lookup[i & 0...
Lanitalank asked 10/4, 2021 at 21:9
4
Solved
In the "Effective Java", the author mentioned that
while (!done) i++;
can be optimized by HotSpot into
if (!done) {
while (true) i++;
}
I am very confused about it. The variable done is us...
Palingenesis asked 18/2, 2012 at 3:12
1
Solved
As suggested in this answer, I am using the following flags when running performance tests.
-XX:+PrintCompilation
-verbose:gc
This was very useful for debugging what JVM activities were happenin...
Etzel asked 26/1, 2021 at 21:6
5
Solved
I just want to control the stack size for all of my threads in a Java (groovy) application. For the Hotspot Oracle VM, I know that there are two parameters doing that (-Xss and XX:ThreadStackSize)....
Scald asked 27/2, 2015 at 14:53
2
Solved
I was analyzing the HotSpot logs for a benchmark I ran for a piece of code in JITWatch and noticed a lot of methods calls not being inlined due to "no static binding". These seem to only ...
Mairemaise asked 28/12, 2020 at 6:18
2
In reading about ZGC I notice that it brags about being a 'single-generation garbage collector,' but I rarely see any details on exactly what this term means.
Normal Generational GC
I'm familiar wi...
Serrano asked 24/12, 2020 at 15:5
3
I want to monitor Full GC frequency in JMX. A MBean exposes GC count.
(cf. http://download.oracle.com/javase/1.5.0/docs/api/java/lang/management/GarbageCollectorMXBean.html - java.lang:type=Garbage...
Maniacal asked 8/1, 2011 at 11:13
1
Solved
Tried looking up for this, but all the questions/answers I came across talk about the purpose of having 2 survivor spaces. I would like to understand the purpose of having survivor space in general...
Auspice asked 15/8, 2020 at 22:9
3
Is an instance variable of an object in Java stored on the stack or method area of the JVM?
Also, do we have different instance variable for multiple threads?
If it is stored in method area how ...
Glamorize asked 8/5, 2014 at 19:1
1 Next >
© 2022 - 2024 — McMap. All rights reserved.