Skip to content

Spring app eating cpu in background #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dmitryn opened this issue Jan 30, 2014 · 2 comments
Closed

Spring app eating cpu in background #253

dmitryn opened this issue Jan 30, 2014 · 2 comments

Comments

@dmitryn
Copy link

dmitryn commented Jan 30, 2014

Hi!

Recently i noticed some strange activity happening through top. It turned out that after specs have been runned, spring app process is still active and using ~%20 cpu while nothing happens (no tests/tasks running). I have to stop the process via spring stop.

I'm using ubuntu with virtualbox.

Any tips on how to debug it?

@sjmadsen
Copy link

It may be the default method of watching for changed files, which scans the directory tree instead of using whatever change notification mechanism is provided by your operating system. See https://github.com/rails/spring#watching-files-and-directories.

@dmitryn
Copy link
Author

dmitryn commented Jan 30, 2014

@sjmadsen thanks for explanation! Switching to listen method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants