Hi, Once in a while I try to clean up my tabs. First thing I do is use “merge all windows” to put all tabs into one window.

This often causes a memory clog and firefox get stuck in this state for 10-20 minutes

I have recorded one such instance.

I have tried using the “discard all tabs” addon, unfortunately, it is also getting frozen by the memory clog.

Sometimes I will just reboot my PC as that is faster.

Unfortunately, killing firefox this way, does not save the new tab order, so when I start firefox again, it will have 20+ windows open, which I again, merge all pages and then it clogs again !

So far the only solution I have found is just wait the 20 minutes.

Once the “memory clog” is passed, it runs just fine.

I would like better control over tab discard. and maybe some way of limitting bloat. For instance, I would rather keep a lower number of undiscarded youtube that as they seem to be insanely bloated.

In other cases, for most website I would like to never discard the contents.

In my ideal world, I would like the tabs to get frozen and saved to disk permanently, rather than assuming discard tabs can be reloaded. As if the websites were going to exist forever and discarding a tab is like cleaning a cache.

  • Observer1199@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    The solution to write your own application that does what you want because your workflow is not a use case that browsers are designed for. It’s not bad to wish for features but your workflow is never going to be catered for in a browser and it’s both unreasonable and unrealistic to expect otherwise - hence you need to do it yourself.

    If you can’t or don’t know how to do that yourself, I suggest you listen to the advice everyone else is giving you. Organisation does require ongoing work and given your comments it will likely require a lot of upfront effort to change your browser hygiene habits but once you are more organised it becomes a lot easier and a lot less work to stay on top of things.

    It’s none of my business but I wonder why you feel it’s so important to open 500+ tabs just to buy something small online. Doing research and being informed is good but it seems disproportionate and perhaps talking to a professional might help you with that.

    • interdimensionalmeme@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      browser hygiene habits

      You used that term, and frankly I recoil a bit a this term because of the implication that it’s not a deficiency of the software but that it’s the users who are wrong.

      Still, I typed in the phrase into chatgpt

      And I see “reading lists” as an alternative to bookmarks (that I find to be, straight up unusable)

      So I found this reading list addon give a try.

      https://addons.mozilla.org/en-GB/firefox/addon/reading_list/

      I have a very specific use for a “reading list”, which I take to be something like a FIFO stack of links. And that would be going through youtube videos.

      Putting this in case someone else is reading this thread looking for answers.

      However, it’s a side bar thing, and you have to add links one at a time, can’t select multiple tabs and add them

      As for opening 500+ tabs to buy a thing.

      You do know that sellers now use algorithmic pricing and often there will be hundreds of sellers for the same thing.

      Plus the price will be obfuscated with various artifices that all have to be overcome to find the best seller with the best price.

      Defeating all of that means openning a shit-ton of tabs.

      Here’s an example of the process I’ve designed for aliexpress

      https://github.com/igorlogius/gather-from-tabs/discussions/8

      • Observer1199@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        3 months ago

        You used that term, and frankly I recoil a bit a this term because of the implication that it’s not a deficiency of the software but that it’s the users who are wrong.

        I wouldn’t say FF is deficient in this case - not being designed for your exact use case doesn’t mean there’s anything wrong with it.

        As for opening 500+ tabs to buy a thing.

        You do know that sellers now use algorithmic pricing and often there will be hundreds of sellers for the same thing.

        Plus the price will be obfuscated with various artifices that all have to be overcome to find the best seller with the best price.

        Defeating all of that means openning a shit-ton of tabs.

        I usually only buy things if I agree with the price it’s being sold at. If I don’t I will look elsewhere but ultimately I value my time more than money. Extra money can be earned, time cannot 🤷‍♂️ If you have to drive 100 miles to a fuel station to save 2 cent per gallon, are you actually saving money?

        Here’s an example of the process I’ve designed for aliexpress

        https://github.com/igorlogius/gather-from-tabs/discussions/8

        So it’s a script generating all the tabs?

        • interdimensionalmeme@lemmy.mlOP
          link
          fedilink
          arrow-up
          0
          ·
          3 months ago

          No, I have to setup all the tabs in just the right way. Then for each tabs it gets the price and shipping information I paste that into excel Combine the total together and sort with ascending price Then I repeat that for every quantity value for 1,2,3,4,5,7,10,15,20,25,50,75,100 Then I find the minimum quantity to get the best price.

          This is because if you go to the website and just ask “order by price” it either hides most results, or straight up lies and still place them out of order. It also lies about the shipping cost. But it can’t lie on the last page before clicking buy.

          I expect the internet to continue becoming more deceptive and manipulative in this manner, my method is almost not good enough. If my tools don’t continue to evolve it will simply become impossible to find the best price for anything. It will all become an endless maze where they measure how much mental stamina you’re willing to waste to save another dollar. At that point the price of things will become whatever the maximum you individually will bear.

  • enbyecho@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    You are manually caching web content. Were you aware that (a) your browser does that for you; (b) the internet does that for you ?

    I’m as guilty of this as anyone and can tell you from experience that it’s sutpid.

  • chillhelm@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    I’m not going to tell you that you’re managing your information wrong. I would physically die if I had ever more than 20 tabs (my ADHD couldn’t handle it).

    But I think you might be using the wrong tool. A browser (like Firefox) is not really designed as an information manager. It’s primary purpose is navigating and visualizing web pages. So when you talk about “a few megabytes of text and images” thats not what your browser sees. Your browser handles more than just the text and images. It also handles fetching and prefetching, a browser history for every tab, a JS context and much much more.

    What you want is some kind of personalized archiving system that processes websites into machine processable (ie searchable) structures. Firefox is not that. Maybe data hoarder communities will have the answers you seek.

    • interdimensionalmeme@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      Well so far, it would be too much friction and extra labour to export each tab to external software.

      I’m not even sure what software other than a browser would display live web pages in a more organized manner than firefox ?

      I’m pretty sure I just hit a bug that’s causing firefox to wake up too many tabs and not handle tab discarding correctly. Firefox does seem like the best tool still even if it’s not working right.

      What I would like instead is a browser that treats tabs more like virtual machines that you can roll back, suspend to disk and resume. Little package of data that get frozen in time and are externally searchable.

      Anyway, here’s my setup

      • chillhelm@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        3 months ago

        What I would like instead is a browser that treats tabs more like virtual machines that you can roll back, suspend to disk and resume. Little package of data that get frozen in time and are externally searchable.

        Maybe look at ArchiveBox. IIRC it has pretty much everything you ask for including an import from your browser history and bookmarks.

  • Red Wizard 🪄@lemmygrad.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    3 months ago

    Have you tried increasing the size of your swap memory in windows? Otherwise known as “virtual memory”. Depending on the speed of your drive and available space, you might be able to increase the vertual memory size to get more performance.

    But what about using a page archiving service, even a self-hosted one, like Shiori. Shiori has an extension that can allow for single click page archiving right from the browser. The pages are saved as html files or txt files and it will create a readability version of the file which is just the text and images. You could then search the files and their contents using something like VS Code to search the whole directory where the files are stored. There are plenty of other ways to do that search once you have those archives, though. I think even Windows File Search will search the contents of a txt or html file stored on the device.

    Shiori also has its own search, which is pretty fast, and searches the contents of the archives as well.

    • tyler@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      I came to suggest the same. This looks like either swap mem is completely disabled or that the extension OP is using can’t handle the function they’re trying to do.

  • Etterra@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    The solution is to see a psychotherapist because dude is there something strange happening in your brain and it really needs fixing.

    • interdimensionalmeme@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      I think the machine built to handle hundreds of trillions of operation per second should be better at handling a few gigabytes of text and images.

      • riodoro1@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        3 months ago

        Fuck, you’re welcome to create your own web browser if it’s that easy.

        Oh sorry, i forgot you have a lot of shit going on.

    • interdimensionalmeme@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      Yes, it’s a disease called “having a lot of shit going on and not wanted to spend my afternoon sorting tabs” It is cured by “throwing all tabs in the bin and starting over” because today’s computer are so incredibly weak they can’t handle a few megabytes of text anymore.

      • Sanctus@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        Okay I know people are being rude. You have to understand its not just text. Your browser sends a request to a server for a webpage and it downloads that webpage, all media included. Its not just text. The only solution here is disabling all of your addons and going one by one until the merge all works. Or finding a work flow that doesn’t involve the goal of reaching 20k tabs. Browser are not designed to search through tabs. Firefox has bookmark tags and keywords to search or instantly open a link. But tabs are not meant to be this repository of where you’ve been.

        • interdimensionalmeme@lemmy.mlOP
          link
          fedilink
          arrow-up
          0
          ·
          3 months ago

          I mean, look at how much data a youtube tab actually download, versus how much it occupies in memory. I think the strict memory isolation between tabs, so that one tab crash doesn’t take down the entire browser, has become uneconomical. I think combining some tab memory. Especially tabs of the same websites, especially their libraries, would greatly reduce the memory consumption and probably overall speed. I rarely ever get crashes until I bust both my ram and swap. I would sacrifice some tab isolation to get some memory back.

  • Fetus@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    I terminate Firefox and reopen it any time it’s chewing up my RAM, but I usually don’t have more than 500 tabs open at any one time. My tabs persist when Firefox starts again, but tabs don’t fully load until I click on them again. This saves my memory from getting chewed up immediately, and can usually go a week or so before I need to do it again.

  • Skunk@jlai.lu
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    3 months ago

    I am not sure what you’re working on but from your answers I’ve read you seems to need access to a lot of information with a few keystrokes, like searching for a keyword or tag.

    In my opinion you are using the wrong tool for that. Ditch the browser and learn about the Zettelkasten way of working. It is really powerful for plenty of applications like science, studies, dev, or even the way I use it, author repository of ideas/concepts/stuff I need when writing a book.

    You can do that with several software but I like obsidian for that (and because of all its plugins you could probably find something to automatically copy webpage content)

    On the downside side :

    • You’ll have to learn Zettelkasten, Obsidian etc
    • Obviously do the work of writing (or copy pasting) your vault.

    But on the plus size :

    • You’ll have all the information you need at your fingertips, searchable with keywords, tags, associations etc.
    • Everything is basic text MD files so it will still be readable by any text editor or terminal in the next century.
    • You can have images, run code, do some mathlib, jupyter etc inside.
    • Text is light, easy to store, backup and retrieve.
    • If you do good enough you can have a satisfying visual representation of your new brain, kinda mindmap (which is also possible)

    • interdimensionalmeme@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      Cool I would love to navigate my data in a manner similar to this. However not obsidian, I am in the process of de-googling and I have severe cloud fatigue. But maybe QOwnNotes

      I’m hoping something like Archivebox or squid or some other software can help me, autodump everything in a way that will become accessible to these second party data management software. Hopefully in a manner as transparent as opening a tab.

  • Sanctus@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    If you need quick access to this many pages I suggest organizing bookmarks. As this is what they are meant for. Tabs are meant for active pages you are working with. So anytime you get that many tabs with any browser its gonna run like shit.

    • tyler@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      3 months ago

      Nah, FF handles thousands of tabs just fine. I literally have just as many if not more tabs than OP and have never seen this issue. It’s either from the merge they’re doing or something else. It would be better if y’all just worked under the assumption that this does work and something is otherwise wrong with op’s setup.

      • Sanctus@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        The issue is parsing all that. There is no way you can keep that many tabs readily accessible like tabs are meant to be. Which is why these addons were born and are not official parts of Firefox. This is one of those just because you can doesn’t mean you should situations. I get they’ve adopted this workflow, but reading through this it sounds more like daily driving than actual work. Which makes this even more bizarre, you can’t read them all, they have to reload when you open them after a while (ie download again) so all points are moot. You aren’t saving the page, you are holding onto a shell that will request the page again when you wake it up. If the server went offline never to be seen again your tab will not hold the information.

        With this workflow, it might be better to have a crawler dump everything into folder hierarchies that are content searchable, and then search that like google using specialized software. I dont see any other reason you could even have 1k tabs open efficiently, you aren’t searching through that, might as well google again and follow the purple links.

    • interdimensionalmeme@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      I find organizing bookmarks incredibly tedious. I have bookmarks folder with thousands of tabs in and it’s just easier to use google again to re-find the information than to pick them out of bookmarks. Also tabs just keep the title and URL so you can’t even search the text inside. So, organizing a library of tabs is like a much worse version of google without previews. I also use the session manager addon but again, when you open thousands of tabs, it clogs up the memory almost instantly. It’s taking multiple gigabytes of ram, just to display a few kilobytes of text ! I wish the browser would just render the page as a static searchable text and image and then ditch all the javascript garbage.

      • Sanctus@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        May I ask why you have to have this level of access to thousands of pages? Even for my job I have maybe 8 active that I use Firefox keywords to jump to.

  • 0oWow@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    You’re not likely going to get any real help since you’re insisting on using the browser in an extreme and unconventional way. Your little world is just one browser/OS crash from losing all of those tabs.

    • lemmyvore@feddit.nl
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      What is amazing to me is how some people will come out of the woodwork to tell a person when they think they’re using their browser “wrong”. Just let them be if you have nothing to contribute.

      • 0oWow@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        Feel free to use your browser how you want, but I will feel free to not help you troubleshoot your problem because it won’t help you in the end.

      • jwt@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        3 months ago

        If someone is trying to achieve a goal through (what they might not know are) impossible means, “letting them be” isn’t going to help them.

        Although it might not seem very helpful (and indeed there are better ways of helping) pointing out the flaws in the approach is contributing more than “letting them be”. Doesn’t cost a thing to be civil about it though.

        • lemmyvore@feddit.nl
          link
          fedilink
          English
          arrow-up
          0
          ·
          3 months ago

          What OP is trying to do isn’t impossible it’s actually very interesting. There are lots of people who use tab workflows instead of bookmarks. And I think everybody would benefit from better in-browser search. Just because bookmarks is how it was done 30 years ago doesn’t mean we can’t try new things.

          • jwt@programming.dev
            link
            fedilink
            arrow-up
            0
            ·
            3 months ago

            Unless you bring a solution to the table, taking the position that it isn’t impossible is just cheap contrarianism on your part. Sure we can try new things, but if it doesn’t work and everyone is commenting the approach isn’t helping, then maybe take the hint. Or not, and keep swimming against the stream (in which - seeing OP’s other comments - they seem to be more interested than actually solving the problem)

            • interdimensionalmeme@lemmy.mlOP
              link
              fedilink
              arrow-up
              0
              ·
              3 months ago

              You dream to small Bookmarks suck and are cumbersome They sucked in 1996 and they still suck today ! Bookmarks have apparently been a crutch to make the browser more usable. Like for instance, instead of discarding a whole tab, keep a text index of the html body and make that searchable. But no, it’s an all of nothing thing, either 2gb of youtube javascript per tab, or we only keep URL and tab title.

              Also, you don’t actually need to bring a solution to the table just to say “this thing is not working right” You don’t have to be a mechanic to say “the car is broken” You don’t have to be a doctor to say “this person is sick”

              Clearly my message just need to be said over and over until it gets implemented. It is obvious where browsers are going. A total web awareness platform that remembers everything you’ve ever seen. There will be infinite tabs and a local llm will know it all 7 ways from sunday “Firefox, write a song about the 500 first tabs I’ve seen in June 2017, in the style of a broadway musical”

            • lemmyvore@feddit.nl
              link
              fedilink
              English
              arrow-up
              0
              ·
              3 months ago

              Why would it be impossible to search through tab content if it’s available in memory?

              • jwt@programming.dev
                link
                fedilink
                arrow-up
                0
                ·
                3 months ago

                That’s not how it works. Right now the situation is: it doesn’t work. You claim it should be a workable situation. Show how it should work, don’t ask people to prove a negative.

  • idkicarus@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    Rather than try and force Firefox to deal with thousands of tabs, it might be easier to use an add-on like SingleFile to download the tabs as self-contained HTML files. Then once you have the pages downloaded you can search their contents using free tools like Agent Ransack or DocFetcher.

    If you still want to keep the data in your browser, then how about using a service like Instapaper that lets you save pages you want to read/reference later?