From 5c228ccd77a87aee470885b1f8729b737779e966 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Thu, 4 Apr 2019 00:14:19 +0700 Subject: [PATCH] Update DOCS.md --- DOCS.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/DOCS.md b/DOCS.md index af74a4a..aee83a9 100644 --- a/DOCS.md +++ b/DOCS.md @@ -17,6 +17,7 @@ * [Interactive mode](#interactive-mode) + [Searching](#searching) + [Selecting text](#selecting-text) +* [Memory Usage](#memory-usage) ## Getting started @@ -259,3 +260,17 @@ You may found what you can't just select text in fx. This is due the fact that a | `Option`+`Mouse` | iTerm2, Hyper | | `Fn`+`Mouse` | Terminal.app | | `Shift`+`Mouse` | Linux | + +## Memory Usage + +You may find what sometimes, on a really big JSON files, fx prints an error with message like this: + +``` +FATAL ERROR: JavaScript heap out of memory +``` + +There is a limit for the memory usage in V8 of around 2GB. You can increase the limit by putting next lines to you _.profile_: + +```bash +export NODE_OPTIONS='--max-old-space-size=8192' +```