Author Archives: kevinp

JVM Tuning – Garbage Collection

As new objects are created, they are placed in the Java Heap, and as far as a Java application programmer is concerned, that’s the end of the story. When the objects are no longer being used, they’ll magically die off … Continue reading

Posted in java | Tagged , , , , , | Leave a comment

Finally got around to publishing some code and populating my domain pages

At long last I’ve actually started adding content to the poalsoft domain web pages. I’ve even added a page to provide information on my open source endeavours! My inspiration for unleashing some open source software on the poor unsuspecting public … Continue reading

Posted in Uncategorized | Leave a comment

Useful JVM Garbage Collector Settings

Concurrent Mark-Sweep Collector This tends to give good all-round performance JVM -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC NetBeans or Eclipse -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+UseParNewGC Garbage-First Collector This gives the best all-round performance, for larger multi-core boxen. The downside is that it’s new… JVM -XX:+UnlockExperimentalVMOptions … Continue reading

Posted in java | Tagged , , , , , | Leave a comment

The dreaded printStackTrace()

Ah, the ubiquitous ex.printStackTrace(). Does this look familiar? try { // something } catch (Exception ex) { ex.printStackTrace(); } I will assume the the (ab)users of this construct are familiar with the various logging systems available, the mostĀ prevalentĀ of which are: … Continue reading

Posted in java | Tagged , , , , | Leave a comment

Twenty ten or two thousand and ten?

I’ve heard one too many people talk about the year “two thousand and ten” or “the two thousand and twelve Olympics”. It doesn’t exactly roll of the tongue, does it? Consider the following, which sound more correct: 1066: “One thousand … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment