Apache :: Use Disk To Enhance For Page Cache And Database Cache For Disk
Apr 24, 2013
I use apache with CentOS VPS hosting for my blog. I only host one blog in this VPS account. I have 1.5GB RAM and I have 7, 500 page preview per day. My page loading time is 2-3 seconds (according to the pingdom tool).
I want to know what is the best performance (faster web page loading) W3 Total cache option for VPS hosting blog. Currently I use Disk to enhance for page cache and database cache for disk.
it took me one year to develop the disk cache tool which can dramatically boost your host and save your harddisk. it is like supercache,but more cheap and better speed.
check picture to see what it can do.
i will offer free download to test the tool by first 10 people. if u host huge traffic website, do not hesitate to try it. i already test it for half a year. it is time to publish it. pm me or post here to get free download.
does mod_cache use real disk space or real memory to locate "cache"? I mean if i use mod_cache, does my vps/server will use more disk space/memory?
Quote:
mod_cache implements an RFC 2616 compliant HTTP content cache that can be used to cache either local or proxied content. mod_cache requires the services of one or more storage management modules. Two storage management modules are included in the base Apache distribution:
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?
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?
Loading a page with ~150 files (most images and js files) i keep runing into "locked requests" that are not comeing back and block the whole page from finishing loading. The files differ every time.
I see this warnings in my error.log (looks like they are connected to the behauviour above).
Code:
[Tue Nov 19 20:38:10.890013 2013] [cache_disk:warn] [pid 216692:tid 15924] (OS 5)Access is denied. : [client x.x.x.x:58963] AH00699: rename tempfile to file failed: C:/temp/cache/aptmpcBQArf -> C:/temp/cache/H8Cta/9ha4U/Uhhhs/OlQfU/1Q.data,
We have a Joomla based website and we are using the inbuilt cache to make the website fast enough for our users... but it really isn't working well... i would say.
The Joomla Cache is very limited and we were thinking if we can enable a server side cache for apache/php or something like that... which would work above Joomla and make all the contents cacheble.
i already setup caching for html, images, css, js etc. but my pages are dynamically generated by CMS like wordpress and similar.Is there any apache module or any clever way how i can cache whole dynamically generated page on my server?I mean like i have 6GB ram free, so i would like to dedicate like 3gb for this cache.
can a Xen disk image be converted to a diskpartition?
Someone is asking whether I can host his disk image at his current host, which he is leaving for poor I/O (wonder why that would be ). I can host a diskimage, but I don't like diskimages (slow, and 100GB isn't very 'comfortable' either). Is there any way out there to convert a disk image into a normal partition?
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.
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.)
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.
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.
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.
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)
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?