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

What's the best way to programmatically disable android wifi hotspot?

I created a test wifi hotspot app. The app essentially enables and disables wifi hotspot functionality for the android platform(tested from 2.3 to 4.1). I've noticed two issues with the app that I'm hoping to get some help with. 1)I'm unable to stop…
j03z
  • 171
  • 8
0
votes
1 answer

Eclipse and HotSpot VM: does it run / debug client or server by default?

Note: this is not a question about server or client Java applications. It's about the client and server versions of the HotSpot VM. I am currently using Eclipse 4.2 and Oracle's Java 1.7, though this applies to all versions of Java and Eclipse. If…
Andrew Mao
  • 35,740
  • 23
  • 143
  • 224
0
votes
3 answers

What's the effect of -server option for the HotSpot JVM?

I cannot find any clear documentation about the exact effect of passing the -server option when launching a sun HotSpot JVM. Can anybody sum-up what it does?
jeje
  • 3,191
  • 3
  • 26
  • 41
0
votes
3 answers

Java 7 and -XX:TraceDeoptimization

I'm trying to debug Java deoptimization, but I can't get -XX:+TraceDeoptimization to work. Do you know if it was disabled in OpenJDK 7, or maybe is not enabled in my version (7u9-2.3.4-0ubuntu1.12.04.1), or if there is some magic…
Has QUIT--Anony-Mousse
  • 76,138
  • 12
  • 138
  • 194
0
votes
3 answers

Java Condition Operators Speed vs Versions of Hotspot VM

Please consider the following java source: package com.stackoverflow; public class CondSpeed { private static final long COUNT = 1000000000; private static final long OUTER_COUNT = 15; private static long notEqOperator = 0L; private static…
Koekiebox
  • 5,793
  • 14
  • 53
  • 88
0
votes
2 answers

How to set Java Hotspot Server VM to client mode?

I've read that it's better to use 32 bit JDK on 64 bit Ubuntu so I installed jdk-7u9-linux-i586.tar.gz there with libc6-i386 installed. When I run java -version the following info is printed: java version "1.7.0_09" Java(TM) SE Runtime Environment…
Andrei Botalov
  • 20,686
  • 11
  • 89
  • 123
0
votes
1 answer

Wifi devices are not getting cleared from the hotspot list when they are disconnected from the hotspot device

I am using the following code to scan the wifi devices connected to my Hotspot enabled device. It is detecting almost all the devices, but the problem is the list is not getting refreshed when the wifi devices are disconnected from the hotspot (i.e…
Atul Panda
  • 357
  • 5
  • 20
0
votes
3 answers

Java Applet failure

I am running a Java web applet on one of my servers. For some reason a particular user cannot access it (an error text appears in place of the applet that reads "Error. Click for details"; it is not text I placed between the tags, i.e., his JRE is…
nonjavaexpert
0
votes
1 answer

How can I analyze what objects are in which generation?

I have a long-running (multiple days) application with objects that I expect to stay around for varying lengths of time before they can be garbage collected. Let's say there's four categories: Very short-lived (<1s) Alive for the duration of user…
sharakan
  • 6,821
  • 1
  • 34
  • 61
0
votes
1 answer

Does JDK 7 use non-contiguous heap?

I am aware that JDK 7 is supposed to be a merger between hotspot and jrockit and that there will not be a jrockit 1.7. (Source: https://blogs.oracle.com/henrik/entry/java_7_questions_answers) I have a project that requires the non-contiguous heap…
shawn
  • 4,063
  • 7
  • 37
  • 54
0
votes
2 answers

Java heap /pool size

When I start JVM it reserves at least {{xms}} memory, right? That means this memory is private for JVM process (it is malloced), yes? When JVM needs to increase heap at reserves (mallocs) more memory. But how much? I do not believe it reserves…
user996142
  • 2,753
  • 3
  • 29
  • 48
0
votes
2 answers

Is it possible to release memory to system with Sun JVM after GC run?

The operating system is running 10 virtual machines JVM. In fact, most do nothing - from time to time just doing a job. Each process allocates the 600MB of system memory. I know that practically up to 100 MB can be physically used. The remaining 500…
Max
  • 842
  • 5
  • 16
0
votes
2 answers

does JRockit mission control 4.1 support SUN hotspot (hot spot) JVM?

i can see some documents in Oracle site said: "JRockit Mission Control 4.1 is now available for download. It includes HotSpot support, improved Solaris support, DTrace integration, a Mac OSX port, support for Oracle Coherence and a range of new cool…
Emre He
  • 497
  • 11
  • 23
-1
votes
1 answer

Detect constructors that "should not" be used with reflection

I have the following function: @SuppressWarnings("unchecked") public static T createInstance(String className, Object... args) { try { Class clazz = Class.forName(className); Class[] parameterTypes =…
Matteo NNZ
  • 11,930
  • 12
  • 52
  • 89
-1
votes
1 answer

Why aren't Java threads both lightweight (like green threads) and multi-core capable? (backed by an internal native fixed size native thread pool)

Back in java 1.1 all threads were running on a single core (not taking advantage of machine's multiple cores/CPUs) and scheduled by JVM in user space (so called green threads). Around Java 1.2 / 1.3 (depending on the underlying OS), a change was…
morgwai
  • 2,513
  • 4
  • 25
  • 31
1 2 3
46
47