Flush Cache On CentOS

Jun 15, 2007

How do I flush the cache on CentOS cache and Buffer or either one.

on top command I see a lot of ram in cache and I want to flush the cache.

How do I do that? any kommands?



ADVERTISEMENT

Mysql: Schedule Flush Query Cache

Dec 5, 2007

I want to run flush query cache, saying once a week. Is there anyway to schedule it, so system can do it automatically? Currently, I have to login server, and run it manually

View 1 Replies View Related

Virtuozzo Centos 64-bit Vps Not Using Any Ram For Buffers Or Cache

Apr 25, 2009

I have a virtuozzo vps account 64-bit centos running whm/cpanel.

I've been having an issue with high load average at times while very little cpu is being used and there is plenty of ram free, and in looking into this, I've run into another thing that seems very odd to me:

free
total used free shared buffers cached
Mem: 786432 179944 606488 0 0 0
-/+ buffers/cache: 179944 606488

top - 22:29:52 up 15:30, 1 user, load average: 1.23, 1.55, 1.12
Tasks: 74 total, 1 running, 72 sleeping, 0 stopped, 1 zombie
Cpu(s): 0.0%us, 0.1%sy, 0.0%ni, 88.8%id, 11.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 786432k total, 174784k used, 611648k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached

uname -r
2.6.18-028stab060.8
No memory being used for buffers or cache.

why no ram is being used to buffer/cache slower disk io?

View 3 Replies View Related

Flush CSF (csf.deny)

May 15, 2008

How can flush csf blocked ips? (csf.deny)

View 4 Replies View Related

I Have To Flush Iptables On Every Reboot

Jun 27, 2007

I'm running CentOS 4.4 32 bit.

At the moment every time I reboot my server I have to execute:
# iptables --flush
# iptables --zero

just to be able to access the server. (Though it does allow SSH to access before executing those).

And I figured out that I must do something to /etc/sysconfig/iptables to permanently be able to access the server without those commands after reboot. Right?

Below is the file's contents:

# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited COMMIT

What do I need to do?

View 1 Replies View Related

Flush CPHulk Database

Apr 25, 2009

do you know how to flush out Flush cPHulk Database weekly? I dont know how i can set up a cron for that. this is because the expiration of brute force lasts for 2 weeks which is too long for the clients

View 3 Replies View Related

Failed To Flush Buffer

May 28, 2008

I'm getting this on my VPS:

Notice: ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush. in /home/.../download_ip.php on line 215

What is causing this? Memory Limit in PHP? or something else?

View 5 Replies View Related

Run Iptables --flush And Down Server

Aug 15, 2007

i run iptables --flush my server go to full down and must go to restart

View 6 Replies View Related

After Flush+zero Iptables, Will A New Iptables Ban Work

Jan 5, 2008

I execute the following commands, in the following order:

iptables --flush
iptables --zero
iptables -A INPUT -s 218.65.12.161 -j DROP

will that last command successfully ban that IP until reboot?

If not, what needs to be done? I can't access my site if I don't flush + zero iptables first but I need to be able to ban with iptables.

View 2 Replies View Related

DNS Cache

Apr 17, 2009

I have moved my domain out of hostgator like a month ago..

[url]

The whois shows my new nameservers and IP

Why is my page being redirected to hostgator suspended page.

My domain is not even registered with them

the domain is nuzil.com

any reviews about that.

View 14 Replies View Related

Cpu Cache?

Apr 28, 2008

the NOCONA and IRWINDALE are old cpu,

i find the main difference of them is L2 cache (1MA2M),

i want to ask what service need more L2 cache?

for example:a lot of db usage? or httpd? or?

View 3 Replies View Related

Dst Cache Overflow

May 17, 2009

I guess I have finally seen the adverse effects of raising the conntrack table max too high.

May 15 09:13:52 cp4 kernel: [6430723.486626] dst cache overflow
May 15 09:13:52 cp4 kernel: [6430723.622616] dst cache overflow
May 15 09:13:56 cp4 kernel: [6430727.562862] dst cache overflow
May 15 09:13:56 cp4 kernel: [6430727.698868] dst cache overflow
May 15 09:13:56 cp4 kernel: [6430727.844221] dst cache overflow
May 15 09:13:56 cp4 kernel: [6430727.991276] dst cache overflow
May 15 09:13:56 cp4 kernel: [6430728.131962] dst cache overflow

