Learn R Programming

AnalysisPageServer (version 1.6.2)

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

Description

Send signal to self on BloatedMemory

Usage

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"

Value

Nothing

Details

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