Category Archives: Power Tools

Hammer Head

hammerhead

Hammer Head is a FireFox plug-in which works with Firebug and helps to run regression Browser Performance tests. This is helpful when you would like to obtain Browser performacne numbers across multiple performance runs.

click here to download and know more about Hammer Head

Leave a comment

Filed under Power Tools

DTraceToolkit

The DTraceToolkit is a collection of over 200 useful and documented DTrace scripts developed by

After downloading from this site :

  1. gunzip and tar xvf the file.
  2. cd to the toolkit directory.
  3. Run ./install. (This step is optional. You can use the toolkit without doing this.)
  4. Read the guide to find out how to get started.
  5. A list of scripts is in Docs/Contents.
  6. Enjoy!

Leave a comment

Filed under Power Tools

Memory Analyzer (MAT)

What is a Heap Dump and how to get one :

command for heap dump when starting a java application : java -Xrunhprof:format=b,file=snapshot1.hprof <Classname>

heap dump on demand :

link – http://weblogs.java.net/blog/2005/09/30/heap-dump-snapshots

reference :

Official Address : http://www.eclipse.org/mat/

Blog : http://dev.eclipse.org/blogs/memoryanalyzer/

Leave a comment

Filed under Power Tools

YourKit on Your J2EE Server

Most of us as engineers are faced with situations when the problem is not staring at our face, in fact its hiding from us ready to lash out on the JVM once its pushed to production. With the configurations we have and loads we generate in the labs we can never cover all the scenarios that are possible in production. Your Kit is your spy who can get even the trickest bugs out in the open and in front of your eyes in a cool UI. Here are the steps needed for you to set up Your Kit to profile your remote J2EE server.

Setting Up Agent in the Remote Server to be Monitored :

  • Download Linux ZIP archive distribution bundle. The Linux ZIP archive is actually a multi-platform bundle containing all necessary files for each supported platform, thus do not hesitate using it on Solaris, Windows and Mac OS X.
  • Copy the ZIP file to the remote machine and unpack to arbitrary directory. License key is NOT required to run the console version of the integration wizard. Just copy the ZIP and unpack it.
  • Run this command and follow instructions that appear: java -jar <directory with unpacked content>/lib/yjp.jar -integrate ( after you execute the command, YourKit agent will ask you few questions including the server type (Jetty, Jboss etc ) you are running, the location where your server startup script is located… etc. Once you answer these question, a copy of a YourKit version ( usually with name similar to “bin_with_yjp.sh” ) of server startup script is generated, you can copy the JVM option provided in this script and add it to your start up script.

The JVM option in the bin_with_yjp.sh usually is similar to this:

java -agentpath:/export/home/tester/youragent/yjp-8.0.18/bin/solaris-x86-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,delay=10000,sessionname=Jetty -jar start.jar

In Case of jetty you can add the underlined portion of the above line to your start up script where you provide the JVM CMD arguments: ( you can omit “sessionname=Jetty -jar start.jar“, as this might not work in most cases)

  • Note : (1) You need Java 5 or newer to run the command. (2) the integration wizard generates output files (copies of configuration files, additional startup scripts) in directories where original files locate. Please ensure that you run the command with sufficient access rights.

Monitoring from the Your Kit UI Profiler Client :

  • Download Your Kit Profiler Client from here – http://www.yourkit.com/java/profiler/index.jsp , choose based on your OS ( Note : This is the same ZIP file, but you will be installing the Profiler instead of running the jar file as we did while setting up the agent in the remote J2EE server. NOTE : The installation of clinet requires licence and is not free. You can always use the trial version)
  • Once the ZIP file is downloaded, unpack it ( in case of windows, MAC or Linux) and launch by double clicking the Executable found in the folder after unpacking)
  • When you launch the Profiler, you will see a UI with main option, click on the “Connect to the Remote Server”. This should bring up a pop up windown, which will ask you to enter the server name you want to monitor. If your remote agent is running, this will work and you can start profiling 🙂 .

Your Kit Profiler How To’s :

1 Comment

Filed under Java, Power Tools

Visual Diff Tools for Developers

Diff Merge

Diff Merge

Diff Merge is a great tool for any developer for Diffing and merging code. I have used it and found it to be in dispensable.

I would strongly recommend this tool. The company behind the tool is SourceGear, they are generous to distribute this gem for no cost to developers :). They also have other useful tools FORTRESS and VAULT, check it out at their website – @ www.sourcegear.com

Feature Highlights for time challenged :

  • Diff  Graphically shows the changes between two files. Includes intra-line highlighting and full support for editing.
  • Merge  Graphically shows the changes between 3 files. Allows automatic merging (when safe to do so) and full control over editing the resulting file.
  • Folder Diff  Performs a side-by-side comparison of 2 folders, showing which files are only present in one file or the other, as well as file pairs which are identical or different.
  • Windows Explorer Integration. Right-click on any two files in Windows Explorer to diff them immediately.
  • Configurable. Rulesets and options provide for customized appearance and behavior.
  • International. Compatible with 42 different character encodings.
  • Cross-platform. Identical feature set on Windows, Mac OS X, and Unix.

Leave a comment

Filed under Power Tools

Continous Integration (CI) & Hudson

Hudson is gaining popularity from startups to Big Blue, ( i wonder how IBM has tutorial on all topics current, and usually they are pretty good ).  I have been working on streamling build process and working with Hudson and getting to know it better. some random ramblings and notes with reference below, hope it will be helpful.

CI with Hudson – IBM Tutorial

Case Study about Hudson in Enterperise Deployment

Leave a comment

Filed under Engineering Services, Power Tools