# @dazn/chaos-squirrel-attack-memory

> Chaos Squirrel attack to fill memory

Latest version **0.10.1** (published 2021-07-20) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @dazn/chaos-squirrel-attack-memory
pnpm add @dazn/chaos-squirrel-attack-memory
yarn add @dazn/chaos-squirrel-attack-memory
bun add @dazn/chaos-squirrel-attack-memory
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.10.1 |
| Published | 2021-07-20 |
| First published | 2020-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Simon Tabor |
| Maintainers | rick-burgess-dazn, cirpo, dazn.builder.frontend, automation-drone, m.bazalik, dazn.oss.lambda.powertools, dazn.oss |

## Links

- npm: https://www.npmjs.com/package/@dazn/chaos-squirrel-attack-memory
- Repository: https://github.com/getndazn/chaos-squirrel
- Homepage: https://github.com/getndazn/chaos-squirrel/packages/attack-memory#readme
- Issues: https://github.com/getndazn/chaos-squirrel/issues
- npm.io page: https://npm.io/package/@dazn/chaos-squirrel-attack-memory

## Recent versions

- 0.10.1 (latest) — 2021-07-20
- 0.10.0 — 2021-03-12
- 0.9.9 — 2021-02-15
- 0.9.8 — 2021-01-22
- 0.9.7 — 2021-01-22
- 0.9.5 — 2020-12-15
- 0.9.4 — 2020-10-29
- 0.9.3 — 2020-10-29
- 0.9.2 — 2020-10-26
- 0.9.1 — 2020-10-05
- 0.9.0 — 2020-08-25
- 0.8.0 — 2020-08-24
- 0.7.0 — 2020-08-24
- 0.6.0 — 2020-08-14
- 0.5.0 — 2020-08-14
- … 2 more at https://npm.io/package/@dazn/chaos-squirrel-attack-memory/versions

## README

# @dazn/chaos-squirrel-attack-memory

Chaos Squirrel attack to fill memory instantly, or increasing memory usage over time.

## Usage

Basic memory attack.

```ts
import MemoryAttack from '@dazn/chaos-squirrel-attack-memory';

const createMemoryAttack = MemoryAttack.configure({
  size: 2e9 // ~2gb
});

const memoryAttack = createMemoryAttack();
memoryAttack.start();

// ~2gb of memory will be used

memoryAttack.stop(); // removes references to memory to allow GC to collect it
```

Progressive memory attack.

```ts
import MemoryAttack from '@dazn/chaos-squirrel-attack-memory';

const createMemoryAttack = MemoryAttack.configure({
  size: 2e9, // ~2gb
  stepSize: 2e8, // ~200mb
  stepTime: 1e3 // 1s
});

const memoryAttack = createMemoryAttack();
memoryAttack.start();

// ~2gb of memory will be used, starting from 0gb & increasing by ~200mb every 1s

memoryAttack.stop(); // removes references to memory to allow GC to collect it
```

---
_Source: https://npm.io/package/@dazn/chaos-squirrel-attack-memory · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