I got tons of these during an attack today. I have googled around for a lil while and not have been able to find any useful info on raising this cache level up. Would anyone here know how to do this?

I see no sysctl settings or anything of that nature for it.

View 0 Replies View Related

Page Cache

Jul 25, 2009

I'm running shared hosting and would like to keep the amount kept in cache down so that there is always more memory free... how would i go about doing that?

are these values good?

echo 20 > /proc/sys/vm/dirty_background_ratio

echo 60 > /proc/sys/vm/dirty_ratio

View 1 Replies View Related

Server Cache

Oct 1, 2009

I have reseller account from small web service company.

they are great and better than the famous company.

but I have one problem. I have personal blog, some time I don't see the new comment, also my visitor see the comment before 4 days ago only.

and there is vb forum, some times new member can't login and only you see the old topic, and some times you see everything ok and up to date.

me and all my visitor have the same problem and that can't be from internet service provider because they are from several country.

I had such problem before 4 years and it was because server Cache.

I didn't name the company because they are great and I don't want to blame them before I know certainly what cause the problem.

View 6 Replies View Related

DNS Cache Poisoning

Mar 19, 2008

What tools do you use to check for DNS Cache Poisoning ? Is there any way it can be prevented and is the problem very prevalent?

View 1 Replies View Related

PHP And Cache-Control

Jan 27, 2008

I seem to have the opposite problem of what most people complain about... I'm using some custom-built PHP scripts, the output of which is not getting cached. I want the output cached, because it doesn't change often.

If it's relevant, I'm using ob_start() to serve up a GZIP-compressed page.

I start off with a header("Cache-Control: maxage=3600, must-revalidate"). Yes, it's first, and yes, it's showing up properly in the browser.

