-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Always crash when the memory increased to 4~5G #12893
Comments
Looks like you probably have a leak somewhere, so you might try running the script through a memory profiler, such as the one in the node/V8 inspector. I'm not sure that V8 supports a larger max memory usage for a single process on 64-bit. |
cc @nodejs/v8 |
According to the V8 5.8 release blogpost, unlimited heap sizes are a relatively new thing, and prior to that 4GB was the usual limit. V8 5.8 will be the version coming with Node 8.0.0 – we’ll have the first release candidate for that later this week, if you’re interested. |
@mike442144 You can even try the first nightly build with v8 5.8. |
@vsemozhetbyt I'm trying it... |
@mike442144 Unless you know why your process is using that much memory, a memory leak is the most likely explanation for the process running out of memory. |
@addaleax Of course I know why, I'm computing about 20 million records. :) |
@mike442144 But all of them in memory at the same time? |
@mscdex @addaleax @vsemozhetbyt I have tried the nightly build of 8 which avoided |
@mscdex Yes, I have to compute all of them in memory, I find it is difficult to do data analysis in nodejs. Maybe python is much more suitable? Do you have any experiences of this? |
I'd say the original question has been answered. @mike442144 Please post follow-up questions to https://github.com/nodejs/help/issues. |
@bnoordhuis Thanks, certainly! |
I have 14G memory on my machinek, but when I run my program with following command, the memory usage increased to 4~5G then crashed.
and here is the stack trace.
Anybody know this issue?
The text was updated successfully, but these errors were encountered: