Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add instrumentation for memory usage #18

Merged
merged 1 commit into from

1 participant

@jherdman

This was here before, but seems to have been dropped during the merge

James Herdman Add instrumentation for memory usage
This was here before, but seems to have been dropped during the merge
7b681e7
@jherdman jherdman merged commit b815701 into pressly:develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 11, 2012
  1. Add instrumentation for memory usage

    James Herdman authored
    This was here before, but seems to have been dropped during the merge
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/raemon/master.rb
View
1  lib/raemon/master.rb
@@ -423,6 +423,7 @@ def monitor_memory_usage
WORKERS.dup.each_pair do |wpid, worker|
memory_used = worker.memory_usage
+ instrument 'worker.memory_usage', :pid => wpid, :memory_used => memory_used
if memory_used > memory_limit_in_bytes
logger.warn "memory limit (#{memory_limit}MB) reached by worker=#{worker.id} (USED: #{memory_used})"
Something went wrong with that request. Please try again.