OPENSTA and ColdFusion

Download Report

Transcript OPENSTA and ColdFusion

OPENSTA and
ColdFusion
Using Open STA for load and
functional testing ColdFusion based
applications
What is Open STA
Open Source Testing Tool
 Used to be a product called Cyrano
 Written in C++, currently windows
only
 It is actually two tools the Open Sta
commander and the Open STA
gateway.

Why Use a Testing Tool
Automate tedious jobs
 Increase code quality
 Decrease time debugging
 Increase predictability
 Create real benchmarks and metrics
for planning

Open STA VS. MS WAST
Open STA is open source
 Has richer functionality
 Less issues with SSL
 Great support and development
community

How Open STA works
Commander and Gateway
 Scripts, Collectors, and Tests

Creating a Script
Create a new script name
 Setup your browser
 Record a session

Some Comments on
Creating Scripts
Try to break down your scripts to use
cases for functional testing.
Remember you can combine many
small tests into on big test.
 Get with real stakeholders for
modeling realistic tests.

Create a Collector
Collectors are just Win NT perfmon
counters.
 You need to have CF counter on in
the admin
 Model your counters in Perfmon
 Then build a collector, collector can
have any number of counters

Create a Test
Create a new test
 Add your scripts
 Add your counters
 Adjust virtual users, monitors, ramp
up time etc.
 Tests can be changed in real time!

Analytics
Open STA Analytics are virtually
nonexistent
 You need to use some other tool but
most of the time Excel should be
sufficient.

Tuning ColdFusion
JVM
 JRUN.XML
 Testing and tuning for performance

Basic JVM Settings
Basic Settings for Performance
 Heap VS. Perm
 Monitoring the JVM
 Tuning the JVM
 Getting to know the JVM

JVM Resources
More JVM and Java performance references:
 The JVM FAQ:
http://java.sun.com/docs/hotspot/PerformanceFAQ.html
 Sun Java 1.4 Performance and Scalability Guide:
http://java.sun.com/j2se/1.4/performance.guide.html.
 Sun JVM Specification
http://java.sun.com/docs/books/vmspec/2ndedition/html/VMSpecTOC.doc.html.
 Resource on Tuning CF:
http://www.bpurcell.org/blog/index.cfm?mode=entry&entry=967
 JVM STAT: http://developers.sun.com/dev/coolstuff/jvmstat/
 IBM Article on Tuning a BlueDragon CFML Site: http://www106.ibm.com/developerworks/java/library/j-perf06304/?ca=dgrlnxw07BlogFix
JRUN.XML
Services (Scheduler VS. Proxy)
 Active Threads
 Min and Max threads
 Timeout

Summary
Testing increases usability
 Increases predictability
 Lowers development cost
 Makes people happy
