How to clear cache
Hi All!
I run following commands to flush cache but it didnt work # sync; echo 1 > /proc/sys/vm/drop_caches # sync; echo 2 > /proc/sys/vm/drop_caches # sync; echo 3 > /proc/sys/vm/drop_caches need guidance as server is stuck since last night. |
Why did you do that ?.
And why would you want to ?. What is your problem ?. |
Sir server showing Disk size is full due to this reason oracle do not establish connection with clients.
|
More specific details would be needed. Do you mean `df`, like this?
Maybe this web-search would help: finding what intitle:cache has filled up linux disk (I think your commands refer to RAM memory, not disk) Is there a cache directory? Best wishes. Let us know! |
If your disk is "full", how are you going to write
Code:
sync; echo 1 > /proc/sys/vm/drop_caches terminal> Code:
sudo df -hT |
Well, strictly speaking, he can do it because /proc is not a "real" file system. But I don't think that this is going to help his "disk full" problem in any way.
Let us hope that he had the foresight to install LVM = Logical Volume Management on his computer. If he did, all that must be done is to add another physical volume to the "physical storage pool," then assign that storage to the "logical volume" that supports the Oracle database. In a few minutes, and without rebooting the computer, the additional storage will magically appear at this mount-point. I will flatly say that I think every Linux computer ... server, or personal ... should as a matter of course have LVM in place. "Running out of disk space" is extremely difficult to work-out-of if you don't have it; trivial, if you do. |
echo 3 > /proc/sys/vm/drop_caches THIS IS THE BEST WAY TO CLEAR THE CACHES IN SERVERS
|
Are you wanting to flush the cache to "make room" on the disk? Because that's only going to free up perhaps +/- 1\2 a gig.
Good luck. |
/proc is not on-disk.
drop_caches does nothing for recovering disk space, and impedes disk performance. Don't use what you don't understand. End of story. |
@yadheesh: please stop 'necroposting' on old inactive threads. Thank you.
|
hard core get rid of it
Quote:
|
Quote:
I see lots of people taking a "whack-a-mole" approach to problem-solving: they grab on to "the first thing that they Googled," and then just can't let go of it. They also don't think to ask their colleagues for guidance in understanding and resolving the problem: they just start whacking moles. "Stop!! Consider. :confused: Explain. :study: Discuss. Argue. ;) Agree. :idea: Act. :cool:" |
All times are GMT -5. The time now is 09:16 PM. |