Tag Archives: jvm

Analyzing the “ecological footprint” of java algorithms

When trying to optimize algorithms implemented in java, not just cputime, and memory footprint are important, but often we are interested in the amount of generated garbage. If your service is bounded by some availability agreements having a deep knowledge … Continue reading

Posted in Benchmark, Java | Tagged , , , , | Leave a comment

IO trace generation in java: experimenting with sun.misc.IoTrace

I’ve recently checked the new features in the latest release (1.7.0_40) of Oracle’s Java SE, when I stumbled upon a new class, sun.misc.IoTrace. The source of sun.misc.IoTrace can be viewed here. Its basically and “empty” class, which does nothing, and … Continue reading

Posted in Benchmark | Tagged , , , | 5 Comments

Analysis of CVE-2013-0809

This post is about the analysis of CVE-2013-0809, a java security bug I’ve found. As it is common for java bugs, the most relevant information can be found in RedHat’s CVE database and in RedHat’s bugzilla. In this case it … Continue reading

Posted in Bugs, Security | Tagged , , , , , | 4 Comments

Debugging Java VM’s JITed code

Recently I’ve run into some misterious Java VM crashes. After narrowing down the crashing code, I’ve ended up with this POC: It must be run with -XX:CompileThreshold=100 VM option, to enable the JIT compiler to do it’s work “early”. With … Continue reading

Posted in Bugs | Tagged , , , , , , | 2 Comments