autosignal.on.bloated.memory: autosignal.on.bloated.memory

Description Usage Arguments Details Value Note Author(s)

Description

Send signal to self on BloatedMemory

Usage

1
2
autosignal.on.bloated.memory(events, signal = tools::SIGUSR1,
  pid = Sys.getpid(), logger = NULL, event.name = "BloatedMemory")

Arguments

events

EventRegistry object

signal

Signal to throw. Default is SIGUSR1 (defined in tools package). Normally this elicits similar behavior to SIGINT however when running inside Apache it lets the worker process finish the current request before killing itself.

pid

Process ID to which the signal should be sent. Default: Sys.getpid(), the current process. (If you provide something else it is no longer really an autosignal, just a signal).

logger

log4r object, optional

event.name

Name of event to listen for. Default: "BloatedMemory"

Details

Have the process send a signal to itself when BloatedMemory event is triggered.

Value

Nothing

Note

This attaches a listener—it does not actaully do anything until the BloatedMemory event is triggered, if ever.

Author(s)

Brad Friedman


apomatix/AnalysisPageServer documentation built on May 26, 2019, 11:36 a.m.