Coder Social home page Coder Social logo

Comments (8)

beneggett avatar beneggett commented on May 16, 2024 7

Linking to the Rails issue that explains all this here: rails/rails#26158

A couple helpful commands if you're experiencing this:

See all the events that are running:

ps aux | grep fsevent_watch

See how many problems you got 😺

ps aux | grep fsevent_watch | wc -l

Kill your problems 💣

pkill -f fsevent_watch

See your machine's limit

ulimit -u

The real answer to solving for now is removing the listen gem and modifying your development.rb to not watch those directories.

from puma-dev.

goalaleo avatar goalaleo commented on May 16, 2024 4

Here's a simple fix that worked for me (running Rails 5 on OS X):

in development.rb change config.file_watcher = ActiveSupport::EventedFileUpdateChecker`` to config.file_watcher = ActiveSupport::FileUpdateChecker, and remove following gems: listenandspring-watcher-listen<- if using. From other issues it seems like the culprit might berb-fseventgem which listen` depends on.

from puma-dev.

koenpunt avatar koenpunt commented on May 16, 2024

The error has to do with the process limit set on your system. I had the same yesterday, and I think it's puma-dev in combination with Spring, which watches a lot files. Try running ps aux | grep fsevent_watch from a terminal, and see if it yields a lot of results.

from puma-dev.

koenpunt avatar koenpunt commented on May 16, 2024

The error has to do with the process limit set on your system.

I'm not saying this is a low limit, just saying it's not a puma-dev error.

from puma-dev.

paulca avatar paulca commented on May 16, 2024

👍

from puma-dev.

evanphx avatar evanphx commented on May 16, 2024

I have no clue why rails launches billions of fsevent_watch processes and we should probably report it to rails because it's a bit silly.

from puma-dev.

koenpunt avatar koenpunt commented on May 16, 2024

For reference, the same happens here: resque/resque#1483

from puma-dev.

fuzzygroup avatar fuzzygroup commented on May 16, 2024

Thank you, thank you, thank you! I'm developing a rails app along the lines of service oriented architecture and all the different pieces run as separate http processes. Developing under OSX has been horridly frustrating because I can't ever run all the pieces together.

from puma-dev.

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.