Monday, March 30, 2009

The Power of MUSIC.(One of my greatest passions)


Last saturday i thought a lot on a topic to write a blog.I was revising various topics in my mind and scavenging web sites for a catchy topic to blog on.But i did not get any.Watching a movie at night made me wake up late on sunday.
As usual sundays are studded with movies on all TV channels.I accidently happen to come across a movie that i had watched a long time ago with my parents and my sister.It was a Malayalam movie – ''Nandanam''.The concept was great and there were great songs.I was a die hard fan of every song in the movie.May be bad, but true that even after being a mallu , I have very little malayalam songs in my collection , but i can bet you that all of them i have are of great value for me.From my child hood i always liked hindi songs.Again , i was not much exposed to English songs.But I always value music as music regardless of language or singer or nationality or any other thing involved.I watched the whole movie till the end.Listeing to those songs were a great pleasure.I was feeling very nice after it.
Once more i realised that music has the power to cheer you up.It gives you immense power and refreshment to get back to work and excel.
Right from my child hood , i was a great lover of music.But after being a part of the IT department of an insurance Co.,I was moving away from my great passion in life.Lot of changes in lifestyle , lot of commitments , deadlines , preparation for graduation , self sustainance (since I am staying away from home) , filled up my days.I was occupied with many things , to such a level that i almost forgot that regularly listening to music was a great passion of mine and had accompanied me since i was a child.Its all not because of the pressures from the organisation , but
being a person who joined just after 10+2 and being a novice in an organization, coping up with things were not very easy.The organization was always good to me.Again this was the first time in my life i am staying away from my home for such a long duration.When i look at myself from a personal management perspective , i realise still there is a long path for me to travel.There are many areas like time management where i need to improve a lot.
I am sure there must be a lot of people who has come across or are coming across all these.May be thats why i thought to pen down this article.Try listening to music, give yourself entirely to it , cutting off from the world , its realities and your concerns in it for sometime regularly.You will be rejuvenated .I am sure !!

Tuesday, March 24, 2009

JVisualVM - A Java Perfomance monitoring utility



Performance is a factor of prime importance for any software. We all want the best results from the applications that we work on .Especially the ones that we deal with on a daily basis. This is possible when we and our team work keeping this aspect in mind.
Here’s a tool that can help out Java Developers to monitor the performance of their product in a very systematic manner –JvisualVM. Yes, it’s again a product from the renowned Sun Microsystems (Comes with the latest release of the Java Platform).


Double click the utility at the following location and enter a world of you might have dreamt of while programming before.

JDK_INSTALLATION_DIRECTORY/bin/jvisualvm.exe.

The welcome screen looks like this :





Fig.1 : Welcome Screen of the JVisualVM

Now when a program runs (Shown below is a swing application), its shown as illustrated below :







Fig.2. A swing application running.



Fig.3. The swing application listed with its PID.

Double click on the icon to gather a pretty good score of information regarding the application you are running. The following snaps gives you a cool walkthrough of the same(Information is classified under tabs).







Fig.4.The Overview tab.




Fig.5.The Monitor tab.






Fig.6.The Threads tab.

The Profiler:

You have CPU and Memory options under Profiler.

CPU :

On clicking the CPU option , the following details are displayed.





Fig.7.The Profiler tab.(CPU)

Memory:


The memory button gives you the following details.







Fig.8.The Profiler tab.(Memory)

Using the stop button makes the application to stop computing these details.

You can actually run this on a client reporting performance issues, and find out where exactly the application takes time. Any part of your product causing execution overheads can be found out and tuned.

These are few aspects of the utility I came across. I am too a pioneer in this, hence, request you all to share your experiences as well. Any corrections or additions can be the best possible that can come to me at this point.

I am sure that the utility will really fascinate you by its dynamic reporting ability. As and when you execute operations on the application, the utilization is reflected and the computed statistics are updated with no need for a manual refresh. You can actually turn a java doctor doing a health check of applications. These lively graphics will keep you interested.

Pretty cool ..pretty useful …

As usual …Java Rocks!!..