flat assembler
Message board for the users of flat assembler.

Index > Heap > tools to stress test http server & check memory leak?

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 8904
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
how to stress test my http server and check for memory leak, is there any open source / free tools that we can use?

eg. GET /

500,000 times to see any problem?

if i loaded the server at memory usage 2MB, then after 500,000 GET / request, the memory still 2MB, does this means no memory leakage?

thank you.

btw, somebody bork the posting to forum via HTTPS, log in via https still fine
Post 01 Jan 2012, 21:34
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
yop


Last edited by typedef on 12 Oct 2013, 04:31; edited 1 time in total
Post 01 Jan 2012, 21:49
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
yop:


Last edited by typedef on 12 Oct 2013, 04:30; edited 1 time in total
Post 01 Jan 2012, 21:52
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Post 01 Jan 2012, 22:40
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8904
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
thanks LocoDelAssembly,
i tried the ab.exe on my netbook (xp home sp3) that run my iocp webserver.

through out the stress test, i watch the memory usage of my server.exe (from task manager) stable at 520K, i did ab.exe -n 1000 -c 100 http://localhost/ too, the memory of server.exe still 520K, so does it means no leaking?

Code:
D:\Apache\bin>ab.exe -n 100 -c 10 http://localhost/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
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).....done


Server Software:
Server Hostname:        localhost
Server Port:            80

Document Path:          /
Document Length:        265 bytes

Concurrency Level:      10
Time taken for tests:   10.984 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      38600 bytes
HTML transferred:       26500 bytes
Requests per second:    9.10 [#/sec] (mean)
Time per request:       1098.438 [ms] (mean)
Time per request:       109.844 [ms] (mean, across all concurrent requests)
Transfer rate:          3.43 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  109 205.0      0     500
Processing:    16  943 537.4   1000    2016
Waiting:        0  589 520.9    500    2000
Total:         16 1052 572.3   1000    2422

Percentage of the requests served within a certain time (ms)
  50%   1000
  66%   1375
  75%   1516
  80%   1516
  90%   2000
  95%   2016
  98%   2016
  99%   2422
 100%   2422 (longest request)
    
Post 01 Jan 2012, 23:20
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.