You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Crono consumes about 100 MB of RAM at startup. Over time it consumes much more of it. I have a process that read about 4MB XML file, parse it and store some data from it to the database. I run it every 5 minutes. After the first script run, crono consumes about 320MB RAM, second run an crono consumes about 700 MB RAM. After couple more runs I got to over 1 GB of RAM consumed by crono and about 50 MB RAM free. My server got a bit slow because of this. Also tried to run this on heroku and got a lot of memory warnings.
I've managed to work-out a partial solution:, I fork the process at the beginning of the job 'process' method so Ruby creates a new process with my task. This new process also takes up about 320 MB RAM while running but when it finishes, the RAM is free again. This is ok for me but still the Crono process takes up about 100 MB on startup and this amount slowly rizes (couple of MB each job run). After 24h Crono consumes about 500 MB RAM now.
I've tried to read about the memory management in Ruby but no luck to fix this. Any ideas to make this memory footprint stable?
The text was updated successfully, but these errors were encountered:
I am also suffering from this issue. My crono process on Heroku gets to a point where it triggers an error Error R14 (Memory quota exceeded) after a while, even though my rails application is completely idle.
Would love to hear something from the authors/contributors, to understand if there is a chance for a fix or a workaround.
Crono consumes about 100 MB of RAM at startup. Over time it consumes much more of it. I have a process that read about 4MB XML file, parse it and store some data from it to the database. I run it every 5 minutes. After the first script run, crono consumes about 320MB RAM, second run an crono consumes about 700 MB RAM. After couple more runs I got to over 1 GB of RAM consumed by crono and about 50 MB RAM free. My server got a bit slow because of this. Also tried to run this on heroku and got a lot of memory warnings.
I've managed to work-out a partial solution:, I fork the process at the beginning of the job 'process' method so Ruby creates a new process with my task. This new process also takes up about 320 MB RAM while running but when it finishes, the RAM is free again. This is ok for me but still the Crono process takes up about 100 MB on startup and this amount slowly rizes (couple of MB each job run). After 24h Crono consumes about 500 MB RAM now.
I've tried to read about the memory management in Ruby but no luck to fix this. Any ideas to make this memory footprint stable?
The text was updated successfully, but these errors were encountered: