LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-11-2006, 01:45 PM   #1
eagletalontim
Member
 
Registered: Jan 2006
Posts: 34

Rep: Reputation: 15
Question 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?

Thanks!
Tim
 
Old 01-11-2006, 02:11 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
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
apache-mod_disk_cache
apache-mod_cache
apache-mod_proxy
 
Old 01-11-2006, 02:16 PM   #3
eagletalontim
Member
 
Registered: Jan 2006
Posts: 34

Original Poster
Rep: Reputation: 15
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
 
Old 01-11-2006, 02:25 PM   #4
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
take a look at httpd.conf and look around for cache
 
Old 01-11-2006, 02:29 PM   #5
eagletalontim
Member
 
Registered: Jan 2006
Posts: 34

Original Poster
Rep: Reputation: 15
nothing in there about cache the only httpd.conf that i could find was in /etc/apache2/
 
Old 01-11-2006, 02:35 PM   #6
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
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
 
Old 01-11-2006, 02:39 PM   #7
eagletalontim
Member
 
Registered: Jan 2006
Posts: 34

Original Poster
Rep: Reputation: 15
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
 
Old 01-11-2006, 02:51 PM   #8
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
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
 
Old 01-11-2006, 02:53 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Go to an ATM, and type "rm -rf *"

Sorry--I couldn't resist......
 
Old 01-11-2006, 02:53 PM   #10
eagletalontim
Member
 
Registered: Jan 2006
Posts: 34

Original Poster
Rep: Reputation: 15
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?
 
Old 01-11-2006, 03:01 PM   #11
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
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.

conmon
http://freshmeat.net/projects/connmon/
Connection Monitor is a connection and bandwidth monitoring program

netbrake
http://www.hping.org/netbrake/
Netbrake is an utility to limit the bandwidth used by a process

kbandwidth
http://kde-apps.org/content/show.php?content=18939
This tool can show speed of any network interfaces.

bwstats
http://blog.linux-stats.org
A daemon which grabs bandwidth data and generates a flow chart diagram

bwbar
http://www.kernel.org/pub/software/web/bwbar/
Generates text and graphical readout of the current bandwidth usage.

bmon
http://people.suug.ch/~tgr/bmon/
Portable bandwidth monitor and rate estimator
 
Old 01-11-2006, 03:05 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
To the OP:

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



Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
clear or disable file cache acristescu Linux - General 3 11-04-2005 10:25 AM
clear cache remotely [mozilla] dereko Linux - Software 2 10-11-2005 05:56 AM
How do I clear the memory cache on my linux server? robgo777 Linux - Software 2 01-09-2005 01:30 AM
Help me clear ALL dhcp (client) cache! carboncopy Slackware 4 06-28-2004 08:42 AM
Clear cache raysr Linux - Newbie 2 03-26-2004 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration