jvm

Sun JVMs JIT compiler in comparison to others

Are there any benchmarks or technical comparisons about the different approaches which compare Sun's JVM JIT compiler to LuaJIT2 or the LLVM JIT? For example, a possible framework to compare different JIT engines was presented here. Of course there are many possible ways you can benchmark different JIT compilers. Are there any results? ...

Sun JVMs memory allocator compared to others

How does Sun JVMs memory allocator (here and here) compares to glibcs malloc (a modified ptmalloc2) or jemalloc? For example, a good article which discusses the benefits of jemalloc in comparison to the old phkmalloc implementation (the earlier default in FreeBSD) can be found in the initial presentation of jemalloc. Common problems of ...

what functions are included in a JVM

What are the functions of the JVM? All I know are: JIT compiler GC memory allocator What are the steps it does when you load a Java application? I am wondering because if I compare the loading time of a Java application with these steps: InitializeNativeTarget on LLVM some GC initialization some Qt/GTK/whatever init some JIT/ahead...

Exception Access Violation Java??

I'm currently writing a JNI project where I'm getting the following error log when trying to run my Java code. It tells me that the problematic frame is a jvm.dll one, and in trying to isolate the problem, I'm trying to work out where exactly my problem is (in the JVM vs. my native code) I've attached the thread section of the log, and c...

Resolving a Maven dependency differently if the JVM in use is x86 or x64?

Hi, I have a Maven repository set up to host some dlls, but I need my Maven projects to download different dlls depending on whether the JVM in use is x86 or x64. So for example, on a computer running an x86 version of the JVM I need ABC.dll to be downloaded from the repository as a dependency, but on another computer running an x64 ve...

How can I web app poll a queue continously? or does it have to be another service?

If I use a queue in my web application (spring), can I do: while(..) { } To response to new items added to a queue, or does this have to be a seperate service that runs on the server? i.e. this can't be sustained in a web application correct? ...

Looking for a JVM language without the cruft, should I pick Scala, Groovy, or something else?

I've been programming in Java for the last few years, but due to disappointment with the current state of the language I'd like to switch to another JVM language with all the goodies of dynamic languages and features like closures, etc. I've looked around and Scala and Groovy seem the most popular choices. Am I missing other good languag...

How to calculate (and specify) the total memory space allowed for java process?

I have a system which cannot provide more than 1.5 Gb for Java process. Thus i need an exact way to specify java process settings, including all memory kinds inside java and possible fork. One specific java process and system to illustrate my problem: My current environment is java 1.6.0_18 under Ubuntu Linux 9.10. I start large java...

Why do you need to specify the Java heap size?

I have always wondered, why does Java require you set the heap size manually? I was under the impression that programs written in other languages would just allocate as much memory as needed as the program run until the OS could allocate no more. In the Java world we need to set the heap, stack, and permgen size. While this is simple ...

Is possible to have 2 child threads with different classpath in each one ?

Hello, I have a "core" application that is adapter to process task. Each task is implemented in an adapter load by the core to process the task. My question is, is it possible to have different classpath in each adapter to precent class/jar conflict between adapters. Regards, ...

Can you host a Java swing app inside a WPF app?

I suppose the question I'm asking is it possible to host a JVM inside a WPF application? WPF = Windows Presentation Foundation Found this so far: http://www.jnbridge.com/jnbp-examples.htm ...

What does the future look like for Java Applets?

In the past, java applets were unreliable, due to the Microsoft/Sun JVM split. Flash took over, and Java applets became known for browser crashes and performance issues. Now that the JVM is enjoying resurgence as a platform for dynamic languages like Clojure and Scala, what is the current and future outlook for the JVM for in-browser ap...

What versions of java are slow for gc logging?

I've been told by my company's support team that some versions of java have a significant performance impact when we turn on -verbose:gc. However I can't figure out if this is the case or not. Was this logging slow(ish) at some point, and when did it stop? The reason I ask is that there's some hesitation about applying this to a produ...

JVM and Memory Usage - JRun server not using full PSPermGen allocation?

Hi there I'm trying to understand why out ColdFusion 9 (JRun) server is throwing the following error: java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space? The JVM arguments are as follows: -server -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC - I had jconsole runni...

DalvikVM Vs JavaVM in Android?

Hi Folks, In General, Android runs the each App as a seperate process in Dalvik Vm. I got this from the Doc. But i can not understand what is the main reason to go to Dalvik VM for Android. What are the Advantages it has than Java VM. Share your Knowledge. It helps. Thanks in Advance. ...

Scala classes in clojure

Hi It's just a stupid question that I had this morning : Can we use Scala classes from clojure ? Because if the answer is yes, I'll definetly learn Clojure ^^ ...

JVM fails to allocate XMS under Suse SLES10 X64 running on VMWare ESX

I am trying to allocate ram with xms = xmx on a sles10 x64 running under VMware. When stopping the JVM the following error is thrown: Java HotSpot(TM) 64-Bit Server VM warning: Failed to reserve shared memory (errno = 12). The RAM of the VM is 8 GB and they are reserved. The VM sees 8GB and it can be allocated during runtime via the...

Why not get rid of JVM?

The JIT compiler has been around for some time. Occasionally it comes to my mind that, "hey, why not just compile Java source file directly to machine code?" Along with compiled library, we can get rid of the cumbersome JVM. The only barrier I can think of is the garbage collector. How's your thoughts? PS: Oh, you say portability? WT...

Retrofitting void methods to return its argument to facilitate fluency: breaking change?

"API design is like sex: make one mistake and support it for the rest of your life" (Josh Bloch on twitter) There are many design mistakes in the Java library. Stack extends Vector (discussion), and we can't fix that without causing breakage. We can try to deprecate Integer.getInteger (discussion), but it's probably going to stay ar...

Java application crash when uses icepdf library

In my application I use the library icepdf. when you create a class of applications is broken and creates a log file. Help in solving problems Log file: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d034bee, pid=3304, tid=3364 # # JRE version: 6.0_21-b07 # Jav...