Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Pretraži podršku

Izbjegni prevare podrške. Nikad te nećemo tražiti da nas nazoveš, da nam pošalješ telefonski broj ili da podijeliš osobne podatke. Prijavi sumnjive radnje pomoću opcije „Prijavi zlouporabu”.

Learn More

Gecko running slow

more options

I've been recently developing/playing around with JavaScript. Two days ago I discovered a leak (my first!) in my script. I ran it for about a minute before shutting it off and creating a heap. The heap was only ~23 MB, however, Gecko runs at a snails pace after opening it (by "snail's pace" I mean >20 second click lag) I thought my script might be the cause, but it still lags when opening the heap file in an empty tab. My system monitor is showing only moderate amounts of RAM used, however one core is always at 100% when processing a click. The "unresponsive script" dialog has popped up (script is chrome://browser/content/browser.xul:1) Totally new to advanced JS debugging, so I don't have the slightest idea what is going on. I'm using the built-in Gecko, and Firefox 42 (yes I know that is ancient)

I've been recently developing/playing around with JavaScript. Two days ago I discovered a leak (my first!) in my script. I ran it for about a minute before shutting it off and creating a heap. The heap was only ~23 MB, however, Gecko runs at a snails pace after opening it (by "snail's pace" I mean >20 second click lag) I thought my script might be the cause, but it still lags when opening the heap file in an empty tab. My system monitor is showing only moderate amounts of RAM used, however one core is always at 100% when processing a click. The "unresponsive script" dialog has popped up (script is chrome://browser/content/browser.xul:1) Totally new to advanced JS debugging, so I don't have the slightest idea what is going on. I'm using the built-in Gecko, and Firefox 42 (yes I know that is ancient)

Izabrano rješenje

23MB is huge. What is the file format of the heap file? Plain text would load fastest. If you are loading HTML (or JSON with the viewer, which is enabled by default), the rendering would take a long time. Definitely try to avoid huge HTML tables if you're in a hurry.

Pročitaj ovaj odgovor u kontekstu 👍 1

Svi odgovori (2)

more options

Odabrano rješenje

23MB is huge. What is the file format of the heap file? Plain text would load fastest. If you are loading HTML (or JSON with the viewer, which is enabled by default), the rendering would take a long time. Definitely try to avoid huge HTML tables if you're in a hurry.

more options

Okay I took a new, much smaller heap, and saved it as a .txt file. It seems to be running much faster now. Thank you very much!