Friday, December 24, 2010

Saturday, June 12, 2010

Monday, March 08, 2010

Saturday, January 30, 2010

JMeter & Fiddler – PUT in JMETER 2.3 does not work either

JMeter and Fiddler are excellent tools by themselves. They are good enough on what they are wrote for. In one of my project we were using JMeter to script out load test. Idea was to perform load test on our RESTful service.

Simple ah, but certain load scripts were just failing but the same time, it works from fiddler. It was necessary to see why it works in fiddler but the same construct in the JMeter fails. Thought, if I could see what is being sent by the JMeter and compare against the Fiddler, I can figure out what is wrong. So if I could proxy it through fidder I can see what is happening and figure out. Interestingly, JMeter itself can be configured to act like Proxy but did not want to explore a lot. So I did below thing. to make JMeter to send the request through Fiddler using proxy configuration.

Run the jmeter.bat/jmeter file from a command line with the following parameters:

-H [proxy server hostname or ip address]
-P [proxy server port]
-N [nonproxy hosts] (e.g. *.apache.org|localhost)
-u [username for proxy authentication - if required]
-a [password for proxy authentication - if required]

Example : jmeter –H 127.0.0.1 -P 8888 -u username -a password -N localhost

Ok did that help to solve my original problem. Yes. We were using JMeter 2.3 RC3 version of JMeter and it had bug. If the request is “PUT” then tool does supply the HTTP Request body. Hence our scripts were sending empty body in the request. This I could figure from the Fiddler. Solution was to upgrade to latest version

Wednesday, January 27, 2010

Find and remove directory in Linux

Cheeky notes to begin 2010,

find . -type d -name ".svn" -exec rm -rf {} \;

- interpret the above command as, “find all items in the current (.) directory of type directory (-type d) matching the name “.svn” and pipe the output to the exec “rm” command.

Removes all the folder named “.svn” from given directory and all subdirectory and deletes recursively.