bind.memory.checker {AnalysisPageServer} | R Documentation

## bind.

### Description

Bind the memory checker to the FinishAnalysis event

### Usage

    bind.memory.checker(app, max.mb, app.event = "FinishAnalysis",
      memory.event = "BloatedMemory")

### Arguments

`app` | AnalysisPageRApacheApp
`max.mb` | Memory threshold for triggering BloatedMemory, in Megabytes. Required.
`app.event` | Name of existing event on which the new memory check listener should be registered. Default: "FinishAnalysis".
`memory.event` | Name of event to fire in case of memory usage above threshold. Default: "BloatedMemory".

### Details

You supply an AnalysisPageRApacheApp. It also has a FinishAnalysis event. I add a new event (by default called BloatedMemory), and also a listener for FinishAnalysis, which calls `check.memory` each time `FinishAnalysis` is triggered. (this will then trigger BloatedMemory if memory usage is above threshold). Although the BloatedMemory event would now be triggered, unless a listener is attached to *it* nothing special will happen. (See `autosignal.on.bloated.memory` for this.)

### Value

Nothing of note.

### Author(s)

Brad Friedman

### See Also

`check.memory`, `autosignal.on.bloated.memory`

[Package AnalysisPageServer version 1.18.1 Index]