10 Replies Latest reply: Jul 23, 2010 11:00 AM by Stefan Bäckstrand RSS

    SR3 Memory Issue (9.0.7440.8)

    Tim Webber

      We have a document that is about 200megs in memory (size of qvs.exe) when accessed by one person through thin client;. When the document is closed (close the browswer) the memory is not released. We are testing this in our lab. I tried waitng a day to see if the memory would be released but it was not. In our lab document are "never" preloaded nor do we allow more than one document at a time to be loaded into memory.

      Is this a known bug with SR3? I just finished reading a post ( http://community.qlik.com/forums/t/24193.aspx ) that mentioned a memory issue with reloading documents in SR3 (which we have also experienced with SR2 but have not tested with SR3).

        • SR3 Memory Issue (9.0.7440.8)
          kwymore

          We are noticing a similar issue with SR4 (9.00.7469.8). It seems like it is occurring more now that we upgraded the server to Windows 2008 R2 Enterprise. What OS are you running on? It seems like the memory only releases if you reboot the server. At least that has been our experience so far. We are not sure if it is a OS issue with Windows Server 2008 or a QlikView issue.

            • SR3 Memory Issue (9.0.7440.8)
              Tim Webber

              We are on Windows 2003 Server R2. We do not need to reboot to release memeory. I have just been restarting the QV Server service and that does the trick. Have you tried that? Its not good because you have to boot the users but its not as slow and invasive as a server reboot.

              Anyway, my worry is that the memory will continue to grow as more people logon. In fact early tests of Multiple logon so far are showing that as memory is used, its not released. If you watch the memory usage it will go up and down by a bit but the big upward spikes when someone else logs on or another application is accessed by the same account do not seem to get released. My concern is that eventually memory will grow by to the maximum it could be given the number of user-application combinations.

                • SR3 Memory Issue (9.0.7440.8)
                  Johannes Sunden

                  Hey,

                  I'm not a windows memory expert in any way and the more I learn the more complex it gets. However, here's a bit of how I understand the memory usage of QVS in Windows.

                  QVS is designed to use as much available RAM as possible. Ideally, it will be installed on a dedicated server so that it can reserve and eventually allocate the whole lot of RAM available to applications by the OS. QVS uses this RAM for loading documents and cacheing user selections and this is controlled by the "Working set limits" (see ref manual for more info.) that are set in the QEMC. When cacheing documents / states and selections, the next time someone accesses the same information, it will load much faster as the results of the calculations are done and stored in RAM already for easy access by QVS. Since the RAM is not being used for anything else it makes sense to hold the cache as long as possible. If the memory usage of QVS starts going up to the Working Set Limits it will start evaluating what it's holding in memory and begin to release data from the cache to make room for new selection states. So in theory, high memory usage should not be anything to worry about but it should come down a bit after a document is unloaded from memory, after the default 1440 minute unloading timeout, as far as I know.

                    • SR3 Memory Issue (9.0.7440.8)
                      Stefan Bäckstrand

                      Johannes are correct in this sense. I just want to make a couple of additions;

                      1. When terminating a (stateful) client session like a IE Plugin or Developer (Open in Server), only the session data for that client will unload directly. That is a relatively small amount of data.

                      2. When the document timeout hits (and is not superseeded by a Preload setting), only the raw, unaggregated data "tables" of the document will be unloaded. All cache that has been generated, that is all data needed to render the activated chart objects on sheets, will stay in memory.

                      3. Cache will never be cleared until the QVS decides to use the memory for newer/more expensive (sort of) cache objects - and that will most probably only occur if there is a physical memory shortage - that is, when the doc data+cache+state will get close to the configured QVS Working set limit ( the "Low" value, mainly). If a document gets "re-loaded" into memory, and has not changed significantly, the cache will re-attach to that document.

                      This behavior is all by design in v9.