Socket
Book a DemoInstallSign in
Socket

@dazn/chaos-squirrel-attack-memory

Package Overview
Dependencies
Maintainers
7
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dazn/chaos-squirrel-attack-memory

Chaos Squirrel attack to fill memory

0.10.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
7
Weekly downloads
 
Created
Source

@dazn/chaos-squirrel-attack-memory

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

Usage

Basic memory attack.

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.

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

FAQs

Package last updated on 20 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.