<commit_before>log_file = "#{RELEASE_PATH}/shared/log/bluepill.log"
base_dir = "/tmp/bluepill"

Bluepill.application("gemcutter", :log_file => log_file, :base_dir => base_dir) do |app|
  app.process("delayed_job") do |process|
    process.working_dir = "#{RELEASE_PATH}/current"

    process.start_grace_time    = 10.seconds
    process.stop_grace_time     = 10.seconds
    process.restart_grace_time  = 10.seconds

    process.environment = { 'RAILS_ENV' => RAILS_ENV }
    process.start_command = "script/delayed_job start"
    process.stop_command  = "script/delayed_job stop"

    process.pid_file = "#{RELEASE_PATH}/shared/pids/delayed_job.pid"

    process.uid = process.gid = "rubycentral"
    process.supplementary_groups = ['rvm']
  end
end<commit_msg>check memory usage, maybe that will force bluepill to monitor<commit_after>log_file = "#{RELEASE_PATH}/shared/log/bluepill.log"
base_dir = "/tmp/bluepill"

Bluepill.application("gemcutter", :log_file => log_file, :base_dir => base_dir) do |app|
  app.process("delayed_job") do |process|
    process.working_dir = "#{RELEASE_PATH}/current"

    process.start_grace_time    = 10.seconds
    process.stop_grace_time     = 10.seconds
    process.restart_grace_time  = 10.seconds
    process.checks :mem_usage, :every => 10.seconds, :below => 400.megabytes, :times => 3

    process.environment = { 'RAILS_ENV' => RAILS_ENV }
    process.start_command = "script/delayed_job start"
    process.stop_command  = "script/delayed_job stop"

    process.pid_file = "#{RELEASE_PATH}/shared/pids/delayed_job.pid"

    process.uid = process.gid = "rubycentral"
    process.supplementary_groups = ['rvm']
  end
end
{'fraction_non_alphanumeric': 0.12831325301204818, 'fraction_numerical': 0.010843373493975903, 'mean_word_length': 4.256329113924051, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '862171', 'n_tokens_mistral': 616, 'n_tokens_neox': 570, 'n_words': 96}