autosignal.on.bloated.memory {AnalysisPageServer} | R Documentation

## 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"

### 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

[Package AnalysisPageServer version 1.18.1 Index]