Posts

Showing posts with the label software

Profiling Java Applications with Async Profiler

My first Hackernoon story was published today. The story is " Profiling Java Applications with Async Profiler " With " Async Profiler ", both system code paths and Java code paths can be profiled with the help of AsyncGetCallTrace (an internal HotSpot JVM API) and perf_events . Async profiler supports several types of profiling. For example, CPU profiling Allocation profiling Wall-clock profiling Lock profiling The Hackernoon story demonstrates few examples of using Async Profiler and generating Flame Graphs as the output.

Installing Oracle JDK 7 (Java Development Kit) on Ubuntu

There are many posts on this topic if you search on Google. This post just explains the steps I use to install JDK 7 on my laptop. Download the JDK from Oracle. The latest version as of now is Java SE 7u51. I'm on 64-bit machine, therefore I downloaded jdk-7u51-linux-x64 .tar.gz It's easy to get the tar.gz package as we just have to extract the JDK. I usually extract the JDK to /usr/lib/jvm directory. sudo mkdir -p /usr/lib/jvm cd /usr/lib/jvm/ sudo tar -xf ~/Software/jdk-7u51-linux-x64.tar.gz sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_51/bin/javac" 1 sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_51/bin/java" 1 sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/usr/lib/jvm/jdk1.7.0_51/jre/lib/amd64/libnpjp2.so" 1 sudo update-alternatives --install ...