-
Notifications
You must be signed in to change notification settings - Fork 17
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
CPU runaway using -f
option
#20
Comments
Follow-up: I installed via easy_install instead but still got 150% CPU on my Docker process in OSX. So it turns out it's the MONGO process that get's heavy CPU usage only when tailing it with this tool. (I'm running this Mongo within Docker too) Still don't know how to debug this well… |
Hello @hedefalk , Yes, you are alright, some times when you execute the Mongotail with the |
As I said, I experimented the same issue in the past. Now I'm trying to reproduce again but tailing with the My test environment:
|
MongoDB: 3.2.12 PyMongo, not a clue? OSX 10.12.4. But MongoDB running from official docker image which is debian:jessie I think. I get this behaviour running mongotail as docker image too so should be pretty non-system dependent? |
To se the mongotail version:
To see the PyMongo version:
Both versions are not specified in the Dockerfile (should be fixed), so depends of the day you run the first time the Docker container the versions of PyMongo and Mongotail are installed. Running outside docker, execute first |
@hedefalk , I found when the problem happens: it just occurs when you are connecting with local databases. I couldn't reproduce the bug before because I was trying with a remote server, after tried with two different local servers, the problem happened again. Profiling |
@mrsarm Cool! Sorry for not getting back, I seem to have missed this. Here's just for completeness:
|
Patch from @ShaneHarvey works Ok! Please @hedefalk test it. Released in Mongotail 2.1.2 |
@mrsarm Awesome! Python noob question, is this published in any of the channels I've used?
I've only used this and docker… |
Try this:
|
I get around 150% CPU running the docker image on Mac with level 2 logging. I think it worked better the other day so maybe something that comes after a while. Hard to debug for me… Will try to use the python version natively instead now…
The text was updated successfully, but these errors were encountered: