• Stars
    star
    267
  • Rank 153,621 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Increase memory limit for local node binaries ("max-old-space-size")

DEPRECATION NOTICE

As of Node.js v8.0 shipped August 2017, you can now use the NODE_OPTIONS environment variable to set the max_old_space_size globally. (#19)

export NODE_OPTIONS=--max_old_space_size=4096

increase-memory-limit

Workaround to fix heap out of memory when running node binaries. It's a common issue when using TypeScript 2.1+ and webpack.

This tool will append --max-old-space-size=4096 in all node calls inside your node_modules/.bin/* files.

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

How to use

npm install -g increase-memory-limit

Run from the root location of your project:

increase-memory-limit

Running from NPM task

Alternatively, you can configure a npm task to run the fix.

// ...
  "scripts": {
    "fix-memory-limit": "cross-env LIMIT=2048 increase-memory-limit"
  },
  "devDependencies": {
    "increase-memory-limit": "^1.0.3",
    "cross-env": "^5.0.5"
  }
// ...
npm run fix-memory-limit

License

MIT

More Repositories

1

NativeWebSocket

🔌 WebSocket client for Unity - with no external dependencies (WebGL, Native, Android, iOS, UWP)
C#
1,146
star
2

js2php

JavaScript (ES6) to PHP source-to-source transpiler.
JavaScript
327
star
3

vim-github-colorscheme

A vim colorscheme based on Github's syntax highlighting.
Vim Script
225
star
4

joy.js

A Joyful 2D HTML5 Game Engine.
JavaScript
139
star
5

FossilDelta

An efficient delta compression algorithm written in C#
C#
111
star
6

colyseus-babylonjs-boilerplate

BabylonJS + Colyseus: Multiplayer Boilerpate
TypeScript
99
star
7

colyseus-tic-tac-toe

Colyseus 0.15: Turn-based Multiplayer Example
JavaScript
91
star
8

generator-modern-frontend

Scaffold out a modern front-end web app using your CSS pre-processor of choice, Gulp, Bower, Autoprefixer and Browserify.
JavaScript
82
star
9

mazmorra

🗡 Online Multiplayer Dungeon Crawler powered by Colyseus - https://gum.co/mazmorra
JavaScript
74
star
10

pixi-virtual-joystick

🕹 Virtual Touch Joystick for pixi.js
TypeScript
61
star
11

colyseus-pixijs-boilerplate

Colyseus + PixiJS Boilerplate (Agar.io simplistic adaptation)
TypeScript
61
star
12

php-code-downgrade

Make your PHP 5.4+ codebase compatible with PHP 5.3.
PHP
47
star
13

library-template.ts

Template for authoring TypeScript modules/libraries. Uses Webpack + Karma + Mocha for testing.
JavaScript
37
star
14

shieldsio-patreon

🛡 Shields.io endpoint to display amount of donations/patrons you have on Patreon
HTML
36
star
15

awesome-wordpress

A curated list of awesome WordPress plugins for developers.
35
star
16

jquery.selectable.js

Turn anything into selectable/checkable element.
JavaScript
34
star
17

memshared

Redis-like in-memory database for NodeJS clustered applications
TypeScript
30
star
18

.vim

my vim configs
Vim Script
29
star
19

behaviour.js

Plugable Entity Component System for Games
JavaScript
28
star
20

webtransport-nodejs

WebTransport / HTTP3 in Node.js
TypeScript
24
star
21

ecs

(NOT READY TO USE) Experimenting with @colyseus/schema + ECSY
TypeScript
18
star
22

colyseus-ranked-matchmaking

Ranked matchmaking using Colyseus
TypeScript
18
star
23

colyseus-collaborative-drawing

Collaborative Drawing Prototype. Using Colyseus + HTML5 Canvas
TypeScript
17
star
24

tutomd

📄 Tool that generates good-looking and structured tutorials with Markdown
CSS
17
star
25

flashdevelop.vim

This plugin aims to provide productive features for editing ActionScript 3.0 files inside your VIM.
Ruby
16
star
26

ctrlp-filetype.vim

CtrlP plugin: Filetype finder and setter.
Vim Script
15
star
27

colyseus-react-example

Straightforward chat application demonstrating Colyseus Multiplayer Game Server (v0.4.x)
JavaScript
15
star
28

LD35

Entry for Ludum Dare 35 Game Jam. Theme: Shapeshift (Colyseus 0.3.x)
JavaScript
13
star
29

lazy-assets

An opinionated and simple build-system approach.
JavaScript
12
star
30

msgpack-benchmark

This repository aims to benchmark each msgpack implementation for JavaScript.
JavaScript
12
star
31

js-inheritance-benchmark

JavaScript Inheritance Benchmark: Vanilla vs Transpiled
JavaScript
11
star
32

magick-uploader.js

Resize images on client-side before sending it to your server.
JavaScript
9
star
33

bun-serve-express

Express API compatibility layer for `Bun.serve`
TypeScript
9
star
34

slim-lightncandy-view

Mustache / Handlebars template engine for Slim Framework 3.x
PHP
9
star
35

iconic-css-sprite-sheet

A CSS + PNG Sprite Sheet generator for Iconic iconset, by P.J. Onori
Ruby
8
star
36

node-delta

An efficient delta compression algorithm for Node.js
C++
8
star
37

haxelib-publish-github-actions-test

Testing GitHub Actions to publish a Haxe package to the haxelib registry.
Haxe
7
star
38

grunt-loader

Configure each of your grunt plugins using YAML files, and don't ever touch your Gruntfile.js.
Ruby
7
star
39

generate-username

Generate fake usernames for bots in games.
TypeScript
6
star
40

multiplayer-drawing-prototype

Multiplayer Drawing Prototype using Construct3 and Colyseus
JavaScript
5
star
41

khronos

Simple HTTP-based Job scheduling for the cloud.
Ruby
5
star
42

socialoud

Simple social aggregation tool written in Ruby
Ruby
5
star
43

discord-webgame-toolkit

Discord Web Auth for Games + Bot
TypeScript
5
star
44

colyseus-starter

Project structure for running Colyseus Multiplayer Game Server. (UNMAINTAINED; FOR UP-TO-DATE EXAMPLE CHECK: https://github.com/gamestdio/colyseus-examples)
JavaScript
5
star
45

fury-card-game

Simple Augmented Reallity Flash Card-Game
ActionScript
4
star
46

c3addon

Construct 3 Addon Authoring Commandline Utilities
TypeScript
4
star
47

resque-swapper

Swapping tool for Resque server on runtime.
Ruby
4
star
48

strong-events

Lightweight Strong Typed Event Signaling for TypeScript
TypeScript
4
star
49

twitch-onstream-todo-list

A to-do/checklist viewer for OBS as a Browser Source
HTML
4
star
50

nonenumerable

Decorator to make properties non-enumerable.
TypeScript
4
star
51

googlecodejam

Google Code Jam - Runner Utility for Ruby
Ruby
4
star
52

blog

My personal blog
JavaScript
3
star
53

construct3-addon-release-github-actions

Automatically publish your Construct3 Addon through Github Actions and Puppeteer
JavaScript
3
star
54

colyseus-webpack

Testing Colyseus compatibility with Webpack
JavaScript
3
star
55

integra

A nice set of defaults for webapp integration tests, no matter what language your application is written in.
Ruby
3
star
56

endel

3
star
57

afsk

Work in progress: Audio Frequency-shift keying using HTML5 Audio API
JavaScript
3
star
58

colyseus-0.15-protocol-buffers

Demonstrating Colyseus 0.15 and Protocol Buffers (Raw Binary Message Exchange)
TypeScript
3
star
59

string-to-id

Turns an identifier string (`0-9A-Za-z_-`) into a unique integer id.
TypeScript
2
star
60

axie-multiplayer-colyseus

Work in progress- Not ready to be used yet
TypeScript
2
star
61

colyseus-express-session

Demonstration on how to use `express-session` along with `onAuth()` in Colyseus
TypeScript
2
star
62

podq

The Open-source Online Podcast Player for Developers
JavaScript
2
star
63

occurrence-counter

Ruby utility to count occurrences from standard data types.
Ruby
2
star
64

songsterr-api

A Ruby wrapper for the Songsterr REST API
Ruby
2
star
65

threejs-es6-boilerplate

Simple THREE.js Application boilerplate to use with ES6.
JavaScript
2
star
66

endel.dev

My personal website
HTML
2
star
67

pixi-emote-selector

💬😜 Emote Selector for pixi.js
TypeScript
2
star
68

esm-browser-node

Are frontend build tools compatible with Node.js/Browser targets?
JavaScript
2
star
69

egret-animate

A library for bridging Adobe Animate HTML5 export to egret-core
JavaScript
2
star
70

gamebundler

[POC, abandoned] 🕹📦 A Web Game Compiler and Asset Bundler
TypeScript
2
star
71

xmlhttprequest-polyfill

XMLHttpRequest polyfill using Fetch API - Made for Decentraland
TypeScript
2
star
72

LD32

LD32 - Theme "An Unconventional Weapon"
JavaScript
1
star
73

fossil-delta-hx

An efficient delta compression algorithm for Haxe
Haxe
1
star
74

laravel4-grunt

Empty Laravel 4 project using Grunt to compile javascript and stylesheet assets. You may customize it for your need.
PHP
1
star
75

injectd

Lean dependency injection for JavaScript (ES2016) and TypeScript
JavaScript
1
star
76

GGJ15

Global Game Jam 2015 (Play now: http://ggj15-flag.herokuapp.com)
JavaScript
1
star
77

colyseus-auto-sync

Proof of concept for automatic synchronizing Colyseus state
TypeScript
1
star
78

viral-shooter.js

Experimental game using dancer.js and three.js.
JavaScript
1
star
79

defold-extension-websocket-issue

https://forum.defold.com/t/extension-websocket-beta-testing/66216/23
JavaScript
1
star
80

cli-binary-load-typescript

This is just a PoC evaluating how to dynamically load a TypeScript file from a executable Node.js binary.
JavaScript
1
star
81

github-actions-publish-on-version-change

TypeScript
1
star