Return-Path: Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 35918 invoked by uid 500); 14 Jul 2003 20:59:59 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: docs@cocoon.apache.org Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 35877 invoked from network); 14 Jul 2003 20:59:58 -0000 Received: from dobit2.ugent.be (HELO dobit2.rug.ac.be) (157.193.42.8) by daedalus.apache.org with SMTP; 14 Jul 2003 20:59:58 -0000 Received: from allserv.UGent.be (allserv.ugent.be [157.193.40.42]) by dobit2.rug.ac.be (8.12.8/8.12.8) with ESMTP id h6EL03l2026668 for ; Mon, 14 Jul 2003 23:00:03 +0200 (MEST) Received: from otsrv1.iic.rug.ac.be (otsrv1.iic.ugent.be [157.193.121.51]) by allserv.UGent.be (8.12.8/8.12.8) with ESMTP id h6EL03ar029782 for ; Mon, 14 Jul 2003 23:00:03 +0200 (MEST) Received: from otsrv1.iic.rug.ac.be (localhost [127.0.0.1]) by otsrv1.iic.rug.ac.be (8.11.6/8.11.6) with ESMTP id h6EL02x23428 for ; Mon, 14 Jul 2003 23:00:03 +0200 Date: Mon, 14 Jul 2003 23:00:03 +0200 Message-Id: <200307142100.h6EL02x23428@otsrv1.iic.rug.ac.be> From: stevenn@outerthought.org To: docs@cocoon.apache.org Subject: [WIKI-UPDATE] Snippets LoadTestingFlowWithJMeter Mon Jul 14 23:00:02 2003 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Page: http://wiki.cocoondev.org/Wiki.jsp?page=Snippets , version: 24 on Mon Jul 14 20:59:14 2003 by CODonovan + !Load Testing Flow With JMeter + An [example|LoadTestingFlowWithJMeter] JMeter script for testing flow with continuations. + Page: http://wiki.cocoondev.org/Wiki.jsp?page=LoadTestingFlowWithJMeter , version: 1 on Mon Jul 14 20:55:43 2003 by CODonovan New page created: + [Apache JMeter|http://jakarta.apache.org/jmeter/index.html] can be used to test performance of web sites amongst other things. + JMeter supports [Post-Processors|http://jakarta.apache.org/jmeter/usermanual/test_plan.html#postprocessors] which can be used with regular expressions to extract data from a web servers response and then used in the next request. We can use this feature to extract continuation id's enabling us to load test Flow with Continuations. + + The attached JMeter script provides an example of testing the calculator flow example. If you use cocoon.sh/cocoon.bat to run Cocoon in Jetty then the script is ready to go. Simply start Jetty (cocoon.bat/sh servlet) and JMeter. Load the script into JMeter and select Run -> Start from JMeters menu. + + The example script is setup to test the XSP version of the calculator flow, to test the Garbage version replace 'samples/flow/calc/' with 'samples/garbage/calc/' in each '* Request' elements path. + + If your test server is not on localhost port 8888 then you'll need to edit JMeter's 'HTTP Request Defaults' element to reflect this. Also, if Cocoon is not deployed on your servers root context you'll need to update all the '* Request' elements to reflect this. + + The example script was built in and has only be tested on jakarta-jmeter-1.9.RC2. For more information about using JMeter see the JMeter [User's Manual|http://jakarta.apache.org/jmeter/usermanual/index.html] + + +