-   Linux - Newbie (
-   -   how do you clear the cache? (

eagletalontim 01-11-2006 01:45 PM

how do you clear the cache?
my server was under a high load, and the load is not off of it. my cache is still at 47%, and there are no programs running. I have linux suse 10.0 how do i clear the cache. anything that i can do to speed up everything....besides running in console mode? also, is there a way to set how much cache is allowed?


bosewicht 01-11-2006 02:11 PM

look around for cache enable in httpd.conf. You can clear the cache in /var/cache/httpd

mod_cache is resposible for the cache.
these are the actual modules though, i think. I'm not at a box running httpd right now

eagletalontim 01-11-2006 02:16 PM

ok, i do not have an httpd anything in the /var/cache/ area. all i see is folders. not sure if i can delete them to clear the memory or not

bosewicht 01-11-2006 02:25 PM

take a look at httpd.conf and look around for cache

eagletalontim 01-11-2006 02:29 PM

nothing in there about cache :( the only httpd.conf that i could find was in /etc/apache2/

bosewicht 01-11-2006 02:35 PM

right, I think there may be a couple of lines like below in there

# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#CacheRoot "/var/cache/apache2"
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
#CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1

eagletalontim 01-11-2006 02:39 PM

nope :( no where in the entire file does it say cache or anything. it has "/var/apache2/error_log" as the only thing at is used from the /var/ folder

bosewicht 01-11-2006 02:51 PM

for the time being, i would restart apache, that should clear the cache. Maybe google around or search here for setting up the cache or something. I'm really at a loss

pixellany 01-11-2006 02:53 PM

Go to an ATM, and type "rm -rf *"

Sorry--I couldn't resist......;)

eagletalontim 01-11-2006 02:53 PM

lol...ok i rebooted the server, and it helped a little. i really appreciate your help. I do have a question though.... do you know of any bandwidth monitoring tools that i can use? something that will work in KDE or some kind of graphical user interface?

bosewicht 01-11-2006 03:01 PM

hmmm, gui? here are a few. some have a GUI some don't, but don't limit yourself to the GUI, over time you'll prefer to be without it a lot.

Connection Monitor is a connection and bandwidth monitoring program

Netbrake is an utility to limit the bandwidth used by a process

This tool can show speed of any network interfaces.

A daemon which grabs bandwidth data and generates a flow chart diagram

Generates text and graphical readout of the current bandwidth usage.

Portable bandwidth monitor and rate estimator

Tinkster 01-11-2006 03:05 PM

To the OP:

What exactly did you mean when you talked about "cache"?


All times are GMT -5. The time now is 01:10 PM.