Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got JavaScript heap out of memory when training #88

Open
nhha1602 opened this issue Feb 29, 2020 · 1 comment
Open

I got JavaScript heap out of memory when training #88

nhha1602 opened this issue Feb 29, 2020 · 1 comment

Comments

@nhha1602
Copy link

Hi,

I got following issues, please advise this.

[54060:0x2e79e10] 85032 ms: Mark-sweep 2019.6 (2024.1) -> 2019.6 (2024.1) MB, 1385.8 / 0.0 ms (average mu = 0.426, current mu = 0.000) last resort GC in old space requested
[54060:0x2e79e10] 86623 ms: Mark-sweep 2019.6 (2024.1) -> 2019.6 (2024.1) MB, 1591.3 / 0.0 ms (average mu = 0.251, current mu = 0.000) last resort GC in old space requested

<--- JS stacktrace --->

==== JS stack trace =========================================

0: ExitFrame [pc: 0x1376519]

Security context: 0x176a3fbc08a1
1: /* anonymous /(aka / anonymous /) [0x178ab1201179] [/home/chatito/.npm/_npx/54060/lib/node_modules/chatito/dist/main.js:~469] [pc=0x2dcb2edfd81c](this=0x0725d1d404a9 )
2: next [0x176a3fbe3651](this=0x178ab12010d9 )
3: /
anonymous /(aka / anonymous */) [0x178ab1201271] [/home/chatito/.npm/_npx/54060/lib/node_modules/cha...

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

@rodrigopivi
Copy link
Owner

Hi @nhha1602 ,

Looks like JavaScript heap out of memory error is probably because of a limit set by V8 engine. reference, let me know if you can overcome this problem with a combination of:

  • Split the dataset generation entry points so each intent is generated separately (will use less memory).

  • Increase the nodejs heap memory size reference. Since Node 8, just setting an environmental variable will overwrite the heap max size. e.g.: export NODE_OPTIONS=--max_old_space_size=4096

Hope that helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants