Commit de7e390c78bdc7bff8a32b6394205fdeedfa0245
1 parent
228b1d0d
found the file handle lost...made a first workaround and added an todo.
Showing
3 changed files
with
69 additions
and
1 deletions
1 | +2012-02-08 11:52:30 +0100 Georg Hopp | ||
2 | + | ||
3 | + * found the file handle lost...made a first workaround and added an todo. (HEAD, master) | ||
4 | + | ||
1 | 2012-02-08 10:21:04 +0100 Georg Hopp | 5 | 2012-02-08 10:21:04 +0100 Georg Hopp |
2 | 6 | ||
3 | - * changed request handling. @TODO: I still seem to have the problem that the file handles are not closed and freed correctly as the service refuses connections after about a 1000. (HEAD, master) | 7 | + * changed request handling. @TODO: I still seem to have the problem that the file handles are not closed and freed correctly as the service refuses connections after about a 1000. |
4 | 8 | ||
5 | 2012-02-07 14:20:00 +0100 Georg Hopp | 9 | 2012-02-07 14:20:00 +0100 Georg Hopp |
6 | 10 |
doc/ab-stress-2012-02-08.txt
0 → 100644
1 | +This is ApacheBench, Version 2.3 <$Revision: 655654 $> | ||
2 | +Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | ||
3 | +Licensed to The Apache Software Foundation, http://www.apache.org/ | ||
4 | + | ||
5 | +Benchmarking localhost (be patient) | ||
6 | +Completed 200000 requests | ||
7 | +Completed 400000 requests | ||
8 | +Completed 600000 requests | ||
9 | +Completed 800000 requests | ||
10 | +Completed 1000000 requests | ||
11 | +Completed 1200000 requests | ||
12 | +Completed 1400000 requests | ||
13 | +Completed 1600000 requests | ||
14 | +Completed 1800000 requests | ||
15 | +Completed 2000000 requests | ||
16 | +Finished 2000000 requests | ||
17 | + | ||
18 | + | ||
19 | +Server Software: testserver | ||
20 | +Server Hostname: localhost | ||
21 | +Server Port: 11212 | ||
22 | + | ||
23 | +Document Path: / | ||
24 | +Document Length: 322 bytes | ||
25 | + | ||
26 | +Concurrency Level: 100 | ||
27 | +Time taken for tests: 250.130 seconds | ||
28 | +Complete requests: 2000000 | ||
29 | +Failed requests: 0 | ||
30 | +Write errors: 0 | ||
31 | +Non-2xx responses: 2000003 | ||
32 | +Total transferred: 902001353 bytes | ||
33 | +HTML transferred: 644000966 bytes | ||
34 | +Requests per second: 7995.86 [#/sec] (mean) | ||
35 | +Time per request: 12.506 [ms] (mean) | ||
36 | +Time per request: 0.125 [ms] (mean, across all concurrent requests) | ||
37 | +Transfer rate: 3521.62 [Kbytes/sec] received | ||
38 | + | ||
39 | +Connection Times (ms) | ||
40 | + min mean[+/-sd] median max | ||
41 | +Connect: 0 5 1.8 5 23 | ||
42 | +Processing: 3 7 1.9 7 29 | ||
43 | +Waiting: 1 6 1.7 5 23 | ||
44 | +Total: 8 12 2.3 12 36 | ||
45 | + | ||
46 | +Percentage of the requests served within a certain time (ms) | ||
47 | + 50% 12 | ||
48 | + 66% 13 | ||
49 | + 75% 13 | ||
50 | + 80% 14 | ||
51 | + 90% 15 | ||
52 | + 95% 17 | ||
53 | + 98% 19 | ||
54 | + 99% 22 | ||
55 | + 100% 36 (longest request) | ||
56 | + |
@@ -13,7 +13,15 @@ socketAccept(Sock this, char remoteAddr[16]) | @@ -13,7 +13,15 @@ socketAccept(Sock this, char remoteAddr[16]) | ||
13 | /* Set the size of the in-out parameter */ | 13 | /* Set the size of the in-out parameter */ |
14 | len = sizeof(this->addr); | 14 | len = sizeof(this->addr); |
15 | 15 | ||
16 | + /** | ||
17 | + * @TODO: Uhh, this is bad. we open a new socket additionally to | ||
18 | + * the one we get from the accept call. | ||
19 | + * i have to change the socket constructor to be able to create | ||
20 | + * the data structure without creation of a socket at all. | ||
21 | + * For now i simply close the socket here.... :D | ||
22 | + */ | ||
16 | sock = new(Sock, this->log, this->port); | 23 | sock = new(Sock, this->log, this->port); |
24 | + close(sock->handle); | ||
17 | /** | 25 | /** |
18 | * @TODO: change port to remote port on success | 26 | * @TODO: change port to remote port on success |
19 | */ | 27 | */ |
Please
register
or
login
to post a comment