Results 1 to 6 of 6
-
08-12-2009, 09:09 PM #1Junior Guru Wannabe
- Join Date
- Apr 2004
- Posts
- 42
mod_cache problem: error returned while trying to return disk cached data
Hello,
I use Apache 2.2 mod_proxy and mod_cache for a reverse proxy. It works pretty well, the cache folder is about 6-7 GB. But since yesterday I have had abnormal heavy load on the main server with a lot of connections from the proxy server, with the status TIME_WAIT. Before, it had just a few connections.
Code:[user@host ~]$ netstat -n | grep xx.xx.xx.xx | wc -l 456
Code:[Thu Aug 13 08:08:12 2009] [error] (103)Software caused connection abort: cache: error returned while trying to return disk cached data [Thu Aug 13 08:08:32 2009] [error] (103)Software caused connection abort: cache: error returned while trying to return disk cached data [Thu Aug 13 08:08:58 2009] [error] [client 118.69.90.199] request failed: error reading the headers [Thu Aug 13 08:09:02 2009] [error] (103)Software caused connection abort: cache: error returned while trying to return disk cached data [Thu Aug 13 08:09:11 2009] [error] (103)Software caused connection abort: cache: error returned while trying to return disk cached data [Thu Aug 13 08:09:32 2009] [error] (103)Software caused connection abort: cache: error returned while trying to return disk cached data [Thu Aug 13 08:10:02 2009] [error] (103)Software caused connection abort: cache: error returned while trying to return disk cached data
-
08-13-2009, 03:06 AM #2Temporarily Suspended
- Join Date
- Feb 2004
- Location
- UK
- Posts
- 1,431
Hi
May sound a little overkill, but have you tried to reboot the proxy server ?
Thanks
-
08-13-2009, 03:24 AM #3Junior Guru Wannabe
- Join Date
- Apr 2004
- Posts
- 42
Yes I rebooted the VPS twice, change the CacheRoot to another place, update the Apache to the latest version (on Centos 5).
-
08-13-2009, 06:20 AM #4Web Hosting Master
- Join Date
- Jun 2006
- Location
- NYC / Memphis, TN
- Posts
- 1,454
Are you running out of memory? How's the load look? For the TIME_WAIT I'd adjust your ip_conntrack accordingly.
≈ PeakVPN.Com | Complete Privacy VPN | Cloud Hosting | Guaranteed Security | 1Gbps-10Gbps Unmetered
≈ PeakVPN | 31 VPN Servers | 17-Years Experience | Emergency 24/7 Support
≈ Visit us @ PeakVPN.Com (Coming SOON) | ASN: 3915
-
08-13-2009, 06:26 AM #5Junior Guru Wannabe
- Join Date
- Apr 2004
- Posts
- 42
For the web server:
Code:[ttcn@host ~]$ uptime 17:21:32 up 51 days, 3:02, 1 user, load average: 1.35, 1.29, 1.63 [ttcn@host ~]$ free -m total used free shared buffers cached Mem: 768 288 479 0 0 0 -/+ buffers/cache: 288 479 Swap: 0 0 0 [ttcn@host ~]$ netstat -n | grep x.x.x.x | wc -l 287 [ttcn@host ~]$
Code:<VirtualHost> ... <IfModule mod_proxy.c> # Prevent Apache from acting like a forward proxy ProxyRequests Off # Set TCP/IP network buffer size for better throughput (bytes) #ProxyReceiveBufferSize 4096 # Control Client Access <Proxy *> Order Deny,Allow Allow from all </Proxy> ProxyPass /images http://www.example.com/images ProxyPassReverse /images http://www.example.com/images ProxyPass /templates http://www.example.com/templates ProxyPassReverse /templates http://www.example.com/templates ... </IfModule> <IfModule mod_cache.c> CacheDefaultExpire 144000 CacheMaxExpire 2592000 CacheIgnoreCacheControl Off CacheEnable mem /clients CacheEnable mem /templates <IfModule mod_disk_cache.c> CacheEnable disk / CacheDirLength 2 CacheDirLevels 2 CacheMaxFileSize 30000000 CacheRoot /home/ttcn/cache </IfModule> </IfModule> </VirtualHost>
-
08-14-2009, 10:28 AM #6Junior Guru Wannabe
- Join Date
- Apr 2004
- Posts
- 42
The only result when Googling is this topic.
I just delete the cache folder again, change CacheDirLength from 2 to 1. There are less error. Yesterday, for the proxy server, the access log showed 2.7 M entries (660 MB combined log) and the error log had *only* 6168 entries (850 KB). The cache folder grew to 3.1 GB in less a day (it's a tech blog with the reverse proxy served as an edge-caching server).
But I still don't know where the errors come from, and how to fix them.
Similar Threads
-
mod_cache does not cache the homepage but the rest is cached. Any solution?
By EnAlgures in forum Hosting Security and TechnologyReplies: 0Last Post: 03-23-2009, 03:03 PM -
POP email problem (rejected after DATA error)
By GeorgeC in forum Hosting Security and TechnologyReplies: 4Last Post: 08-16-2005, 01:15 AM -
Displaying returned data. Need Help Please
By Tlab5_44 in forum Programming DiscussionReplies: 4Last Post: 09-24-2004, 12:54 PM -
What does this returned email error mean?
By aqi32 in forum Web Hosting LoungeReplies: 2Last Post: 06-02-2004, 02:14 PM -
returned mail error 552
By sollie in forum Dedicated ServerReplies: 6Last Post: 09-06-2002, 11:23 PM