[root@largeb bin]# ls ab apr-1-config archive dbmmanage glassfish-reconf.txt htdigest httxt2dbm rotatelogs tmp.txt ab.orig apu-1-config ByteDownload.java envvars htcacheclean htpasswd large.jpg runab.sh tomcat.gif apachectl apxs checkgid envvars-std htdbm httpd logresolve test.log tomcat.gif.1 [root@largeb bin]# cat glassfish-reconf.txt Script started on Mon 12 Mar 2007 08:53:44 AM PDT [root@largeb bin]# ./ab -c 1000 -n 1000000 -k -r "http://localhost:8086/load/bd?size=64&split=8&flush=true" & [1] 22414 [root@largeb bin]# This is ApacheBench, Version 2.3 <$Revision: 420983 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient) netstat -na |grep ESTABLISHED |grep 8086 | wc -l 2000 [root@largeb bin]# date && netstat -na |grep ESTABLISHED |grep 8086 | wc -l Mon Mar 12 08:55:10 PDT 2007 2000 [root@largeb bin]# Completed 100000 requests Completed 200000 requests Completed 300000 requests Completed 400000 requests Completed 500000 requests Completed 600000 requests Completed 700000 requests Completed 800000 requests Completed 900000 requests Finished 1000000 requests Server Software: Sun Server Hostname: localhost Server Port: 8086 Document Path: /load/bd?size=64&split=8&flush=true Document Length: 65536 bytes Concurrency Level: 1000 Time taken for tests: 299.691710 seconds Complete requests: 1000000 Failed requests: 0 Write errors: 0 Keep-Alive requests: 1000000 Total transferred: 65770353220 bytes HTML transferred: 65567190008 bytes Requests per second: 3336.76 [#/sec] (mean) Time per request: 299.692 [ms] (mean) Time per request: 0.300 [ms] (mean, across all concurrent requests) Transfer rate: 214316.44 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 3 121.4 0 9037 Processing: 37 295 60.4 294 5180 Waiting: 10 67 47.2 60 2089 Total: 37 299 143.9 294 9897 Percentage of the requests served within a certain time (ms) 50% 294 66% 311 75% 323 80% 330 90% 356 95% 384 98% 429 99% 487 100% 9897 (longest request) [1]+ Done ./ab -c 1000 -n 1000000 -k -r "http://localhost:8086/load/bd?size=64&split=8&flush=true" [root@largeb bin]# date && ./ab -c 1000 -n 1000000 -k -r "http://localhost:8086/load/bd?size=256" & [1] 22583 [root@largeb bin]# Mon Mar 12 09:07:58 PDT 2007 This is ApacheBench, Version 2.3 <$Revision: 420983 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient) netstat -na |grep ESTABLISHED |grep 8086 | wc -l 2000 [root@largeb bin]# netstat -na |grep ESTABLISHED |grep 8086 | wc -l 2000 [root@largeb bin]# date && netstat -na |grep ESTABLISHED |grep 8086 | wc -l Mon Mar 12 09:09:28 PDT 2007 2000 [root@largeb bin]# Completed 100000 requests Completed 200000 requests Completed 300000 requests Completed 400000 requests Completed 500000 requests Completed 600000 requests Completed 700000 requests Completed 800000 requests Completed 900000 requests Finished 1000000 requests Server Software: Sun Server Hostname: localhost Server Port: 8086 Document Path: /load/bd?size=256 Document Length: 262144 bytes Concurrency Level: 1000 Time taken for tests: 1174.375373 seconds Complete requests: 1000000 Failed requests: 0 Write errors: 0 Keep-Alive requests: 1000000 Total transferred: 262381900332 bytes HTML transferred: 262177854024 bytes Requests per second: 851.52 [#/sec] (mean) Time per request: 1174.375 [ms] (mean) Time per request: 1.174 [ms] (mean, across all concurrent requests) Transfer rate: 218186.05 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 3 160.3 0 9012 Processing: 67 1169 80.7 1142 1953 Waiting: 16 912 48.7 915 1332 Total: 102 1173 178.8 1142 10965 Percentage of the requests served within a certain time (ms) 50% 1142 66% 1228 75% 1243 80% 1249 90% 1263 95% 1273 98% 1285 99% 1294 100% 10965 (longest request) [1]+ Done date && ./ab -c 1000 -n 1000000 -k -r "http://localhost:8086/load/bd?size=256" [root@largeb bin]# ./ab -c 4000 -n 1000000 -k -r "http://localhost:8086/load/bd?size=64&split=8&flush=true" & [1] 22618 [root@largeb bin]# This is ApacheBench, Version 2.3 <$Revision: 420983 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient) [root@largeb bin]# date && netstat -na |grep ESTABLISHED |grep 8086 | wc -l Mon Mar 12 09:35:01 PDT 2007 2573 [root@largeb bin]# date && netstat -na |grep ESTABLISHED |grep 8086 | wc -l Mon Mar 12 09:35:09 PDT 2007 3468 [root@largeb bin]# Completed 100000 requests Completed 200000 requests [root@largeb bin]# date && netstat -na |grep ESTABLISHED |grep 8086 | wc -l Mon Mar 12 09:36:15 PDT 2007 7892 [root@largeb bin]# Completed 300000 requests Completed 400000 requests Completed 500000 requests Completed 600000 requests Completed 700000 requests [root@largeb bin]# date && netstat -na |grep ESTABLISHED |grep 8086 | wc -l Mon Mar 12 09:38:43 PDT 2007 8000 [root@largeb bin]# Completed 800000 requests Completed 900000 requests Finished 1000000 requests Server Software: Sun Server Hostname: localhost Server Port: 8086 Document Path: /load/bd?size=64&split=8&flush=true Document Length: 65536 bytes Concurrency Level: 4000 Time taken for tests: 291.392664 seconds Complete requests: 1000000 Failed requests: 0 Write errors: 0 Keep-Alive requests: 1000000 Total transferred: 65908873359 bytes HTML transferred: 65705118808 bytes Requests per second: 3431.80 [#/sec] (mean) Time per request: 1165.571 [ms] (mean) Time per request: 0.291 [ms] (mean, across all concurrent requests) Transfer rate: 220884.55 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 65 1517.4 0 93093 Processing: 180 1096 321.1 1116 14425 Waiting: 14 193 277.5 174 13313 Total: 196 1161 1648.2 1116 95209 Percentage of the requests served within a certain time (ms) 50% 1116 66% 1163 75% 1197 80% 1219 90% 1280 95% 1336 98% 1414 99% 1472 100% 95209 (longest request) [1]+ Done ./ab -c 4000 -n 1000000 -k -r "http://localhost:8086/load/bd?size=64&split=8&flush=true" [root@largeb bin]# /root/fhanik/glassfish/bin/asadmin stop-domain domain1 Domain domain1 stopped. [root@largeb bin]# ps -ef |grep java root 22670 22385 0 09:42 pts/1 00:00:00 grep java [root@largeb bin]# /root/fhanik/glassfish/bin/asadmin start-domain domain1 Starting Domain domain1, please wait. Log redirected to /root/fhanik/glassfish/domains/domain1/logs/server.log. Redirecting output to /root/fhanik/glassfish/domains/domain1/logs/server.log Domain domain1 is ready to receive client requests. Additional services are being started in background. Domain [domain1] is running [Sun Java System Application Server 9.1 (build b37-rc)] with its configuration and logs at: [/root/fhani k/glassfish/domains]. Admin Console is available at [http://localhost:4848]. Use the same port [4848] for "asadmin" commands. User web applications are available at these URLs: [http://localhost:8086 https://localhost:8181 ]. Following web-contexts are available: [/web1 /__wstx-services load ]. Standard JMX Clients (like JConsole) can connect to JMXServiceURL: [service:jmx:rmi:///jndi/rmi://largeb.sfo.covalent.net:8686/jmxrmi] for domain management purposes. Domain listens on at least following ports for connections: [8086 8181 4848 3700 3820 3920 8686 ]. Domain does not support application server clusters and other standalone instances. [root@largeb bin]# ps -ef |grep java root 22684 1 77 09:42 pts/1 00:00:30 /root/fhanik/jdk1.6.0/jre/../bin/java -server -Xmx512m -XX:+CMSPermGenSweepingEnable d -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:MinHeapFreeRatio=5 -XX:NewRatio=2 -XX:+HeapDumpOnOutOfMemoryError -Dcom.sun.aas.defau ltLogFile=/root/fhanik/glassfish/domains/domain1/logs/se root 22778 22385 0 09:42 pts/1 00:00:00 grep java [root@largeb bin]# ./ab -c 8000 -n 1000000 -k -r "http://localhost:8086/load/bd?size=64&split=8&flush=true" & [1] 22779 [root@largeb bin]# This is ApacheBench, Version 2.3 <$Revision: 420983 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient) [root@largeb bin]# date && netstat -na |grep ESTABLISHED |grep 8086 | wc -l Mon Mar 12 09:43:03 PDT 2007 3395 [root@largeb bin]# [root@largeb bin]# [root@largeb bin]# [root@largeb bin]# Completed 100000 requests Completed 200000 requests Completed 300000 requests [root@largeb bin]# date && netstat -na |grep ESTABLISHED |grep 8086 | wc -l Mon Mar 12 09:44:53 PDT 2007 11306 [root@largeb bin]# Completed 400000 requests Completed 500000 requests Completed 600000 requests [root@largeb bin]# date && netstat -na |grep ESTABLISHED |grep 8086 | wc -l Mon Mar 12 09:46:25 PDT 2007 13681 [root@largeb bin]# Completed 700000 requests Completed 800000 requests Completed 900000 requests Finished 1000000 requests Server Software: Sun Server Hostname: localhost Server Port: 8086 Document Path: /load/bd?size=64&split=8&flush=true Document Length: 65536 bytes Concurrency Level: 8000 Time taken for tests: 320.818171 seconds Complete requests: 1000000 Failed requests: 2347 (Connect: 2347, Send: 0, Receive: 0, Length: 0, Exceptions: 0) Write errors: 0 Keep-Alive requests: 997653 Total transferred: 65864143718 bytes HTML transferred: 65660225984 bytes Requests per second: 3117.03 [#/sec] (mean) Time per request: 2566.545 [ms] (mean) Time per request: 0.321 [ms] (mean, across all concurrent requests) Transfer rate: 200488.80 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 200 3490.3 0 97594 Processing: 413 2355 9170.3 1843 189511 Waiting: 0 349 1283.6 262 87351 Total: 470 2555 9908.7 1844 189511 Percentage of the requests served within a certain time (ms) 50% 1844 66% 2151 75% 2304 80% 2363 90% 2480 95% 2598 98% 2743 99% 2936 100% 189511 (longest request) [1]+ Done ./ab -c 8000 -n 1000000 -k -r "http://localhost:8086/load/bd?size=64&split=8&flush=true" [root@largeb bin]# /root/fhanik/glassfish/bin/asadmin stop-domain domain1 Domain domain1 stopped. [root@largeb bin]# ps -ef |grep java root 22980 22385 0 09:53 pts/1 00:00:00 grep java [root@largeb bin]# /root/fhanik/glassfish/bin/asadmin start-domain domain1 Starting Domain domain1, please wait. Log redirected to /root/fhanik/glassfish/domains/domain1/logs/server.log. Redirecting output to /root/fhanik/glassfish/domains/domain1/logs/server.log Domain domain1 is ready to receive client requests. Additional services are being started in background. Domain [domain1] is running [Sun Java System Application Server 9.1 (build b37-rc)] with its configuration and logs at: [/root/fhani k/glassfish/domains]. Admin Console is available at [http://localhost:4848]. Use the same port [4848] for "asadmin" commands. User web applications are available at these URLs: [http://localhost:8086 https://localhost:8181 ]. Following web-contexts are available: [/web1 /__wstx-services load ]. Standard JMX Clients (like JConsole) can connect to JMXServiceURL: [service:jmx:rmi:///jndi/rmi://largeb.sfo.covalent.net:8686/jmxrmi] for domain management purposes. Domain listens on at least following ports for connections: [8086 8181 4848 3700 3820 3920 8686 ]. Domain does not support application server clusters and other standalone instances. [root@largeb bin]# ./ab -c 8000 -n 1000000 -k -r "http://localhost:8086/load/bd?size=64&split=8&flush=true" & [root@largeb bin]# /root/fhanik/glassfish/bin/asadmin stop-domain domain1 Domain domain1 stopped. [root@largeb bin]# exit Script done on Mon 12 Mar 2007 09:55:36 AM PDT