jvm-hotspot Questions
2
Solved
I am upgrading my application from java 1.6 to 1.7. When I try to build using Maven 3.2.1, my build fails with below error msg:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compil...
Aneroidograph asked 8/5, 2014 at 13:56
1
Solved
I'm working with a system where a number of jobs, implemented as Java applications, can be started simultaneously. Each job runs in a separate JVM.
Some of these jobs require bigger permgen size t...
Skiagraph asked 20/11, 2014 at 13:38
2
Other than the more 'advanced' GUI from Java mission control, how are they different?
At first glance they seem to offer very similar functionality (Interpreting JMX data and Memory/CPU profiling)...
Spongioblast asked 10/5, 2014 at 12:13
2
Solved
I have this code to generate class dynamically and load it
import javassist.CannotCompileException;
import javassist.ClassPool;
public class PermGenLeak {
private static final String PACKAGE_NA...
Copyist asked 19/10, 2014 at 21:12
2
When I am printing the details of garbage collection using GarbageCollectorMXBean the output shows me the following information:-
Name: PS ScavengeCollection
count: 72
Collection time: 3041
Memor...
Midlands asked 8/5, 2012 at 6:1
1
Solved
I read from some documents that Hotspot VM utilizes a data structure called Oop Maps to manage all OOPs in VM. My question is that when does this Oop Map data structure generated? At compile time o...
Diphenyl asked 25/9, 2014 at 2:56
3
Solved
Why does this code sometimes produce ArrayOutOfBoundsException? How is that even possible for String.valueOf(int)?
public static String ipToString(ByteString bs) {
if (bs == null || bs.isEmpty())...
Chops asked 19/9, 2014 at 20:35
1
Solved
While writing an answer to another question, I noticed a strange border case for JIT optimization.
The following program is not a "Microbenchmark" and not intended to reliably measure an executio...
Giesser asked 15/8, 2014 at 12:26
2
Note: this question isn't related to volatile, AtomicLong, or any perceived deficiency in the described use case.
The property I am trying to prove or rule out is as follows:
Given the followin...
Infrequency asked 7/8, 2014 at 2:21
1
System profilers, like DTrace and Linux perf_events, are able to profile stack traces from the JVM. Now, symbols aside (that's another problem), both DTrace and perf_events collect many stacks that...
Gay asked 5/6, 2014 at 23:22
1
Solved
I am getting an error message from the Java compiler that I don't understand. I've tested my code on OSX 10.6, 10.9, and Ubuntu 14.04, with both Java 6 and 7. When I run with the Eclipse debugger o...
Neuroticism asked 7/6, 2014 at 20:9
1
Solved
I am wondering is it possible to log every exception which occurs on JVM level without changing application code? By every exception I mean caught and uncaught exception... I would like to analyze ...
Offense asked 9/5, 2014 at 9:50
1
Solved
I'm trying to write a warm-up routine for a latency sensitive java application in order to optimize the first few transactions that would otherwise be slowed down by dynamic class loading and JIT (...
Audacity asked 1/5, 2014 at 6:47
1
Solved
My application has started to non-deterministically fail after upgrading to Java 8. It doesn't throw an exception or print an error message. The only sign of its failure is the exit code -559038737...
Dextrose asked 29/4, 2014 at 16:38
3
Solved
I would like to know if my no VM argument invocation of HotSpot Java is running with -client, -server, or tiered compilation options. When I supply no VM arguments, which one is chosen by default? ...
Ferneferneau asked 11/2, 2013 at 18:34
2
Solved
Oracle has this to say about Java 8 with regards to AES-NI:
Hardware intrinsics were added to use Advanced Encryption Standard
(AES). The UseAES and UseAESIntrinsics flags are available to enab...
Annihilation asked 14/4, 2014 at 10:56
2
I am looking for better HotSwapping in the JavaVM. Being able to only apply method body changes is okay but quite limiting.
The options available is JRebel and a discontinued project called Dynami...
Rehabilitation asked 28/11, 2013 at 9:51
1
Solved
Currently I have a deployed executable jar file that creates large (7+ Gb) minidump files when it crashes. I would like to have a text representation of what caused the crash, not a binary file of ...
Invalidate asked 31/3, 2014 at 18:52
1
Solved
I've heard that this is the case, but I couldn't find a definitive online source to confirm it.
Background: A colleague likes to make his local variables final. One of his reasons for doing so is ...
Serpasil asked 7/3, 2014 at 16:54
1
Solved
Here's snippet from java.util.ArrayList:
/**
* Constructs an IndexOutOfBoundsException detail message.
* Of the many possible refactorings of the error handling code,
* this "outlining" perform...
Seventeen asked 4/3, 2014 at 14:28
1
When I start the JVM with the argument
-XX:+PrintCompilation
the output is like this:
60 1 java.lang.String::hashCode (55 bytes)
74 2 sun.nio.cs.UTF_8$Encoder::encode (361 bytes)
The first ...
Cohbath asked 24/11, 2012 at 5:27
4
Solved
I was reading Java HotSpot VM Options. I've seen some interesting VM switches, mostly pertaining to Strings - which is of great value to me since my app is doing some heavy String manipulation. Tho...
Arborization asked 26/9, 2013 at 10:47
2
Solved
I'm trying to compile the hsdis-amd64.dll library that the JVM needs to disassemble JIT compiled code.
I followed this accepted answer.
I installed cygwin
downloaded openjdk-7u40-fcs-src-b43-26_...
Disqualification asked 10/1, 2014 at 11:10
1
Solved
I've just downloaded Oracle's Server JRE for Java SE 7 (link) The file I downloaded was server-jre-7u45-linux-x64.tar.gz. When I extracted this file I was surprised to find a directory named jdk1.7...
Hydrobomb asked 11/1, 2014 at 1:21
3
When I reading the book of "Scala in depth", it mentions that HotSpot compiler has several important features, one of them is "Dynamic De-Optimization":
It is the ability to determine if an opti...
Coletta asked 11/12, 2013 at 15:18
© 2022 - 2024 — McMap. All rights reserved.