MySql on a RAM disk for super fast performance with the innodb storage engine

Tags: ,

In a development environment, having a super fast database can be immensely helpful. If you are not lucky enough to already have an SSD in your system, you need to make yourself a RAMDisk. I had a system with 6 gig of RAM. I allocated 500 meg for a RAM Disk. You can create one [...]

Continue reading » 2 Comments

HotSpot JVM – Client / Server VM optimization – 260ms vs 0ms!

Tags: , , , , , ,

The Sun/Oracle HotSpot Java Virtual Machine is available for use in two flavors – the Client VM and the Server VM. The VM to be used can be specified by the -server and -client switches passed when starting the JVM with the java command. The default VM when no switch is specified is the Client [...]

Continue reading » 9 Comments

Identifying a thread with high CPU usage in a Java app

Tags: , , ,

One of the threads in your app is consuming way too much CPU. Perhaps pegging a core at 100%. How do you find out which thread? Use JConsole. It comes with the JDK. But out-of-the-box, JConsole won’t provide the info we need. You will need to use it with a plugin that gathers and displays [...]

Continue reading » 9 Comments