Compiling and building JMeter with Eclipse 3.2.x

The developer notes on how to compile and debug Jmeter with Eclipse 1 and 2 are very difficult to follow and outdated. If you are interested in modifying Jmeter using Eclipse 3.2 Callisto you can follow the following procedure: Install Subclipse Callisto release (update site: http://subclipse.tigris.org/update_1.2.x) Download optional libraries. Although they’re optional is better if you download them. mail.jar activation.jar beanshell bsf jexl Use SVN Repository Exploring and add the following repository http://svn.apache.org/repos/asf/jakarta/jmeter Navigate to tags/v2_2. Right-click on it and select Checkout. Use then New Project Wizard. Rename the the eclipse.classpath to .classpath. Delete the eclipse generated .classpath first. Change the Build Classpath. Select the project in the Package Explorer. Right-click it and select Properties~~Java Build Path~~> Source. Then uncheck Allow output folders for source folders and set the Default output folder to the <Project name>/lib/ext. Remove the exclusion patterns for images/*, etc. in the Build Path->Source Look with the Navigator (not the Package Explorer) in the lib/ext folder and see if eclipse is compiling ok. If not check the Problems view to see if the project was not built since its build path is incomplete. Probably your are missing some library. Commons-logging has to be change from commons-logging-1.1 to commons-logging. If it complains about javax.mail.MessagingException then you have to add mail.jar to the build path At startup JMeter search for classes deriving from JMeterGUIComponent or TestBean. Now the context menus are populated with items. ...

April 25, 2007

Silly Apache JMeter 2.2 bug

The JDBC Sampler always commits (it doesn’t honor the auto-commit = false parameter) http://issues.apache.org/bugzilla/show_bug.cgi?id=42018. I’ve provided a patch that solved it at Bugzilla

April 25, 2007

Enhanced JDBC Sampler code merged into Apache Jmeter

It seems that my patch to the JDBC Sampler in Apache JMeter has been finally merged into the subversion tree . I didn’t check it yet tought.

April 15, 2007

Source code for enhanced jdbc sampler released

I released the Enhanced JDBC Sampler for Apache JMeter 2.2 source code today. See the bottom of this page to find the downloadable zip and instructions.

January 17, 2007

Source code for Statistical Visualizer plugin for Apache Jmeter 2.2

I just released the source code for the other Apache Jmeter plugin that I host here. Just go to the end of this page to download the file and get instructions.

January 17, 2007

Better JMeter Graphs

If you are tired of the old “Graph Results” listener that JMeter provides and want better charts in your Jmeter test plan take a look at this JMeter plugin. This is how the old “Graph Results” look like: Click on the above image or here to see an enlarged version of the old Graph Results Checkout this new JMeter plugin that provides a new Statistical Aggregate Report listener. (see the screenshot) ...

January 2, 2007

JMeter JDBC Sampler

UPDATE2:: It seems that my bugreport has been reviewed and the patch I submitted is merged into the JMeter svn tree. I also submitted a couple of patches dealing with COMMIT behavior that also have been included into the svn tree. so I strongly advise to use the standard JDBC Sampler as it includes alll features of the Enhanced JDBC Sampler plus other corrections UPDATE: It seems that the patch has been merged with the standard JMeter source code tree as SVN r528906. I think, however, that the change it’s not present yet in the 2.2 release you need to download the Nightly Build. ...

January 2, 2007

Enhanced JDBC Sampler for Apache JMeter

I’ve moved this post to the following page. **UPDATE**: The files here will only run in JRE 1.6. I will try to provide JRE 1.5-compatible files as soon as possible. Thanks to Daniel for pointing this out. Some time ago I posted a bug report for Apache JMeter benchmarking utility (you can find my other jmeter bug reports here) . The bug report contains an enhancement of the current JDBC Sampler to allow JMeter to invoke PreparedStatements and also to change the way Callable Statements are handled to avoid performance problems when using some JDBC drivers (mainly Sybase). Because I don't know if this bug report will ever be integrated in JMeter or when. I decided to release this "Enhanced JDBC Sampler" as a JMeter plugin. The **installation** is quite simple just unzip the EnhancedJdbcSampler.zip and put the `EnhancedJdbcSampler.jar` file in the `$JMETER_HOME/lib/ext` directory. Once you restart JMeter you should see a new option under Add -> Samplers called "Enhanced JDBC Request". It works just like the old JDBC Sampler (see docs on how to use JDBC sampler here and here). The difference with the conventional JDBC Sampler is that you now have more options under *Query type* and there are two new text boxes at the bottom of the page. In the first box, you write the param values, and in the second box you write the param types. See the image below for an example. In this example there are two parameters: the literal `1` and the variable `${A}`. (In this particular case the ${A} comes from a Counter). The type of both parameters is INT. Check the list of JDBC Types.

December 14, 2006

Better JMeter Graphs

I’ve moved this post to the following location **UPDATE**: The files here will only run in JRE 1.6. I will try to provide JRE 1.5-compatible files as soon as possible. Thanks to Daniel for pointing this out. If you are tired of the old "Graph Results" listener that JMeter provides Click on the above image or here to see an enlarged version Checkout this new JMeter plugin that provides a new Statistical Aggregate Report ...

December 12, 2006

Apache JMeter bugs

I’ve been working with Apache JMeter 2.2 mainly for JDBC benchmarks and I found a couple of bugs.

October 29, 2006