Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Memory Utilization

Memory Utilization

Scheduled Pinned Locked Moved The Lounge
sql-serverjsoncsharppythondatabase
33 Posts 24 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R raddevus

    Mike Mullikin wrote:

    Today we see the result of said advice..

    It really does seem that way. All I can think is these apps load everything into memory as a distinct object and then never let it go. It's just crazy -- no lazy loading, no setting things to null after done with use. Just wanton memory eating with no thought.

    R Offline
    R Offline
    Rage
    wrote on last edited by
    #22

    raddevus wrote:

    no lazy loading

    That's unfortunate naming, for once. Loading everything at once IS the lazy way of achieving it. :-D

    Do not escape reality : improve reality !

    1 Reply Last reply
    0
    • M Marc Clifton

      What in gods green earth would require Slack to consume 1/2 Gig of RAM? It's a fucking messaging app!!! Or Postman, which is really nothing but an awful front-end UI for sending REST API calls and receiving responses? Between the two of them, 1GB. Two Visual Studio instances, another 1.5GB. SQL Server + SSMS, 700MB. And don't even get me started on Chrome. 17 tabs and almost 5GB. Close Chrome, restart with exactly the same 17 tabs, and now it uses a meager 2GB. WTF? On a 16GB machine, I had 90% memory utilization (there are other things too, stuff consuming 200MB, etc). F***ing insane.

      Latest Article - Slack-Chatting with you rPi Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

      J Offline
      J Offline
      John Torjo
      wrote on last edited by
      #23

      Apparently, their latest and "greatest" (yeah, just kidding, Slack sucks big time) takes a bit less memory (roughly 350Mb). Still, it's pathetic - and for a messaging app, the only thing I love about it is the ability to scroll using PgUp/PgDn while in the "Message" editbox - which sadly, Skype doesn't have even now. Best, John

      1 Reply Last reply
      0
      • M Marc Clifton

        What in gods green earth would require Slack to consume 1/2 Gig of RAM? It's a fucking messaging app!!! Or Postman, which is really nothing but an awful front-end UI for sending REST API calls and receiving responses? Between the two of them, 1GB. Two Visual Studio instances, another 1.5GB. SQL Server + SSMS, 700MB. And don't even get me started on Chrome. 17 tabs and almost 5GB. Close Chrome, restart with exactly the same 17 tabs, and now it uses a meager 2GB. WTF? On a 16GB machine, I had 90% memory utilization (there are other things too, stuff consuming 200MB, etc). F***ing insane.

        Latest Article - Slack-Chatting with you rPi Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

        S Offline
        S Offline
        Stuart Dootson
        wrote on last edited by
        #24

        Marc Clifton wrote:

        What in gods green earth would require Slack to consume 1/2 Gig of RAM?

        Marc Clifton wrote:

        And don't even get me started on Chrome.

        Slack *is* Chrome... At least, it's built as a Javascript app on [Electron](https://electronjs.org/), which uses Chromium as its display engine...

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        O 1 Reply Last reply
        0
        • M Marc Clifton

          What in gods green earth would require Slack to consume 1/2 Gig of RAM? It's a fucking messaging app!!! Or Postman, which is really nothing but an awful front-end UI for sending REST API calls and receiving responses? Between the two of them, 1GB. Two Visual Studio instances, another 1.5GB. SQL Server + SSMS, 700MB. And don't even get me started on Chrome. 17 tabs and almost 5GB. Close Chrome, restart with exactly the same 17 tabs, and now it uses a meager 2GB. WTF? On a 16GB machine, I had 90% memory utilization (there are other things too, stuff consuming 200MB, etc). F***ing insane.

          Latest Article - Slack-Chatting with you rPi Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

          K Offline
          K Offline
          kalberts
          wrote on last edited by
          #25

          Your point is valid, and it sure is a problem that kids of today never learned the RAM equivalent of the big-O of algorithms Yet it is easy to be misled by too quick observations. If you map a 2 GByte file into RAM, you haveessentially set up 500K page table entries, without bringing any of it into physical RAM. In many cases, just a tiny little fraction of it will ever get into RAM before the application terminates. Checking my RAM use right now, there is slightly above 6 GB "In use", green color in the resource monitor, which means that is any process needs RAM, nothing needs to be paged out - the other process can take over those pages without any fuzz. A mere 35 MB is currently "Modified" and needs to be saved to backing storage before another process takes over. 1.9 MB is in "Standby" - the last user of those pages are no longer using them, but they are frequently used segments, so chances are that another process soon may ask for (parts of) it to be "loaded", which is a null operation of the pages are still in memory. Of course there are cases of software that really needs huge amounts of data space - FEM and huge matrix models (read: weather forecasting) are the classical ones. I am currently testing out Coverity (a code analysis tool) that builds a complete flow graph of a million lines of source code; that fills some space. And then there are those that really shouldn't need more than a handful of MB, but requires a few hundred. Or a couple GB. Yet, if it requires a GB during startup, and then that memory is paged out (which is a null operation for code segments), leaving a working set of a dozen MB for continued running, it won't slow down your other programs very much. Only if it actually addresses RAM "all over the place", continously maintaining a huge working set, is there something to worry about. Some programs are that way. But lots of users are screaming out because they see huge numbers, without understanding what the numbers represent.

          1 Reply Last reply
          0
          • M Marc Clifton

            What in gods green earth would require Slack to consume 1/2 Gig of RAM? It's a fucking messaging app!!! Or Postman, which is really nothing but an awful front-end UI for sending REST API calls and receiving responses? Between the two of them, 1GB. Two Visual Studio instances, another 1.5GB. SQL Server + SSMS, 700MB. And don't even get me started on Chrome. 17 tabs and almost 5GB. Close Chrome, restart with exactly the same 17 tabs, and now it uses a meager 2GB. WTF? On a 16GB machine, I had 90% memory utilization (there are other things too, stuff consuming 200MB, etc). F***ing insane.

            Latest Article - Slack-Chatting with you rPi Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

            D Offline
            D Offline
            DerekT P
            wrote on last edited by
            #26

            Marc Clifton wrote:

            17 tabs and almost 5GB. Close Chrome, restart with exactly the same 17 tabs, and now it uses a meager 2GB.

            Don't necessarily blame Chrome for that one. I worked on a project a few years ago, a "web designer" had built the front end and I was supposed to make the back-end work. The page loaded fine (apart from the 20 or so errors thrown up in the console, that the "designer" had never looked at); but it then used about 1Mb every 5 seconds until Chrome crashed or Windows ground to a total halt. Never did find exactly what the issue was, but thinning out the 200+ stylesheets and script references made a big difference. Recoded the script to just use JQuery plus about 100 lines of custom code and all was well. A lot of websites seem to be built by designers just throwing in every possible framework and widget because they can't be bothered to style something by hand and don't know how to do even basic scripting. Sorry - inadvertently entered rant mode there...

            1 Reply Last reply
            0
            • L Lost User

              surely the OS can handle that ...oh wait, it's winduds.

              Message Signature (Click to edit ->)

              A Offline
              A Offline
              Andre Pereira
              wrote on last edited by
              #27

              If you plan to run multiple OSes, you're advised to pack a lot of RAM, whichever your host OS is. Because the guest OS (Chrome) will not be appeased by single digits gigs of RAM.

              1 Reply Last reply
              0
              • M Marc Clifton

                What in gods green earth would require Slack to consume 1/2 Gig of RAM? It's a fucking messaging app!!! Or Postman, which is really nothing but an awful front-end UI for sending REST API calls and receiving responses? Between the two of them, 1GB. Two Visual Studio instances, another 1.5GB. SQL Server + SSMS, 700MB. And don't even get me started on Chrome. 17 tabs and almost 5GB. Close Chrome, restart with exactly the same 17 tabs, and now it uses a meager 2GB. WTF? On a 16GB machine, I had 90% memory utilization (there are other things too, stuff consuming 200MB, etc). F***ing insane.

                Latest Article - Slack-Chatting with you rPi Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                A Offline
                A Offline
                Andre Pereira
                wrote on last edited by
                #28

                Welcome to 2019. Text editors are a browser now. Messaging apps are browser now. IDEs are a browser now. Every browser is Chrome. Chrome will take 1-2GB for every instance. F**k you if you want a pleasurable experience, go buy the new MacBook i9 with 64 GB of RAM.

                1 Reply Last reply
                0
                • S Stuart Dootson

                  Marc Clifton wrote:

                  What in gods green earth would require Slack to consume 1/2 Gig of RAM?

                  Marc Clifton wrote:

                  And don't even get me started on Chrome.

                  Slack *is* Chrome... At least, it's built as a Javascript app on [Electron](https://electronjs.org/), which uses Chromium as its display engine...

                  Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                  O Offline
                  O Offline
                  obermd
                  wrote on last edited by
                  #29

                  Stuart Dootson wrote:

                  Slack is Chrome... At least, it's built as a Javascript app on Electron, which uses Chromium as its display engine...

                  And therein lies the problem.

                  1 Reply Last reply
                  0
                  • M Marc Clifton

                    What in gods green earth would require Slack to consume 1/2 Gig of RAM? It's a fucking messaging app!!! Or Postman, which is really nothing but an awful front-end UI for sending REST API calls and receiving responses? Between the two of them, 1GB. Two Visual Studio instances, another 1.5GB. SQL Server + SSMS, 700MB. And don't even get me started on Chrome. 17 tabs and almost 5GB. Close Chrome, restart with exactly the same 17 tabs, and now it uses a meager 2GB. WTF? On a 16GB machine, I had 90% memory utilization (there are other things too, stuff consuming 200MB, etc). F***ing insane.

                    Latest Article - Slack-Chatting with you rPi Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                    G Offline
                    G Offline
                    Gary Wheeler
                    wrote on last edited by
                    #30

                    Just try implementing ISlackFactoryDefaultAttachmentConnectionCreatorFactoryMetaEnumeratorFactoryInstantiator without using 0.5GB of RAM.

                    Software Zen: delete this;

                    1 Reply Last reply
                    0
                    • M Marc Clifton

                      What in gods green earth would require Slack to consume 1/2 Gig of RAM? It's a fucking messaging app!!! Or Postman, which is really nothing but an awful front-end UI for sending REST API calls and receiving responses? Between the two of them, 1GB. Two Visual Studio instances, another 1.5GB. SQL Server + SSMS, 700MB. And don't even get me started on Chrome. 17 tabs and almost 5GB. Close Chrome, restart with exactly the same 17 tabs, and now it uses a meager 2GB. WTF? On a 16GB machine, I had 90% memory utilization (there are other things too, stuff consuming 200MB, etc). F***ing insane.

                      Latest Article - Slack-Chatting with you rPi Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                      S Offline
                      S Offline
                      Steven1218
                      wrote on last edited by
                      #31

                      Speaking of memory usage and Chrome, and maybe it is just me. Open several of your favorite websites in separate tabs in Firefox. Then open Chrome (you shouldn't have to do much, maybe go to Google with one tab). Sit back and watch the fun in Task Manager. MOST times on my PC BOTH Firefox and Chrome go off into Not Responding and eating up CPU cycles. Looking at the processes tab, Chrome has a bunch running even though it only has one tab open. Kind of like Chrome has knocked Firefox over in some alley and is rifling through the pockets. Now close Chrome and Firefox is happy again.

                      1 Reply Last reply
                      0
                      • M Marc Clifton

                        What in gods green earth would require Slack to consume 1/2 Gig of RAM? It's a fucking messaging app!!! Or Postman, which is really nothing but an awful front-end UI for sending REST API calls and receiving responses? Between the two of them, 1GB. Two Visual Studio instances, another 1.5GB. SQL Server + SSMS, 700MB. And don't even get me started on Chrome. 17 tabs and almost 5GB. Close Chrome, restart with exactly the same 17 tabs, and now it uses a meager 2GB. WTF? On a 16GB machine, I had 90% memory utilization (there are other things too, stuff consuming 200MB, etc). F***ing insane.

                        Latest Article - Slack-Chatting with you rPi Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #32

                        "Write software today that will run on the computers of tomorrow". There's an upgrade in your future.

                        "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

                        1 Reply Last reply
                        0
                        • M Marc Clifton

                          What in gods green earth would require Slack to consume 1/2 Gig of RAM? It's a fucking messaging app!!! Or Postman, which is really nothing but an awful front-end UI for sending REST API calls and receiving responses? Between the two of them, 1GB. Two Visual Studio instances, another 1.5GB. SQL Server + SSMS, 700MB. And don't even get me started on Chrome. 17 tabs and almost 5GB. Close Chrome, restart with exactly the same 17 tabs, and now it uses a meager 2GB. WTF? On a 16GB machine, I had 90% memory utilization (there are other things too, stuff consuming 200MB, etc). F***ing insane.

                          Latest Article - Slack-Chatting with you rPi Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                          J Offline
                          J Offline
                          jschell
                          wrote on last edited by
                          #33

                          Marc Clifton wrote:

                          WTF? On a 16GB machine, I had 90% memory utilization

                          Time to add some more memory? Looks to be about $100 for another 16gb. Or go back to the good ol' days when real men knew how to program in bytes and only needed 16k to do everything that anyone could ever possibly want to do. Altair 8800 Clone[^]

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups