X
Tryk her for at gå til webstedets mobilversion.
Scheduled maintenance: Thursday, April 2, between 3pm and 5pm UTC. This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn’t solve your issue and you want to ask a question, we have our support community waiting to help you at @firefox on Twitter

Supportforum

Gecko running slow

Skrevet

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)

Valgt løsning

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.

Læs dette svar i sammenhæng 1

Yderligere systemdetaljer

Installerede plugins

  • This plugin provides integration with Gnome Shell for live extension enabling and disabling. It can be used only by extensions.gnome.org
  • This plug-in detects the presence of iTunes when opening iTunes Store URLs in a web page with Firefox.

Program

  • Firefox 42.0
  • User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0
  • Support-URL: https://support.mozilla.org/1/firefox/42.0/Linux/en-US/

Udvidelser

Javascript

  • incrementalGCEnabled: True

Grafik

  • adapterDescription: Intel Open Source Technology Center -- Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)
  • adapterDeviceID: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)
  • adapterDrivers:
  • adapterRAM:
  • adapterVendorID: Intel Open Source Technology Center
  • driverDate:
  • driverVersion: 3.0 Mesa 10.4.7
  • info: {u'CairoUseXRender': 1, u'AzureCanvasBackend': u'cairo', u'AzureFallbackCanvasBackend': u'none', u'AzureContentBackend': u'cairo', u'AzureSkiaAccelerated': 0}
  • numAcceleratedWindows: 0
  • numAcceleratedWindowsMessage: [u'']
  • numTotalWindows: 1
  • supportsHardwareH264: False
  • webglRenderer: Intel Open Source Technology Center -- Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Basic

Ændrede indstillinger

Diverse

  • User JS: Nej
  • Tilgængelighed: Nej
Luk
jscher2000
  • Top 10 Contributor
8952 løsninger 73370 svar

Valgt løsning

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.

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.

Spørgsmålsstiller

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!

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!