Closed Bug 497743 Opened 15 years ago Closed 15 years ago

Audit site for more collections-related memory problems

Categories

(addons.mozilla.org Graveyard :: Collections, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: fligtar, Assigned: jbalogh)

Details

Attachments

(1 file, 2 obsolete files)

We should audit the site for queries that pull collections data without need to avoid more bugs like bug 497706.

Jeff says anything using getListAddons() is succeptible.
Jeff mentioned that the category landing pages are prone to this. They are starting to load a bit slowly for me.

The irony of this bug is that we don't yet have a page to list all of the collections associated with an add-on (bug 491407), but random other pages are pulling that data. :)
Priority: -- → P1
Currently visible on https://addons.mozilla.org/en-US/firefox/browse/type:1/cat:5; AMO serves a page with 0-byte content-length.
Jeff is taking the category page emergency. We'll probably have to apply the patch locally since we've had so many changes since last svn up.
Assignee: nobody → jbalogh
Severity: normal → blocker
Attached patch quick patch to use getAddonList (obsolete) — Splinter Review
may lose some sorting functionality in the switch; oh well
Attachment #384184 - Flags: review?(clouserw)
Attachment #384184 - Flags: review?(clouserw) → review+
Comment on attachment 384184 [details] [diff] [review]
quick patch to use getAddonList

I dropped around 15 add-ons on this page in over 1000 collections each and this patch still let the pages render with a 32M memory_limit.
Attached patch replacing more getAddonList (obsolete) — Splinter Review
Including the search controller this time.
Attachment #384184 - Attachment is obsolete: true
Attachment #384188 - Flags: review?(clouserw)
Comment on attachment 384188 [details] [diff] [review]
replacing more getAddonList

I put all 10 add-ons on a search result page into between 1000 and 3000 collections each and with this patch it still worked.
Attachment #384188 - Flags: review?(clouserw) → review+
This patch is currently on the live site
(In reply to comment #8)
> This patch is currently on the live site

I can confirm that this (at least temporarily) fixes the blank pages I was seeing; ran my Selenium script and clicked around for a while.
Attachment #384253 - Flags: review?(clouserw) → review+
Committed in r28244; most of it is already in production.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: