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 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.
-
@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.
-
@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.
-
Did I understand correctly that it's a Java application? If so, how are you launching/running it? What CLI command you using?
-
@travisdh1 said in Do you flush ? the Linux RAM cache buffer.:
@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.
While impacting IO.
-
@tim_g said in Do you flush ? the Linux RAM cache buffer.:
Did I understand correctly that it's a Java application? If so, how are you launching/running it? What CLI command you using?
Oh i know they use a whole file for those arguments, ill see if i can check that and get back to you, what I can recall currently is- xms 512 and -xmx 2028
-
Interesting, I can keep doing this every week or 2 weeks at time where the software is not being utilized (night time) and that will keep things going till we fix it permanently.
Reboot sounds smart and safe option as well, but I have noticed that the application does not automatically launch on reboots, sometimes it gets stuck and need a couple of services restarts and lib cache folder to be deleted, so I avoid reboots, especially since the web application can take up to 5 mins to start up.
It is good to know that flushing should not create problems.
-
@emad-r said in Do you flush ? the Linux RAM cache buffer.:
Interesting, I can keep doing this every week or 2 weeks at time where the software is not being utilized (night time) and that will keep things going till we fix it permanently.
Reboot sounds smart and safe option as well, but I have noticed that the application does not automatically launch on reboots, sometimes it gets stuck and need a couple of services restarts and lib cache folder to be deleted, so I avoid reboots, especially since the web application can take up to 5 mins to start up.
It is good to know that flushing should not create problems.
It takes 5 minutes for the web app to load? WTF. Yeah you definitely have some issues here with the application.
You need to be in a mode to not worry about a reboot.
Write a script to check if everything came up correctly, and if not have it restart the services.
Have the script run every few minutes or something.
-
@emad-r said in Do you flush ? the Linux RAM cache buffer.:
@tim_g said in Do you flush ? the Linux RAM cache buffer.:
Did I understand correctly that it's a Java application? If so, how are you launching/running it? What CLI command you using?
Oh i know they use a whole file for those arguments, ill see if i can check that and get back to you, what I can recall currently is- xms 512 and -xmx 2028
Is that enough memory to start the java application? That means you are starting it with 512MB of RAM and giving it a max of 2028 MB.