Category Archives: Java

CompressedOops and 32 GB Heaps

At work we have a Java-based service that caches a very large amount of data. I spend a lot of time optimizing performance and memory usage for this service. The amount of memory it uses at runtime to cache a sufficient amount of data for performance reasons is now reaching the the 32 GB boundary.… Read More »

Streaming ResultSets with the MySQL JDBC Driver

When you use the MySQL JDBC driver to select rows from a table, the connection will block until the entire ResultSet has been pulled over to the client. In most cases this makes sense, especially if the server is on a different host. Retrieving the entire ResultSet will minimize the number of TCP packets that… Read More »

Speaking at Mongo SV 2010

I’ve very excited to be speaking on Logging Application Behavior to MongoDB at Mongo SV 2010 in Mountain View on December 3rd. Interest in the conference has soared and 10Gen is now expecting 500 attendees. Just a week ago, they were at 300 attendees. They had to add a fourth track of talks to handle… Read More »

ScalaTest, Spec and Eclipse

A few weeks ago I decided to learn Scala in order to develop the website for my latest side project. This led me down the road of trying to learn Google App Engine/Java, Lift, Maven, Git, ScalaTest, Spec and much more, so it’s been pretty slow going. Especially due to diversions into Cassandra, MongoDB, Tokyo… Read More »

Logging SQL for Prepared Statement with C3P0

The C3P0 database connection pooling library has worked very well for me, but I recently ran into a problem when I wanted to log the SQL that was being generated for a PreparedStatement if an insert failed. Then, if database problems caused inserts to fail beyond an automated retry period, I could easily harvest the… Read More »

Eclipse 3.4.1 Launch Problem on OS X

After using the built-in self upgrade feature of Eclipse to go from 3.4 to 3.4.1, I was no longer able to launch Eclipse. Instead of the happy Ganymede splash screen, I got a poorly formatted dialog saying “The Eclipse executable launcher was unable to locate its companion shared library.” I discovered that the problem was… Read More »


I went to JavaOne last week and was once again amazed by the number of attendees. I heard someone say 15,000 people had registered. I believe it. Other programming languages like Python and Ruby might be gaining in popularity on Java, but Java is still pretty dominant. And just like last year, the queues for… Read More »

Installing the Sun JDK on Fedora 7

I’ve been meaning to try out the JPackage repository for a long time to manage the Java installations on my Fedora Linux installs at home. However, the documentation on the JPackage site is incomprehensible. I don’t see how anyone could possibly use it to install the Sun JDK for use with the JPackage repository with… Read More »