title: How to restart Sidekiq when running on Heroku?
body: <p>I am running sidekiq in a worker on Heroku as follows:</p>
  
  <p><code>bundle exec sidekiq -t 25 -e $RAILS_ENV -c 3</code></p>
  
  <p>One of the operations uses more memory (>500mb) than the worker allows. After the job has completed, the memory still hasn't been released and I get these errors in the heroku rails log files:</p>
  
  <p><code>2018-11-13T00:56:05.642142+00:00 heroku[sidekiq_worker.1]: Process running mem=646M(126.4%)
  2018-11-13T00:56:05.642650+00:00 heroku[sidekiq_worker.1]: Error R14 (Memory quota exceeded)</code></p>
  
  <p>Is there a way to automatically restart Sidekiq when the memory usage exceeds a certain amount?</p>
  
  <p>Thanks!</p>