hotspot

Java Condition Operators Speed vs Versions of Hotspot VM

Hi, 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 long notOperator = 0L; private static long equalsFalse = 0L; public CondSpeed() { ...

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

Hi all, 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? ...

Developing a Hotspot billing system

Hello guys, My current project requires me to design a hotspot billing system whereby users connect to the wireless network and when they try to browse, they are prompted to enter their access code after which they will be allowed to browse for an allocated time. Now, the challenge is, i do not know hwere to start from. Any advise fro...

Invalid access of stack red zone from Java VM

I'm trying to figure out what can cause this error in Java: Invalid access of stack red zone 0x115ee0ed0 rip=0x114973900 Has anyone ever encountered this error message? It's literally killing the JVM and everything stops there. I'm currently using this version of Java:(on OS X 10.6) java version "1.6.0_15" Java(TM) SE Runtime Envir...

Limitations to modifying rt.jar

What are the limitations when modifying classes in rt.jar. I realize this is generally specific to the version and vendor of the JRE. I've found that Hotspot in the Sun 1.6 VM, for instance, doesn't like if you add fields to java.lang.Object as it has hard-coded assumptions about the size of Object. However, if I modify significant po...

Read Java JVM startup parameters (eg -Xmx)

I'm trying to figure out if there's a way to determine the JVM startup properties from within a running java process. Specifically I'm trying to find out where parameters such as -Xmx (max heap size) and -XX:MaxPermSize are stored. I'm running Sun's 1.6 jvm. If you're wondering why I want to do this, I have a number of JVM webservers ...

How can I see the code that HotSpot generates after optimizing?

I'd like to have a better understanding of what optimizations HotSpot might generate for my Java code at run time. Is there a way to see the optimized code that HotSpot is using after it's been running for a while? ...

Optimizing the creation of objects inside loops

Which of the following would be more optimal on a Java 6 HotSpot VM? final Map<Foo,Bar> map = new HashMap<Foo,Bar>(someNotSoLargeNumber); for (int i = 0; i < someLargeNumber; i++) { doSomethingWithMap(map); map.clear(); } or final int someNotSoLargeNumber = ...; for (int i = 0; i < someLargeNumber; i++) { final Map<Foo,Bar>...

Allocation latency seems high, why?

I have a (java) application that runs in a low latency environment, it typically processes instructions in ~600micros (+/- 100). Naturally as we've moved further into the microsecond space the things you see that cost latency change and right now we've noticed that 2/3 of that time is spent in the allocation of the 2 core domain objects...

Java HotSpot error

Curious if anyone could help out in regards to a Java HotSpot dump...saw some reference to head over to the Sun Forums, figured I would try here first...below is the dump... # # An unexpected error has been detected by Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d8c8f23, pid=2836, tid=5980 # # Java VM...

What do -XX:-PrintGC and XX:-PrintGCDetails flags do?

I found the JVM flags here. Is there a more detailed explaination of what exactly they do? ...

execute new java code in existing jvm process

I have a java process currently running under a windows shell. One of the threads responsible for serialisation is blocked indefinitely and as a result important information which is stored in memory is no longer being written to disk. If I shutdown the process, the information will be lost. It would be convenient if I could write and...

How to create clickable map for iPhone

Since the iPhone doesn't support Flash (thank God. Waiting for HTML5 universe!), how do you create clickable maps with hotspots or zones that change colour with a mouseover event? Like this Flash mp here. http://www.usflashmap.com/samples/real-estate-map/index_ext.html Thanks ...

What are the differences in JIT between Java and .Net

I know Microsoft .NET uses the CLR as a JIT compiler while Java has the Hotspot. What Are the differences between them? ...

Making only part of an image a hot spot link.

I have a large image and only want a rectangle portion of it to be a hot spot link that goes "Home". Here is my code that is not working. Any help on what I am missing or have done wrong? Thanks! <div id="defaultPic" runat="server"> <img src="Images/boardwise-home.jpg" alt="Boardwise Home" usemap="#map" /> <map name=...

create an hotspot and set an image without background (like earth icon) to my panel

Hi I try to create a hotspot by Extends of canvas and I try to add it on a panel which is painted by images. So I must draw an icon (image) instead of clear rectangle of the screen. To do that I override the paint method to draw the icon I want to use. So far there is no problem; the hotspot works correctly and the icon is painted i...

What can cause my code to run slower when the server JIT is activated?

I am doing some optimizations on an MPEG decoder. To ensure my optimizations aren't breaking anything I have a test suite that benchmarks the entire codebase (both optimized and original) as well as verifying that they both produce identical results (basically just feeding a couple of different streams through the decoder and crc32 the o...

Java execution details in System.out

As I remember there is a magic command line option in Java that turn on writing of operations that are currently executed to console. The output was looked like byte code. -verbose does not match as it prints only class loading, while this option outputs information like memory allocation, setting local variables etc. It was very detai...

Captive portal with TekRADIUS + DDWRT + Chillispot?

I need to set up my router (DD-WRT firmware installed on it) to redirect users to a web application that authenticates them. I still haven't understood very well the entire process. I've installed TekRADIUS and a PHP application called hotspotlogin.php but not sure how to integrate DD-WRT, TekRADIUS and the PHP application. I intend to r...

Android 2.2 wifi hotspot API

What is the API call I need to make in Android 2.2 (Froyo) to create a Wifi hotspot (as seen in the Tethering and Portable Hotspot settings item). ...