Sunday, September 13, 2009

"On Your Left"

No, I am not going talk about ideologies in political arena, I am talking about the most spoken word by MS bike riders to the fellow rider while they are passing them on their bike. It is common courtesy to warn the fellow rider to be vigilant about his/her surroundings while they are riding.

That brings to my very exciting, exhausting ride of 150 miles in 2 beautiful days this past weekend through the rural Missiouri near Coloumbia, MO to benefit MS Society. During the ride all the good riders were either ahead of me or chasing me, and I may have collected almost all of the 5999 "on the left" messages and I am glad I did. So, thank you riders, you are the Best!

This year marks a special 25 th anniversary for MS Society and I have been riding for them for last three years in every fall season. As always they have put on great event with great route with tons of volunteers and great food & music, suffice to say it was every bit of fun (some times not! when you are riding for 5hrs on 5 inch wide seat) and it is for great cause.

But it is all possible because of people like you, who supported with your donations and encouragement. I sincerely thank all my supporters now and in the past, who has pledged a donation in supporting MS Society. Please know that every dollar you donated is carefully spent in finding the cure and spreading the awareness of MS.

Thank you again.


Team Picture

Tuesday, March 24, 2009

Teiid is now a Community Open Source Project

After what seems to be a long time after Red Hat's acquisition of MetaMatrix, we are finally ready to announce the availability of Teiid, which is next incarnation of MetaMatrix software. Today, we are announcing the first open source release of this software.

Check it out, take it for trial and let us know your suggestions and comments.


Thursday, March 5, 2009

Connecting or Attching to Local VM (Attach API)

Being spent some part of my past life developing dashboard tools for monitoring the applications in a large enterprise, I am always interested in exposing system health and metrics to external tools for monitoring. So, naturally when Java 1.5 exposed JMX beans for JVM, I was very excited. However, in my current work, we never exposed health of the system through JMX, we had our custom ways to do things and custom monitors for it.

With the latest release coming up, now that we are finally using 1.6 jre, I enabled the in-built support for JMX using these instructions. I did not think much about how JMX client is going to connect to the VM, until today my fellow developer asked, "Ramesh what is the URL for the JMX port on the VM?"

Well, I did not knew the answer, I always used either JConsole or VisualVM to connect and did not pay attention. Looking through the instructions, I see that one could expose the JMX port, so that you can connect remotely from another machine or local machine, however I did not find any default URL I could find to connect to locally to a JVM's JMX port. I did not wanted open a specific port, because once I do that, I would need to provide security mechanism tie it down, more over the agent that is polling for the stats is supposed to live on same box.

To handle the security, I could expose the port on the VM and setup a private SSL certificate between local agent and Server, but I knew some how JConsole connects to the local processes, so started investigate how it does it, then I came across "Attach API"

Attch API, is used by debuggers and profilers, to connect to a VM and inject agents into the VM and expose inner workings of the VM. Here, I just needed to find the URL for local JMX connection, then I came across this blog, which showed how to use the Attcah API to find the JMX URL, now we can dynamically resolve the JMX URL to the local VM. Problem Solved!