Questions tagged [jvm-hotspot]

HotSpot is the standard Java virtual machine used by both the Oracle and OpenJDK Java runtime environments.

HotSpot is the standard Java virtual machine used by both the Oracle and OpenJDK Java runtime environments for Java SE and EE environments.

This makes it the most widely deployed Java virtual machine in the world.

It is capable of running code from any language which can emit a Java .class file, as well as interpreted languages (e.g. JRuby) which have implemented their interpreters in Java (or another JVM language).

As of 2012, there are at least 200 languages which can run on top of the JVM - including Scala, Groovy, Clojure, JRuby, Jython and many smaller, niche languages.

HotSpot gets its name from the ability to dynamically profile running code and detect the "hot spots" of execution - the most commonly executing methods.

As, under most circumstances, programs spend most of their time in a small percentage of their methods, this focusing of optimization effort on the hot methods is very efficient.

HotSpot compiles and aggressively optimizes these hottest methods to highly platform-specific machine code which is specialized for the exact environment the code is running on.

This ability to use information about the runtime environment (precise instruction sets supported, memory and core configuration, etc) allows HotSpot to perform optimization tricks that are just not possible with a generic ahead-of-time strategy for "i386" or "i686" as is commonly seen in C/C++ environments.

This (along with the JVMs advanced memory management and garbage collection subsystem) makes the performance analysis of HotSpot-hosted programs more difficult compared to well-known techniques for C/C++. Direct comparison between the two environments is difficult - they each have individual strengths, and each has areas where they have definite advantages.

696 questions
0
votes
1 answer

OpenJDK 64-Bit Server VM AND Java HotSpot(TM) 64-Bit Server VM

As in the title, I have one spring-mvc application which runs on both VMs. My application needs to deal with large number of message import(I used a blocking executor, kept both queue and threadPool size very small). And I set the same JVM options…
ROROROOROROR
  • 959
  • 1
  • 14
  • 31
0
votes
1 answer

Tool Equivalent to Flight recorder for Hotspot JDK6

I am aware that Hotspot JDK7 has both Java Mission Control and flight recording bundled with it. But, as per my application requirement, I am bound to use Hotspot JDK6. I could monitor the Hotspot6 JVM performance using JMC. But flight recording is…
EmeraldTablet
  • 812
  • 3
  • 12
  • 30
0
votes
0 answers

Java groups exception JGRP000002 using hotspot jdk6

I am migrating my application from jrockit jdk6 to hotspot jdk6. While building my application using maven, one of my integration test makes the build to hang with below error message: jgroups.JGroupsCacheManagerPeerProvider,ERROR,Failed to create…
EmeraldTablet
  • 812
  • 3
  • 12
  • 30
0
votes
1 answer

Occasionally crashing JVM in Eclipse and Netbeans

Edit 18.07.2014: I have been checking notes and system setups with my colleagues who all have their Windows XP machines running and use Java 1.7 with no problems whatsoever. Therefore and because Oracle released information regarding java 7 (see:…
Christian Kullmann
  • 558
  • 1
  • 7
  • 21
0
votes
1 answer

Debug Java Application in Nuix - Attach a Profiler or Debugger

My goal is to attach a Java profiler or debugger to an instance of the Java Virtual Machine started by a Windows application called Nuix. It is possible to pass command line switches to Nuix, some of which it passes to the JVM. Nuix is packaged…
Jacob Quisenberry
  • 1,131
  • 3
  • 20
  • 48
0
votes
1 answer

JMX results are confusing

I am trying to learn JMX for the last few days and now got confuse here. I have written a simple JMX programe which is using the APIs of package java.lang.management and trying to extract the Pid, CPU time, user time. In my result I am only getting…
Rohit
  • 445
  • 2
  • 7
  • 17
0
votes
1 answer

java option Heap dump on out of memory

In Hotspot JVM 1.4.2, I used the option -XX:+HeapDumpOnOutOfMemoryError and it says unknown option. How do I get Heap Dump in this JVM. (I cannot migrate to JVM 6 as its a legacy application running here since years).
user2531191
  • 579
  • 10
  • 27
0
votes
2 answers

JVM abrupt shutdown on creating threads and doing network operation in them

This is an issue with I am trying to fix, maybe a bug in JRE please vote to reopen this question. It's very selfish approach to mark something off topic if you are not competent enough to understand some problem. Java Version java version…
AZ_
  • 21,688
  • 25
  • 143
  • 191
0
votes
0 answers

set java object array elements with MSVS2010 Assembly

I'm trying to add a new procedure to Java native methods. To do this, I download the OpenJDK 7 source code to build a new JVM that contains my procedure in Windows XP (32 bits). My problem is how to calculate the address of an element of array…
0
votes
1 answer

Java - Infinite loop terminates in an impossible manner

I have code such as below: @Override protected Void doInBackground() throws Exception { try { while(true) cpu.step(); } catch(Throwable t) { throw new RuntimeException(t); } finally { …
rationalrevolt
  • 663
  • 1
  • 6
  • 13
0
votes
1 answer

What does the JVM do after it loads the library class..?

recently I am doing an experiment on JVM and bytecode. I use these code snippets to test. import java.util.*; public class Simple { private String a =…
lllllllllllll
  • 8,519
  • 9
  • 45
  • 80
0
votes
0 answers

what is instanceHandle in hotspot jvm source code?

In the JVM hotspot source code, in file "compileBroker.cpp" line 695, it has a "instanceHandle", but I can't find its definition. Is there any Hotspot code guru who might know where its definition is?
Alexander Bird
  • 38,679
  • 42
  • 124
  • 159
0
votes
2 answers

Using accessors/getters can be faster?

Background: I am planning to port a library I have written from C++ to Java. The code deals with lists of size n of d-dimensional points and needs to compute scalar products, etc. I wanted to make my code independent of the storage format of points…
Hbf
  • 3,074
  • 3
  • 23
  • 32
0
votes
1 answer

Jprofiler- how to find out application actual rendering time of pages

In our application, there are scheduler queries running in background. While profiling the code through Jprofiler in Java EE & probes - JBDC thread selection - all thread groups aggregation level - methods thread status - all states is…
Sailp
  • 45
  • 1
  • 1
  • 6
0
votes
1 answer

Track another process by logcat in service

I am trying to listen the event when someone connect to/disconnect from my portable AP hotspot. I try this code Process p; try { p = Runtime.getRuntime().exec("logcat -s hostapd:I"); BufferedReader br = new BufferedReader(new…
jnsn
  • 13
  • 1
  • 8