-
Notifications
You must be signed in to change notification settings - Fork 8
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
Memory leak? #8
Comments
I made a similar test: created two processes running a Minion worker each, one using SQLite as backend and the other one using Pg. Had a third process monitoring
String The Pg backend didn't move after the startup. The SQLite backend exposed this behaviour: I also tracked the memory consumption of the Raw data filtered from |
I skimmed through the source code of |
Well, I had some time to check this out and it seems the issue is with
Which results in:
|
Actually, it already happens when calling |
Closing this as the underlying issue should be resolved in Mojo::SQLite. |
Maybe an update to the cpanfile to use Mojo::SQLite 1.002 could be done to prevent users from using the version with the memory leak? |
Sure, I will bump the dependency |
Hi,
When using the SQLite backend I noticed that my long running worker processes steadily grew in size when it comes to memory usage. Maybe it's because of SQLite as I see it happen with the Storable backend as well, and they both store their data on disk. I tested it with the PostgreSQL backend as well and the memory usage doesn't increase after processing jobs.
I created a noop job:
And then added a command to my app to test it:
Which can be run as:
Which gives me the following:
As you can see the data diff for after is high. When I run it with the PostgreSQL backend the data diff is 0 (although in some runs it's at around 130, but after the next run it's at 0 again):
The text was updated successfully, but these errors were encountered: