Profile your applications with Java VisualVM

Java Logo

When you need to discover what part of an application consume the more CPU or Memory, you must use a profiler to do that.
One profiler, packed by default with the Sun JDK is Java VisualVM. This profiler is really simple to use and really powerful.
VisualVM start logo
In this post, we’ll see how to install it and use it to profile an application.

Version Control with Git – Book Review

Book Review

After I had chosen to switch to Git, I thought the time has become to read a complete book on the subject to understand the concepts of Git from the base to further level.
So I chose “Version control with Git”, from Jon Loeliger
I just finished to read it, so I will try to give my impressions about this book on this post.
Version control with …

JR Virtual machines

JR Programming Language Logo

Until now, we’ve always had concurrent program working in one virtual machines, but JR provides ways to declare several virtual machines on several different physical machines. A JR Virtual Machine contains a Java Virtual Machine and a layer for the JR language. Once you created some virtual machines, you can specify where an object will be created with a variant of the new operator. …

Java SE 6 Update 21 Released

Duke Java Logo

Oracle has just released the Java SE 6 Update 21.
This version is compatible with new system configurations :

Oracle Enterprise Linux 5.5, 5.4, 4.8
Red Hat Enterprise Linux 5.5, 5.4
Oracle VM 2.2.0.0.0
Google Chrome 4.0

This version integrate the Java Hotspot VM 17.0. There is several improvements, by example in compressed object pointers, escape analysis, code cache management, Mark-Sweep and G1 garbage collection algorithms. You can enable G1 …

Modular Java – Book Review

Book Review

Some weeks ago, I finished “Modular Java – Creating Flexible Applications With OSGi and Spring”, it’s time to do a little review now.
Modular Java

Rendezvous, concurrency method, in JR

JR Programming Language Logo

In this post, we’ll see a new feature of JR : the rendezvous.
Like asynchronous message passing, this synchronization method involves two processes : a caller and a receiver. But this time, the invocation is synchronous, the caller delays until the operation completes. The rendezvous does not create a new thread to the receiver. The receiver must invoke an input statement (the implementation of rendezvous) …

Tip : Integrate Play Framework in IntelliJ Idea

IntelliJ Idea

After created a Play Framework first application, it’s time to integrate it in IntelliJ Idea.
This is made really easy because, play provide a command to create the Iml module file for the project. You can use the command play idealize app_name to create a iml module file.

Tip Replace an old copyright by a new one

Today, I searched a tool to replace the old copyright of the GNU GPL V3 license by the copyright of the Apache License 2.0. But I’ve not found a simple tool to do a multi-line replacement in a complete set of files. So like the developer I’m, I decided to do it myself. And because it can be useful to someone else and because …

Getting started with Play Framework

Play Framework Logo

It’s time for me to test the Play Framework and I’ll try to make some posts during my tests about this web framework.
Play Framework is a framework to create web applications in Java. The main goals of this framework are (according to the official site) :

Hot reload : You can edit your java files and html files and you just have to …

Tip : How to solve “agent admitted failure to sign using the key” error ?

A very simple tip that can save a lot of time.
When i wanted to do a git clone, I had the given error :
Agent admitted failure to sign using the key.
Permission denied (publickey).
I found that this is an SSH error. It’s really easy to solve, just logout and login, and all will work perfectly