"ab -p" postfile's size can't be 17K?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone:
 
I am using ab to do a posting form-data performance test. "ab -p postfile File containing data to POST", i set two files into this option. The first file size is 8.3K, "ab -p" works well. But the second file size is 17K, "ab -p" throws "apr_poll: The timeout specified has expired (70007)".
 
By the way "curl -F 'upfile=@...'" can post 628K file successfully.  I can't find the reason. Why this happen? Does anyone know?
 
Linux T-excute01 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
 
ok.postdata size is 8.3K===================================================
ab -c 1 -n 1 -p 'ok.postdata' -H 'Expect: 100-continue' ...    
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking stats.browser.aliyun.com (be patient).....done

Server Software:        nginx/1.0.6
Concurrency Level:      1
Time taken for tests:   0.9032 seconds
Complete requests:      1
Failed requests:        0
Write errors:           0
Total transferred:      155 bytes
Total POSTed:           8692
HTML transferred:       0 bytes
Requests per second:    110.72 [#/sec] (mean)
Time per request:       9.032 [ms] (mean)
Time per request:       9.032 [ms] (mean, across all concurrent requests)
Transfer rate:          0.00 [Kbytes/sec] received
                        939.80 kb/s sent
                        956.56 kb/s total
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        1    1   0.0      1       1
Processing:     7    7   0.0      7       7
Waiting:        6    6   0.0      6       6
Total:          8    8   0.0      8       8
 
fail.postdata size is 17k===================================================
ab -c 1 -n 1 -p 'fail.postdata' -H 'Expect: 100-continue' ...
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking stats.browser.aliyun.com (be patient)...apr_poll: The timeout specified has expired (70007)

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux