Skip to content
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

Can use WatchService API instead of monitor from commons-io #188

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

macdao
Copy link

@macdao macdao commented Apr 22, 2017

the monitor from commons-io cause a high CPU usage (com.docker.hyperkit and com.docker.osxfs use 400% on a MacBook Pro) on Docker for Mac when there's 1000+ JSON files.

see docker/for-mac#82 (comment)

using Watch Service can reduce the high CPU usage (from 400% to 2%)

known issues

macdao added 6 commits April 21, 2017 23:41
…ice from Java 7

the monitor from commons-io cause a high CPU usage (com.docker.hyperkit and com.docker.osxfs use 400% on a MacBook Pro) on Docker for Mac
see docker/for-mac#82 (comment)
using Watch Service can reduce the high CPU usage (from 400% to 2%)

known issues

- Watch Service will work on pure macOS by polling (just as commons-io): http://stackoverflow.com/questions/9588737/is-java-7-watchservice-slow-for-anyone-else
- Watch Service won't work on Docker Toolbox above Win 7: https://www.virtualbox.org/ticket/10660
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

Successfully merging this pull request may close these issues.

1 participant