Coder Social home page Coder Social logo

Comments (3)

bushizhang avatar bushizhang commented on July 27, 2024

Same issue on Yosemite (10.10.5)

Ok so quick investigations:
in core.c there is a call that sets
rlimit.rlim_cur = rlimit.rlim_max;
but rlimit.rlim_max for me is -1 somehow and this causes
setrlimit(RLIMIT_NOFILE, &rlimit)
to fail.

I hacked it by setting rlim_cur to something manual like the same value as RLIMIT_NOFILE and it appears ok.

Any ideas why these rlimit values aren't set properly?

from httperf.

crowsonkb avatar crowsonkb commented on July 27, 2024

I manually set the number of open file descriptors in the source to 10240 (number pulled from thin air) and this issue went away for me. Any ideas on how to detect the actual maximum number of FDs on macOS?

from httperf.

jbmulligan avatar jbmulligan commented on July 27, 2024

I just ran into this issue. getrlimit is returning 0x7fffffffffffffff for the rlim_max property, and when the hard limits are displayed using the csh builtin command limit -h, the number of descriptors is printed as unlimited. So I would say that this code needs to have a special case that tests for this flag value, and then sets the value to be used to some large, but reasonable value. On my system, the current soft value is 256, I'm not sure why it can't be left there...

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.