开发者

Delayed::Job when using Monit and Memory Error

开发者 https://www.devze.com 2022-12-18 13:41 出处:网络
So I\'ve had Delayed::Job running swimmingly in production for a while. Whenever i\'d make a change to a job I would (all in the production env mindyou)

So I've had Delayed::Job running swimmingly in production for a while.

Whenever i'd make a change to a job I would (all in the production env mind you)

  1. restart delayed job using the [script] (https://github.com/tobi/delayed_job/wiki/Running-Delayed::Worker-as-a-daemon) i used
  2. clear the jobs using rake jobs:clear

Also, i have monit running, I've stopped monit, restarted the script and then started monit, in that order... still no dice.

Anyways, we all do this to get the old job out of memory and i clear the job queue just cause that's what i do. that step may not be needed and in my app it doesn't hurt.

However, using these steps recently has not reset my new Job code for some reason. When i look at my job_runner.log file i get this error when i restart the script

*** below you find the most recent exception thrown, this will be likely (but not    certainly) the exception that made the applicati
on exit abnormally ***
#<SystemExit: exit>*** below you find all exception objects found in memory, some of them may have been thrown in your application, others may just be in memory because they are standard exceptions ***
#<NoMemoryError: failed to allocate memory>
#<SystemStackError: stack level too deep>
#<fatal: exception reentered>
#<LoadError: no such file to load -- rubygems/defaults/operating_system>
#<LoadError: no such file to load -- daemons>
#<NameError: uninitialized constant Rails::Plugin::HoptoadNotifier>
#<Errno::ENOENT: No such file or directory - /var/rails/wigify/tmp/pids/job_runner.pid>
#<SystemExit: exit>

So i'm not sure what is going on. That stack level too deep error, does that come from my开发者_如何学Python code? All my integration tests pass, just like they did before.

Do I have memory issues on my slice? Even though free tells me i have 300MB on average when i do it?

Who here can help a brother out?


well i think the problem fixed itself. whether i had too little ram each of the 100 times i tried it, or what not, but one time it just fixed itself.

Not the answer i wanted, but weird none the less.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号