ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Do you flush ? the Linux RAM cache buffer.

    IT Discussion
    linux ram cache buffer
    7
    25
    2.2k
    Loading More Posts
    • 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.
    • Emad RE
      Emad R
      last edited by Emad R

      Hi,

      We have web production system, hosting an electronic medical record system, that is only used on normal working hours 8am-5pm.

      We ran into issue, and we are abit uncertain it is related to memory leak of specific library (after 28 days the system gave Java exception that physical RAM is less than 3 GB thus will not run a Java command) or linux RAM caching, the linux OS is not the latest it is centos 6.7 and we can not update it (vendor specific)

      One of the possible solutions or workarounds I proposed was to schedule this command on weekly basis at night:
      "sync; echo 1 > /proc/sys/vm/drop_caches"

      After it ran the ram cache using free -m was 14 GB and it cleared, the next day got to 6GB at the end of working day.

      I know the best solution is to ensure there is not memory leak especially since we use JAVA (we are working on this with vendor), however I am asking if any of you using production systems and scheduling this command

      "sync; echo 1 > /proc/sys/vm/drop_caches"

      To avoid reboots? to ensure there are always free ram ? any downsides ?

      DashrenderD travisdh1T 2 Replies Last reply Reply Quote 0
      • stacksofplatesS
        stacksofplates
        last edited by

        centos 6.7 and we can not update it (vendor specific)

        Please tell me this isn’t public facing with a portal or something. I don’t think 6.7 even has EUS anymore since it’s past 24 months from the release.

        I honestly have not had an issue like this so I can’t really give any insight.

        What software is this?

        Emad RE 1 Reply Last reply Reply Quote 0
        • DashrenderD
          Dashrender @Emad R
          last edited by

          @emad-r said in Do you flush ? the Linux RAM cache buffer.:

          , the linux OS is not the latest it is centos 6.7 and we can not update it (vendor specific)

          OMG - say it isn't so - you mean platforms other than Windows have this issue? I just can't believe it /sarcasm off

          stacksofplatesS scottalanmillerS 2 Replies Last reply Reply Quote 0
          • stacksofplatesS
            stacksofplates @Dashrender
            last edited by

            @dashrender said in Do you flush ? the Linux RAM cache buffer.:

            @emad-r said in Do you flush ? the Linux RAM cache buffer.:

            , the linux OS is not the latest it is centos 6.7 and we can not update it (vendor specific)

            OMG - say it isn't so - you mean platforms other than Windows have this issue? I just can't believe it /sarcasm off

            Sadly we have software that required something similar to be “supported”. We do internal QA of all of our software and found that being on 7.4 vs 7.3 made no difference so we updated. It actually works better on 7.4 anyway.

            Emad RE 1 Reply Last reply Reply Quote 0
            • Emad RE
              Emad R @stacksofplates
              last edited by

              @stacksofplates said in Do you flush ? the Linux RAM cache buffer.:

              ted”. We do internal QA of all of our so

              theoretically it should work on 6.8 but I cant make that decision.
              No its not internet facing.

              1 Reply Last reply Reply Quote 0
              • Emad RE
                Emad R @stacksofplates
                last edited by Emad R

                @stacksofplates

                It is software from software company with 5000+ employees
                and are in 14 countries.

                It really not the vendor 100% fault, our EMR manager is semi-nice looking female + expat = that what matters where I work.

                DashrenderD stacksofplatesS 3 Replies Last reply Reply Quote 0
                • DashrenderD
                  Dashrender @Emad R
                  last edited by

                  @emad-r said in Do you flush ? the Linux RAM cache buffer.:

                  @stacksofplates

                  It is software from software company with 5000+ employees
                  and are in 14 countries.

                  The software is made by a company with 5000+ employees? what difference does this make?

                  1 Reply Last reply Reply Quote 0
                  • DashrenderD
                    Dashrender @Emad R
                    last edited by

                    @emad-r said in Do you flush ? the Linux RAM cache buffer.:

                    @stacksofplates
                    It really not the vendor 100% fault, our EMR manager is semi-nice looking female + expat = that what matters where I work.

                    I'm also not sure how this plays into it either?

                    stacksofplatesS JaredBuschJ scottalanmillerS 3 Replies Last reply Reply Quote 0
                    • stacksofplatesS
                      stacksofplates @Dashrender
                      last edited by

                      @dashrender said in Do you flush ? the Linux RAM cache buffer.:

                      @emad-r said in Do you flush ? the Linux RAM cache buffer.:

                      @stacksofplates
                      It really not the vendor 100% fault, our EMR manager is semi-nice looking female + expat = that what matters where I work.

                      I'm also not sure how this plays into it either?

                      I think he means that people are going to listen to her even if she makes bad decisions.

                      1 Reply Last reply Reply Quote 0
                      • stacksofplatesS
                        stacksofplates @Emad R
                        last edited by

                        @emad-r said in Do you flush ? the Linux RAM cache buffer.:

                        @stacksofplates

                        It is software from software company with 5000+ employees
                        and are in 14 countries.

                        It really not the vendor 100% fault, our EMR manager is semi-nice looking female + expat = that what matters where I work.

                        I only ask because I knew of one that ran on CentOS but never knew what version. It's probably not the one I'm thinking of.

                        1 Reply Last reply Reply Quote 0
                        • JaredBuschJ
                          JaredBusch @Dashrender
                          last edited by

                          @dashrender said in Do you flush ? the Linux RAM cache buffer.:

                          @emad-r said in Do you flush ? the Linux RAM cache buffer.:

                          @stacksofplates
                          It really not the vendor 100% fault, our EMR manager is semi-nice looking female + expat = that what matters where I work.

                          I'm also not sure how this plays into it either?

                          How dense are you?

                          DashrenderD 2 Replies Last reply Reply Quote 0
                          • DashrenderD
                            Dashrender @JaredBusch
                            last edited by

                            @jaredbusch said in Do you flush ? the Linux RAM cache buffer.:

                            @dashrender said in Do you flush ? the Linux RAM cache buffer.:

                            @emad-r said in Do you flush ? the Linux RAM cache buffer.:

                            @stacksofplates
                            It really not the vendor 100% fault, our EMR manager is semi-nice looking female + expat = that what matters where I work.

                            I'm also not sure how this plays into it either?

                            How dense are you?

                            apparently pretty.

                            1 Reply Last reply Reply Quote 0
                            • DashrenderD
                              Dashrender @JaredBusch
                              last edited by

                              @jaredbusch said in Do you flush ? the Linux RAM cache buffer.:

                              @dashrender said in Do you flush ? the Linux RAM cache buffer.:

                              @emad-r said in Do you flush ? the Linux RAM cache buffer.:

                              @stacksofplates
                              It really not the vendor 100% fault, our EMR manager is semi-nice looking female + expat = that what matters where I work.

                              I'm also not sure how this plays into it either?

                              How dense are you?

                              In reading that again - is he saying that because he's not a hot lookin' expat, that his ideas are worthless? if not, then again - I have no clue what's he's on about.

                              1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @Dashrender
                                last edited by

                                @dashrender said in Do you flush ? the Linux RAM cache buffer.:

                                @emad-r said in Do you flush ? the Linux RAM cache buffer.:

                                , the linux OS is not the latest it is centos 6.7 and we can not update it (vendor specific)

                                OMG - say it isn't so - you mean platforms other than Windows have this issue? I just can't believe it /sarcasm off

                                The issue is the app, not the OS.

                                DashrenderD 1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @Dashrender
                                  last edited by

                                  @dashrender said in Do you flush ? the Linux RAM cache buffer.:

                                  @emad-r said in Do you flush ? the Linux RAM cache buffer.:

                                  @stacksofplates
                                  It really not the vendor 100% fault, our EMR manager is semi-nice looking female + expat = that what matters where I work.

                                  I'm also not sure how this plays into it either?

                                  He's saying he works in the real world where a hot sales girl has more sway than the IT team.

                                  1 Reply Last reply Reply Quote 1
                                  • DashrenderD
                                    Dashrender @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in Do you flush ? the Linux RAM cache buffer.:

                                    @dashrender said in Do you flush ? the Linux RAM cache buffer.:

                                    @emad-r said in Do you flush ? the Linux RAM cache buffer.:

                                    , the linux OS is not the latest it is centos 6.7 and we can not update it (vendor specific)

                                    OMG - say it isn't so - you mean platforms other than Windows have this issue? I just can't believe it /sarcasm off

                                    The issue is the app, not the OS.

                                    Yes Scott I know... but this is generally something much more associated with Windows than other platforms. Of course this in no way implies that it never happens on other platforms...

                                    oh and you did see the /sarcasm off part, right?

                                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller
                                      last edited by

                                      I never use cache dropping. Any reason you don't just reboot? I mean both are pretty awful, but if this system is critical it'd be rebooting regularly anyway. Might as well do the two together.

                                      1 Reply Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller @Dashrender
                                        last edited by

                                        @dashrender said in Do you flush ? the Linux RAM cache buffer.:

                                        @scottalanmiller said in Do you flush ? the Linux RAM cache buffer.:

                                        @dashrender said in Do you flush ? the Linux RAM cache buffer.:

                                        @emad-r said in Do you flush ? the Linux RAM cache buffer.:

                                        , the linux OS is not the latest it is centos 6.7 and we can not update it (vendor specific)

                                        OMG - say it isn't so - you mean platforms other than Windows have this issue? I just can't believe it /sarcasm off

                                        The issue is the app, not the OS.

                                        Yes Scott I know... but this is generally something much more associated with Windows than other platforms. Of course this in no way implies that it never happens on other platforms...

                                        oh and you did see the /sarcasm off part, right?

                                        I see the sarcasm bit but don't understand it nonetheless.

                                        1 Reply Last reply Reply Quote 0
                                        • travisdh1T
                                          travisdh1 @Emad R
                                          last edited by

                                          @emad-r Your flushing the kernel level block storage cache, of course there are downsides. I've not run into an issue where flushing the caches actually fixed a memory leak issue, either. All you're doing is delaying the inevitable crash.

                                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                                          • ObsolesceO
                                            Obsolesce
                                            last edited by

                                            Did I understand correctly that it's a Java application? If so, how are you launching/running it? What CLI command you using?

                                            Emad RE 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post