1
所以我已經在生產中運行Delayed :: Job一段時間。延遲::作業,監視和內存錯誤
每當我做出改變的工作,我會(所有生產ENV提醒你)
- 使用[腳本](重啓延遲工作http://wiki.github.com/tobi/delayed_job的/磨合delayedworker作爲一種守護進程)我使用'耙作業中使用
- 明確的工作:clear`
另外,我有monit的運行,我已經停止monit的,重新啓動腳本,然後開始monit,依次...依然沒有骰子。
無論如何,我們都這樣做是爲了讓舊工作失去記憶,我清理工作隊列,只是因爲這就是我所做的。這一步可能不需要,在我的應用程序,它不會受傷。
但是,由於某種原因,最近使用這些步驟並未重置我的新Job代碼。當我看到我的job_runner.log文件,當我重新啓動腳本
*** 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>
我得到這個錯誤,所以我不知道是怎麼回事。該堆棧級別太深的錯誤,是否來自我的代碼?我所有的集成測試都通過了,就像以前一樣。
我的切片有內存問題嗎?即使free
告訴我,當我這樣做時,我平均有300MB?
誰能在這裏幫助哥哥出去?