Class: Monitors::ViolationsRecorders::Memory
- Inherits:
-
Base
- Object
- Base
- Monitors::ViolationsRecorders::Memory
show all
- Defined in:
- lib/monitors/violations_recorders/memory.rb
Class Method Summary
collapse
Methods inherited from Base
inherited, is_violating?, reset
Methods included from Logging
#log, #logger
Class Method Details
.process_attr ⇒ Object
12
13
14
|
# File 'lib/monitors/violations_recorders/memory.rb', line 12
def process_attr
:pid
end
|
.process_is_violating?(process) ⇒ Boolean
16
17
18
|
# File 'lib/monitors/violations_recorders/memory.rb', line 16
def process_is_violating?(process)
process.memory_usage > Cfg.memory_limit
end
|
.retries_limit ⇒ Object
8
9
10
|
# File 'lib/monitors/violations_recorders/memory.rb', line 8
def retries_limit
Cfg.memory_retries
end
|