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

Huge memory usage #741

Closed
KindOf opened this issue Jul 21, 2017 · 2 comments
Closed

Huge memory usage #741

KindOf opened this issue Jul 21, 2017 · 2 comments

Comments

@KindOf
Copy link

KindOf commented Jul 21, 2017

We are reading big xlsx file (~60k cells and 6mb). process.memoryUsage shows:

{
  rss: 506667008,
  heapTotal: 247668736,
  heapUsed: 213031496,
  external: 210783589
}

After that we need to parse it as a json using XLSX.utils.sheet_to_json().
process.memoryUsage() now shows:

{
  rss: 1075920896,
  heapTotal: 909008896,
  heapUsed: 865942592,
  external: 120989339
}

Idle process - something like 100 mb memory.
Is there any way to parse it partially?

@SheetJSDev
Copy link
Contributor

@KindOf You aren't the only one to notice the problem! After looking into #764 it seems to be a nodejs issue: nodejs/node#14652

Can you try reverting back to node 4.x? See the triage of the issue

@reviewher
Copy link
Contributor

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

3 participants