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

Support Forum

Gecko running slow

Posted

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)

Chosen solution

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.

Read this answer in context 1

Additional System Details

Installed Plug-ins

  • 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.

Application

  • 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/

Extensions

Javascript

  • incrementalGCEnabled: True

Graphics

  • 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

Modified Preferences

Misc

  • User JS: No
  • Accessibility: No
jscher2000
  • Top 10 Contributor
8785 solutions 71849 answers

Chosen Solution

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.

Question owner

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!