X
Tap here to go to the mobile version of the site.

Support Forum

pdf.js eats a lot of memory

Posted

I have five pdf files open in my browser each being size of ~ 1 MB => 5 MB. (Looked up by downloading them) Yet, pdf.js uses combined 457 MB of RAM (162 + 132 + 70 + 56 + 23 MB) to display these documents. Needless to say, a 100 MB or so pdf opened with pdf.js stalls the whole browser completely. I find the massive 100 times the pdf size use of memory weird. Leak somewhere or what?

I have five pdf files open in my browser each being size of ~ 1 MB => 5 MB. (Looked up by downloading them) Yet, pdf.js uses combined 457 MB of RAM (162 + 132 + 70 + 56 + 23 MB) to display these documents. Needless to say, a 100 MB or so pdf opened with pdf.js stalls the whole browser completely. I find the massive 100 times the pdf size use of memory weird. Leak somewhere or what?

Chosen solution

It looks like there are existing bugs for this issue: https://bugzilla.mozilla.org/show_bug.cgi?id=881974 and https://bugzilla.mozilla.org/show_bug.cgi?id=868949. So there are developers working on the issue.

As a workaround, if you need to, you could try using another viewer:

https://support.mozilla.org/en-US/kb/disable-built-pdf-viewer-and-use-another-viewer

Read this answer in context 2

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.8 r800
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.04
  • Google Update
  • Next Generation Java Plug-in 10.25.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • VLC media player Web Plugin 2.0.6
  • 5.1.20513.0
  • Adobe Shockwave for Director Netscape plug-in, version 12.0.2.122
  • NPWLPG
  • Unity Player 3.5.5f4
  • Picasa plugin
  • Windows Activation Technologies Plugin for Mozilla

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0

More Information

lizhenry 2 solutions 49 answers

Chosen Solution

It looks like there are existing bugs for this issue: https://bugzilla.mozilla.org/show_bug.cgi?id=881974 and https://bugzilla.mozilla.org/show_bug.cgi?id=868949. So there are developers working on the issue.

As a workaround, if you need to, you could try using another viewer:

https://support.mozilla.org/en-US/kb/disable-built-pdf-viewer-and-use-another-viewer

It looks like there are existing bugs for this issue: https://bugzilla.mozilla.org/show_bug.cgi?id=881974 and https://bugzilla.mozilla.org/show_bug.cgi?id=868949. So there are developers working on the issue. As a workaround, if you need to, you could try using another viewer: https://support.mozilla.org/en-US/kb/disable-built-pdf-viewer-and-use-another-viewer