Do you flush ? the Linux RAM cache buffer.
-
@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.