Comments (3)
the crash maybe be brough by the commit http://repo.or.cz/w/glibc.git/commitdiff/a0f33f996 include in the glib 1.5 and so on.
maybe we could disable the range check with select, or we switch to poll/epoll.
there is two method to disable the range check 1,-D_FORTIFY_SOURCE=0 in compiling 2,change glibc to selectively disable the range check on linux .
I use the -D_FORTIFY_SOURCE=0 then increase the rate , no crash occurred. but the concurrent connections metric looks like abnormal. i will look into it.
ref
http://www.serverphorums.com/read.php?10,680364
https://sourceware.org/ml/libc-alpha/2013-05/msg00078.html
from httperf.
Is anybody plan to fix it?
from httperf.
I think this bug arises because the compiled kernel system call source code still has "1024" in its select()
.
A better fix would be to enable connect timeout. httperf wildly assumes that the tester wants the same connect and response timeout. You can avoid the problem of running out of file descriptors by simply closing the connection and freeing up the socket if the connection takes too long to even establish (or if the server is too busy to even refuse the connection)
A connect timeout of 1 second seems reasonable enough. You can choose this value depending on what you want.
You have one of two options:
-
Change both connect and response timeout simultaneously:
httperf --timeout 1
-
If you only want to change connect timeout, then edit core.c:
UnderSYSCALL(CONNECT
, comment out the following line
if (param.timeout > 0.0)
Changetimer_schedule (conn_timeout, arg, param.timeout);
totimer_schedule (conn_timeout, arg, 1.0);
Recompile and reinstall httperf. That's it. No messing with stupid OS limits and#define
s.
Works like a charm.
Thumbs up if this helps!~
from httperf.
Related Issues (20)
- Incompatible with OpenSSL 1.1.0 HOT 2
- Error while running "autoreconf -i" HOT 5
- httperf does not support SNI
- httperf: did not recognize arg HOT 1
- Debian stretch: SSL build failure. HOT 3
- error: ‘SSL_OP_NO_TLSv1_3’ undeclared (first use in this function) HOT 3
- EXCELLENT IDEA HOT 1
- Issues with TLS
- country TLDs not supported (eg www.xxxx.co.uk) 0.9.0 brew
- Possibility to choose TLS library
- httperf: maximum number of open descriptors = 1024 HOT 2
- does not wait for page to be produced.
- Throws invalid server when sending request to wailua or any other server HOT 1
- build error HOT 2
- --add-header does not work HOT 2
- Any way to provide data for post (json body) HOT 1
- Requests in Keep-Alive connections are not ACKed correctly
- Does httperf support multiple ports?
- http-version option does not work HOT 1
- Error: undefined reference to `SSLv3_client_method' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httperf.