Coder Social home page Coder Social logo

Comments (3)

inevity avatar inevity commented on July 27, 2024 1

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.

oleynikandrey avatar oleynikandrey commented on July 27, 2024

Is anybody plan to fix it?

from httperf.

garysferrao avatar garysferrao commented on July 27, 2024

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:

  1. Change both connect and response timeout simultaneously:
    httperf --timeout 1

  2. If you only want to change connect timeout, then edit core.c:
    Under SYSCALL(CONNECT, comment out the following line
    if (param.timeout > 0.0)
    Change timer_schedule (conn_timeout, arg, param.timeout); to timer_schedule (conn_timeout, arg, 1.0);
    Recompile and reinstall httperf. That's it. No messing with stupid OS limits and #defines.

Works like a charm.
Thumbs up if this helps!~

from httperf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.