MemoryHealthIndicator
The MemoryHealthIndicator contains checks which are related to the memory storage of the current running machine
class MemoryHealthIndicator {
checkHeap<Key extends string = string>(key: Key, heapUsedThreshold: number): Promise<HealthIndicatorResult<Key>>
checkRSS<Key extends string = string>(key: Key, rssThreshold: number): Promise<HealthIndicatorResult<Key>>
}
Methods
checkHeap() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Checks the heap space and returns the status |
|||||||||
Parameters
Examples
Returns
Throws
|
checkRSS() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Checks the rss space and returns the status |
|||||||||
Parameters
Examples
Returns
Throws
|