From owner-freebsd-ports@freebsd.org Fri Sep 15 18:51:07 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7870EE02613 for ; Fri, 15 Sep 2017 18:51:07 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-vk0-x22e.google.com (mail-vk0-x22e.google.com [IPv6:2607:f8b0:400c:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2C2237372A; Fri, 15 Sep 2017 18:51:07 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-vk0-x22e.google.com with SMTP id g68so1426861vki.8; Fri, 15 Sep 2017 11:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=eh5ttdipkRYFNyKKDa4FFW7guxRDhpQ83mRzcGdTTDA=; b=HEF1cc5rUSebDtaodV/Fvakzb84KmhQzsAlER22ZZg7/Sec9JbCT5SLHaR5XYhjnR6 i/2Ir5WPCUJjWH17CUsUhw7HLY8p7vQet+qOh0jrzOcHJWbJu4llupXBepKnOYvLMr9g zGir5pX9r8ScCpPVMkD4aE8sqp1EH11eStJe3h+MJUUu/CwiZ+3Hpn5MymWPp7BeKNvq WOGvfGek6pAvOqSd+7KPOT95xCeWM2us77RZg+AYessbDAklZjQ1hum1bmRf1jABy5vX R4yTdlcO+wJEH8fcfJv19tKJ7yDFYQM44spz75SRLtlKWBt08KsxwBTb+UuzUzYaPkLN fa4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=eh5ttdipkRYFNyKKDa4FFW7guxRDhpQ83mRzcGdTTDA=; b=VQA2dXCA+KpRh2/BoFwkCx2YycoAPQokyPt2OAaqGZkXH1X5jw19B2dO9U9+LhQYtV tDr8y0IlI+saWEDYsoyA8GQNH1cMJVMKEpgMPabjTOzcEI5Q6HeouHMaVC3mJOnANK+R W1e1AduMjJG4Fv3fQ1/43f4+jbgcym7LY8e35nwUBQFDXsA7p/o+kfdeVZsxiVMnIZ/Z +9lnlgZuJZqxSaYAjR2tK5yDoyWeA+8tPAYAjCOxnSUZkKm1nCNPZxbo4FtKdiPWK6HA yKkHV451JcBOlyPBr2r03R53A5tzRHk2U9piLOEBT4O4VDEOzMnlStctTeLg5xP7Dqaz kAsw== X-Gm-Message-State: AHPjjUguqkugiuicJCHvkLnb7wJm2QGin9qhsi5BERwkECtg5AnjeOuk pqZuS6RwHvVKCxWENe97wRMe4zYCGZRclZPbz/wRKrdF X-Google-Smtp-Source: AOwi7QBxIiNV1jvubX3txk1cipPbQ5FZ7Fkso39LTPAvp0nw1iYfVOzKEFY0qCeAam0Oo1ynpl09IODpeCHMOzg7z4Y= X-Received: by 10.31.210.66 with SMTP id j63mr19523796vkg.196.1505501465864; Fri, 15 Sep 2017 11:51:05 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.103.134.194 with HTTP; Fri, 15 Sep 2017 11:51:05 -0700 (PDT) In-Reply-To: <201709151805.v8FI5GDZ049767@gw.catspoiler.org> References: <59BBCB8C.8060103@grosbein.net> <201709151805.v8FI5GDZ049767@gw.catspoiler.org> From: Kevin Oberman Date: Fri, 15 Sep 2017 11:51:05 -0700 X-Google-Sender-Auth: e1XCIQtPqovbY-N0-hsHGmkMcsA Message-ID: Subject: Re: FireFox memory usage To: Don Lewis Cc: Eugene Grosbein , Andrea Venturoli , FreeBSD Ports ML Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Sep 2017 18:51:07 -0000 On Fri, Sep 15, 2017 at 11:05 AM, Don Lewis wrote: > On 15 Sep, Eugene Grosbein wrote: > > On 15.09.2017 18:35, Andrea Venturoli wrote: > >> Hello. > >> > >> I'm on 10.3/amd64 with firefox-esr 52.3.0. > >> > >> Since a few days my 4GiB desktop is crawling due to swap usage and > >> looking at top, I see FireFox using almost 7GiB of RAM (SIZE column), > >> 2.5 of which are "RES". > >> > >> I don't think this is normal, since I'm not doing anything fancy (i.e. > >> running webapps or opening tenth of windows/tabs). > >> > >> I've been using FF for several years and, while I recognize it's > >> constantly getting slower, more bloated and more resource hungry, I find > >> it hard to believe such a sudden rise in memory usage might be normal. > >> > >> One suspect I have is some kind of memory leak, since closing FF and > >> reopening the same sites I had opened before will drop the RAM usage to > >> under 1GiB. > >> > >> I'm lost at what to look at... I don't even know if it's an upstream or > >> FreeBSD problem. > >> > >> I start by asking if anyone else is seeing this and/or if anything in > >> the way it is ported or in its dependencies could be the cause of this. > > > > It leaks like female animal under Windows, too. This depends heavily on > your > > set of addons, though. For example, NoScript addon may provoke > Javascript code > > of sites to leak memory constantly retrying to get their garbage. > > In such case, close/reopen a tab may help for some period of time. > > Javascript seems to be the culprit in my case. I do run NoScript, but > I'm pretty sure that I had memory consumption issues before I added the > NoScript addon. I keep a huge number of tabs open and I've seen Firefox > consume 40+ GB of memory (I've currently got a lot of RAM and swap > available on my desktop). Firefox memory consumption is what finally > motivated me to do a reinstall to switch from i386 to amd64 several > years ago, and since then was the motivation for a couple of RAM > upgrades. > > Very recent versions of Firefox seem to have fixed this problem for me. > I think this was fixed in the version 54 to 55 upgrade. I probably have > 300-400 tabs open right now and Firefox memory consumption seems to have > stabilized at a bit over 6 GB. It's been running for the last eight > days. > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > I have also seen significant improvements in both memory use and responsiveness in the last couple of releases. I do use noscript, but still saw major delay for no obvious reason for JavaScript heavy sites like Google applications and Facebook. These appeared rather around v48 and disappeared around v54. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683