However, requesting the page again returns an HTTP 200, not the 304 I'm expecting. It's pulling down the whole page again. It's not changing in between requests, and I'm simply visiting the URL again, not hitting Refresh. (Although it really shouldn't matter.)

View 1 Replies View Related

Mysql Cache On A Vps

Apr 22, 2007

[url]

has an article on mysql query cache.
It notes that in the mysql config file, having

query-cache-type = 1

sets the mysql query cache.

In mysql I note that

SHOW VARIABLES LIKE '%query_cache%';

outputs

+-------------------+---------+
| Variable_name | Value |
+-------------------+---------+
| have_query_cache | YES |

which indicates that cache is set, but...

find . -name "my.cnf"

./usr/local/cpanel/whostmgr/my.cnf
./etc/my.cnf

shows only these

set-variable = max_connections=500
safe-show-database

So where has query cache been set?

At the server level?

If so, am I able to set the query_cache_size and if so, which path?

Anyone have any comments on their mysql optimization on a VPS?

View 0 Replies View Related

DNS/Proxy Cache

Jul 15, 2007

I made changes in httpd.conf to redirect website to another website; after 15min I removed redirect but until now when client request website they are redirecting.
I'm sure I remove redirect.

we are locating in UAE, UAE has transparent proxy for all Internet connections so I think the problem in proxy cache, How i can confirm it? then can I avoid it ?

also when I put dot "." at the end of link site working without redirect otherwise it's not working.

View 6 Replies View Related

Query Cache Denied

Jun 29, 2009

what does this mean? its been flooding /var/log/messages

Jun 28 08:12:50 host named[7649]: client 209.86.63.238#9427: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 209.86.63.230#42462: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 200.23.242.203#37863: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 212.93.151.237#8080: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 212.202.215.18#35119: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 212.93.151.237#40106: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 209.86.63.231#51272: query (cache) 'root.domain.tld/A/IN' denied

View 5 Replies View Related

Getting Around A Corporate Proxy Cache

Oct 7, 2009

I'm assuming a corporate proxy cache is what they have set up. I have a client and every time I send them changes to a temporary page I'm hosting for review they can't see it.

They can hit refresh over and over but never see the new updates unless I change the name of the folder its in.

This is very annoying and it only happens with them and one other corporate client i have. They check on multiple computers and it will never refresh and load the new changes. I think this is their network cache that their IT dept. set up.

How can I get around this? I tried an htaccess trick I looked up for expiring files but it didnt work.

These files are on a shared hosting of mine on an Apache server.

View 1 Replies View Related

Edit Linux Cache

Jul 5, 2009

root@host# free
total used free shared buffers cached
Mem: 4016936 2598976 1417960 0 138424 1558652
-/+ buffers/cache: 901900 3115036
Swap: 5275640 0 5275640
Eventually, the cache reaches 2600000 and i would like to keep the cache smaller so that the free RAM is always steady around 500k for when a lot of traffic comes through.

is there a way to clear the old cache out faster?

View 4 Replies View Related

EAccerlator And Cache Dir/RamDisk

Jul 9, 2009

How do I setup a RamDisk or a tmpfs mount? I want to setup cache_dir in memory.

My current settings:

extension="eaccelerator.so"
eaccelerator.shm_size="128"
eaccelerator.cache_dir="/tmp/eac"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="7200"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="1"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys="shm_only"
eaccelerator.sessions="shm_only"
eaccelerator.content="shm_only"

View 5 Replies View Related

Core2Duo E2180 Vs P4 3.0Gz, 2MB Cache

Apr 20, 2008

Which would you choose:

Core2Duo E2180, 1MB Cache
P4 3.0Ghz, 2MB Cache

View 9 Replies View Related

A Few Words About DNS Cache Poisoning

Nov 26, 2007

What is your opinioun on the subject?

How could it be done?

View 1 Replies View Related

Sda: For Cache Data Failed

Aug 11, 2007

We just upgraded our server with 8 brand new seagate cheetah 15k.5's, a battery backup unit, and a 256mb dimm for the raid controller. In the boot process, i noticed an error about caching or something.

After analyzing the dmesg log, i found the error:
sda: asking for cache data failed
sda: assuming drive cache: write through

It seems like the kernel can't get to the raid controllers cache, so it switches to the write through setting.

I've benchmarked the harddisks with the write through, and write back setting. The odd thing is that both settings deliver the same performance.

Normally, write back increases the performance with like 100%... That's why we bought the battery backup unit.

So something is going wrong, but where lays the problem?

Server:

Quote:

8 X seagate cheetah 15k.5, U320, 16mb cache, SCA, 73GB
1 X chenbro backplane, U320, SCA, 2 channels, 8 ports
1 X LSI megaraid 320-2x raid controller, U320, 2 channels, battery pack and 256 upgraded dimm
6 GB DDR PC3200, ECC, CL3
2 X AMD opteron dual cores (4 X 2.0 ghz)

View 3 Replies View Related

Dispatch.fcgi Kept In Cache

May 21, 2007

I have Django (python framework) on a server, and I have a little problem. The application is kept in cache by FastCGI

When you make changes to your application you have to restart it. Touching the file doesn't solve my problem. The only solution I have is renaming the .fcgi file always, and if you use an orifinal file name, it actually works like before, prooving it's kept in cache.

What would you do? A cron job to remove these files maybe?

View 3 Replies View Related

EAccelerator Cache Size

Feb 1, 2007

how big I should set the cache size for eaccelerator?

Here's the information from the control.php

Caching enabled yes
Optimizer enabled yes
Memory usage 100.00% (16.00MB/ 16.00MB)
Free memory 0.00MB
Cached scripts 148
Removed scripts 0
Cached keys 0

View 1 Replies View Related

Cache The Dynamic Url (images)

Oct 3, 2007

I've got an application (java web ) tha dynamically creats images ( with dynamic url - ...tab&vi=nia&h=24&ds=bottom&fn...) - like thumbnails,icons ect.

The think I'm trying to deal with is to force caching theese images by a browser.

When the application starts the server gets images and shows code 200 ( and this images apppers in web browser cache), but after reloding or simply viewing the images from the cache url the server shows again code 200. I'd like to have code 304 - not modified - like when browser gets an image from cache.

The dynamic url for image is being created only once - when the appication starts, and after that it stays unchanged, but I still can't force use the cached images - like when it is a static url - .../image.jpg.

View 10 Replies View Related

Mysql And Query Cache

Jan 4, 2007

What is the good value to set query_cache_size. I have set it to 60 M and here
is the status. Is it good? I am not sure how to check this? Can anyone explain?

query_cache_size=60M

mysql> SHOW STATUS LIKE 'Qcache%';
+-------------------------+----------+
| Variable_name | Value |
+-------------------------+----------+
| Qcache_free_blocks | 5 |
| Qcache_free_memory | 62666440 |
| Qcache_hits | 922 |
| Qcache_inserts | 381 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 565 |
| Qcache_queries_in_cache | 182 |
| Qcache_total_blocks | 400 |
+-------------------------+----------+
8 rows in set (0.00 sec)

View 2 Replies View Related

PHP Accelerators (cache) CONS

May 2, 2007

I am currently wanting to add a cache engine that eases the apache server for my php scripts. I just wanted to make sure there weren't cons; bugs with certain pages that need to be reloaded very quickly? Has any of you already experienced such bugs with these progs? Which cache-accelerator would you suggest for php-mysql apache?

View 3 Replies View Related

When To Add More Ram. Swap/Cache/Buffer

May 23, 2007

When is a good time to add more ram?

Since I got my server its ran with 1gb ram and has kept a free of at least 400mb since that time.

Now withing a few hours all of it is being kept in buffer/cache as the past week an showing about 15mb free (not counting buffer/cache) and has started in on the disk swap of about 400Kb.

So should I upgrade to 2gb now or wait till it goes deeper into the swap, and if so how far into the swap before you'd upgrade?

View 14 Replies View Related

How To Troubleshoot Mmap Cache Problems

Jun 24, 2008

Could someone please help me with some information on how I can troubleshoot this issue?

[warn-phpd] mmap cache can't open /home/sitedir/)

It's happening on all the directories ie: sites on the server. Switching from phpsuexe back to running php dso fixes the issue, but how can I run phpsuexec and fix this problem? Any tips would be very much appreciated.

View 2 Replies View Related

Eaccelerator Cache Emptying Cron

Apr 9, 2009

I'm sure all of you who use eaccelerator know how big the cache can get and that it needs emptied manually. Well at least to my knowledge it does, the only thing I have seen that you can configure is the shm pruning. If anyone does know such a feature with eaccelerator please share. But I also notice a performance decrease and a few php errors mostly related to memory allocations here and there.

Anyway I was piddling around and came up with a command to disable eaccelerator from php.ini, delete the cache folder and then enable it back. I figured this would be good as a daily cron. I would like some input if anyone knows any better ways.

So I wanted to share this in case someone else here has the same problems with eaccelerator cache folder getting huge. If anyone knows a way to make this better or shorter please reply with solution.

Of course this will vary depending on where your php.ini is and where your eaccelerator cache is. Just replace those values with yours. I'm sure there is also a way to use similar commands to find and input these values, again if anyone knows please share.

Code:
find /usr/local/lib -name 'php.ini' | xargs perl -pi -e 's/extension="eaccelerator.so"/;extension="eaccelerator.so"/g' ; rm -rf /usr/lib/php/eacc ; mkdir /usr/lib/php/eacc ; chmod 4777 /usr/lib/php/eacc ; find /usr/local/lib -name 'php.ini' | xargs perl -pi -e 's/;extension="eaccelerator.so"/extension="eaccelerator.so"/g'

View 4 Replies View Related

Cache Systems For Apache In Windows

Mar 27, 2009

I have a fair ammount of load on the server, and I want to cache as much as possible to reduce disk IO. The harddrive is a major bottleneck for performance. The server serve a lot of files larger than 10MB, so I want to cache as much of the files below 10mb as possible.

First off I want to cache around 200k thumbnail files, where around 1000 new gets added every day.

Secondly it would be preferred to cache dynamic files in a way that the file timestamp is checked at a regular interval, and then read again if timestamp has changed.

Is there any free solutions on windows with apache for this?

View 5 Replies View Related

Increasing APC Cache Memory Size

Dec 11, 2008

Right now APC shm_size is set to30 and since I am only using about 20% of the RAM in VPS, I thought it would be best to increase it a bit. Now how do I go about doing that?

View 2 Replies View Related

Media Serving And Cache Daemon

Dec 11, 2008

what I want to do, have a "node" somewhere serve media (static) files from a central server, but cache the static files the first time they are hit, so subsequent requests to the "node" don't require getting the file from the central server.

Is there readily available solution to this?

View 1 Replies View Related

HTTP Headers & Cache-control

Aug 14, 2007

I was running into a problem where PHP was automatically sending the following HTTP headers:

Code:
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
This caused a problem in that my browser (Camino) would not let me view source without reloading the page. For state-based pages, that was a nightmare and meant I couldn't use my main browser for development!

Now that I have identified the problem, I am wondering what the point of those headers are, and whether I need them. I can definitely overwrite them but am not sure if I should.

My web app does set cookies (uses PHP sessions). I believe that it is the setting of the cookie that triggers PHP to send those headers. If I don't set a cookie on a PHP script, those headers are not sent.

how I can manage cache-control properly so that I can view source in Camino? Is no-cache etc. really important if you're setting cookies?

View 0 Replies View Related

Raid Card - Write Caché - SAS 5/iR

Oct 8, 2007

I have bought 4 servers with DELL SAS 5/iR.

All is fine but the writes are very slow; I supose it's because write cache not enabled.

I have enable it and make some test and there is a lot of difference:

[url]


I'm worried about enabling it because if the server goes down I think it can cause disk corruption and loose data and maybe the OS. What do you think about that? Data is a priority!


Disks have this technology: Seagate-exclusive IRAW (Idle Read After Write) enhances data
protection by verifying—during drive idle time—that data in thedrive buffer was properly written.

The servers are on a datacenter and have RAID 1 with Cheetah® 15K.5 SAS 3Gb/s 146.8-GB Hard Drive - ST3146855SS
[url]

I'm also VERY worried about the coments about this card:

[url]

Is it true that the raid don't get rebuilded? If it is like this I don't know why I'm running raid.

View 2 Replies View Related

Buffer Vs Cache In Memory Usage

May 20, 2007

When free is run, what is the difference between bufferd versus cached memory?

View 9 Replies View Related

Mod_cache Does Not Cache The Homepage But The Rest Is Cached

Mar 23, 2009

As many of you may know mod_cache does not cache directory index
files, this can be fixed with mod_rewrite but the index page of the domain (the homepage) seems to be impossible to cache it. The following rules cache the folders but not the homedir (this means that www.thedomain.com/folder is cached but www.thedomain.com is not):
DirectorySlash Off
RewriteEngine On
RewriteCond %{REQUEST_URI} ([^.*])
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_URI}/index.htm" -f
RewriteRule "^(.*)$" "$1/index.htm" [NC,L]
RewriteCond %{REQUEST_URI} ^([^.*])$
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_URI}/index.html" -f
RewriteRule "^(.*)$" "$1/index.html" [NC,L]
RewriteCond %{REQUEST_URI} ^([^.*])$
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_URI}/index.php" -f
RewriteRule "^(.*)$" "$1/index.php" [NC,L]

Note that DirectorySlash should be off (or mod_dir not loaded) in
order to work also with URL that end with no slash

As I said before this will work for any folder but it does not work for public homedir
directory. So when a user visit [url] it does not
work (unless you type the name of the index file: [url]

For me it is critical to make this work in someway, the index homepage
is the main page that needs to be cached in my case (and in many
others).

Do you know any solution for this? I found the first message about
this in the Internet in 2002 but I'm using last version of apache
httpd and still does not work.

If you have no idea about how to fix it, maybe you know some other easy alternative. Lighttpd + mod_cache + mod_deflate are not compatible: "mod_cache can be used in conjunction with other lighttpd plugins (except mod_deflate and mod_secdownload)"

View 0 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved