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

out of memory [JS version] #701

Open
nickdesaulniers opened this issue May 28, 2015 · 1 comment
Open

out of memory [JS version] #701

nickdesaulniers opened this issue May 28, 2015 · 1 comment

Comments

@nickdesaulniers
Copy link

This issue might be a little, uh, unique. I'm trying to beautify 27MB of JS (output from Unity -> Emscripten -> JS) to debug it. We run out of memory a few minutes into the process.

➜  Release  js-beautify Mozilla.js
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
[1]    49429 abort      js-beautify Mozilla.js
➜  Release  node --max_old_space_size=2000 /Users/Nicholas/.nvm/versions/node/v0.12.0/bin/js-beautify Mozilla.js
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
[1]    49862 abort      node --max_old_space_size=2000  Mozilla.js

I can't expand the amount of memory used much further with immediately segfaulting. Not sure how feasible it is, but it might be nice to think about how this project could be re-architected to use multiple processes for large input files.

@nickdesaulniers nickdesaulniers changed the title out of memory out of memory [JS version] May 28, 2015
@nickdesaulniers
Copy link
Author

The python version does not suffer from this, though last time I checked, it was using 25GB and one thread.

@bitwiseman bitwiseman added this to the Future milestone May 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants