
JVMtuning:
-server -Xmx1500m -Xms1500m -Xss128k -XX:+DisableExplicitGC
E-commerceApplication DescriptionThetest models an e-commerce web site that sells items from a large inventory. It uses the
standardweb application model-view-controller design pattern for its implementation: the user
interface(that is, the view) is handled by 16 dierent JSP pages which interface with a single
mastercontrol servlet. The servlet maintains JDBC connections to the database, which serves as
themodel and handles 27 dierent queries. The JSP pages make extensive use of JSP tag
librariesand comprise almost 2000 lines of logic.
DatabaseCardinalityThedatabase contains 1000 orderable items (which have two related tables which also have a
cardinalityof 1000), 72000 customers (with two related tables), and 1.9 million orders (with two
relatedtables). Standard JDBC connections handle database connection using prepared
statementsand following standard JDBC design principles.
WorkloadArandomly-selected user performs the online shopping. The following operations were used in
theMatrix mix workload (operations were carried out with precedence of operations): Home,
AdminConrm,AdminRequest, BestSellers, BuyConrm, BuyRequest, CustomerRegistration,
NewProducts,OrderDisplay, OrderInquiry, ProductDetail, SearchRequest, SearchResults, and
ShoppingCart.
TheFaban driver was used to drive the load. Think time was chosen from a negative
exponentialdistribution. The minimum think time was 7.5 seconds, the maximum was 75
seconds.The maximum number of concurrent users that the system can support was based on
thefollowing passing criteria.
TABLE6–20 PerformanceTest PassCriteria
Transaction 90thPercentileResponse Time (Seconds)
HomeStart 3
AdminConrm 20
AdminRequest 3
BestSellers 5
BuyConrm 5
PerformanceTestsand Results
SunJavaSystem Web Server 7.0 Update 1 Performance Tuning,Sizing, and Scaling Guide •124