Posts Tagged: Java

First Steps with Jolokia

Posted by & filed under , , .

In a (rather old) previous post I have talked about using Sun (ahem Oracle!) JMX/HTML bridge to manage and monitor your applications. As it happens, that agent has been discontinued and due to various licensing issues (I’m guessing) one can’t even download it normally from a maven repo, and has to rely on all sorts […]

java code

Of Java and Assembler

Posted by & filed under , , .

The title would no doubt puzzle quite a few of you — after all I’m putting in the same sentence a low-level, processor-specific language (for no better term for “assembler” — I know, I know, I know, “it’s not really a language”, right?) with a rather high-level, even platform-independent language like Java. So, right away […]

Perf4J and Object Creation/Destroy

Posted by & filed under , , , .

If at any point in your coding life you had to measure some component performance, chances are that you came across Perf4J at some point. To quote from their own website: Perf4J is to System.currentTimeMillis() as log4j is to System.out.println() There are of course other ways to measure timings of components execution, however, I found […]

Playing Around with Buffers

Posted by & filed under , , , .

I found myself recently using the Buffer class in the Apache Commons Collections framework — and realised that the Buffer-related classes don’t get enough coverage as they probably should, since they can actually provide out-of-the-box solutions to common development problems. So I started this little exercise partly to demonstrate some of the powerful Buffer-based classes […]

network pc monitors

(Small) Bug with Oracle’s HTML/JMX Interface

Posted by & filed under , , .

I posted before an article about how to use Oracle’s (well, Sun’s, since it was started really before the Oracle acquisition) HTML/JMX agent to monitor your apps via JMX here. For those of you who went ahead and decided to use that interface, you probably noticed a small (but rather annoying bug) in that component […]

RFC : DynamicMBean in JDK — Method getAttributes

Posted by & filed under , , .

In case you haven’t quite figured it out, the above RFC stands for Request For Clarifications in this case — as in, this post is meant to pretty much ask the tinterweb population out there if they know anything about this. (My searches so far have proved unsuccessful — though I am known to be […]

maven site Problem with Hash Symbol (#)

Posted by & filed under , .

Not sure if it’s just me who’s been digging around this issue for a while, maybe it’s common knowledge to the maven community, but I found this very frustrated dealing with this and researching it on the net, so having finally found the solution to this I thought I’d post it here. If nothing else, […]

Cache Ahead using Apache Commons Pool

Posted by & filed under , .

If you have done any code that needs some sort of pooling of resources (which is some sort of caching, let’s face it), you would have no doubt come across Apache Commons Pool. (In fact the DBCP pool is used as a standard in applications which require database connection pooling.) The framework offers most of […]