autosignal.on.bloated.memory {AnalysisPageServer} | R Documentation |
Send signal to self on BloatedMemory
autosignal.on.bloated.memory(events, signal = tools::SIGUSR1, pid = Sys.getpid(), logger = NULL, event.name = "BloatedMemory")
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: |
logger |
log4r object, optional |
event.name |
Name of event to listen for. Default: "BloatedMemory" |
Have the process send a signal to itself when BloatedMemory event is triggered.
Nothing
This attaches a listener—it does not actaully do anything until the BloatedMemory event is triggered, if ever.
Brad Friedman