Your HostICan Community  


Go Back   Your HostICan Community > HostICan Web Hosting > Virtual Private Servers (VPS)

Virtual Private Servers (VPS) Need help with your VPS plan on HostICan? Please feel free to ask and we'll give you the answers!

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-05-2007, 01:07 PM
itwasntme's Avatar
itwasntme itwasntme is offline
Senior Member
 
Join Date: Sep 2007
Posts: 136
Default Broken Pipe Errors

I looked at the Apache error log on my problem-child VPS this morning and saw a bunch of errors like this:
Quote:
[Mon Nov 05 11:15:24 2007] [info] [client 127.0.0.1] (32)Broken pipe: core_output_filter: writing data to the network
According to this post on cPanel's Forums a fix is to add the following to Apache's config file httpd.conf:
Code:
EnableSendfile Off
Apache's web site has this to say about EnableSendfile:
Quote:
This directive controls whether httpd may use the sendfile support from the kernel to transmit file contents to the client. By default, when the handling of a request requires no access to the data within a file -- for example, when delivering a static file -- Apache uses sendfile to deliver the file contents without ever reading the file if the OS supports it.

This sendfile mechanism avoids separate read and send operations, and buffer allocations. But on some platforms or within some filesystems, it is better to disable this feature to avoid operational problems:

* Some platforms may have broken sendfile support that the build system did not detect, especially if the binaries were built on another box and moved to such a machine with broken sendfile support.
* On Linux the use of sendfile triggers TCP-checksum offloading bugs on certain networking cards when using IPv6.
* With a network-mounted DocumentRoot (e.g., NFS or SMB), the kernel may be unable to serve the network file through its own cache.

For server configurations that are vulnerable to these problems, you should disable this feature by specifying:
Code:
 EnableSendfile Off
For NFS or SMB mounted files, this feature may be disabled explicitly for the offending files by specifying:
Code:
  
     EnableSendfile Off  
Based on that information, it sounds like disabling Sendfile would be a bad thing for this server in that it would presumably increase server load.

I looked in my /usr/local/apache/conf/httpd.conf and couldn't find "EnableSendfile" in there.

I'm over my head (again). Can someone who knows more about Apache and HIC's setup tell me what to do about this?
Reply With Quote
  #2  
Old 11-05-2007, 11:35 PM
lnxcode's Avatar
lnxcode lnxcode is offline
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,954
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

You can try to disable it and see where it goes. However, to be honest, I've never played with this feature (never had a reason to)... but I think its worth a shot. Worst comes to worst you can do this:

cd /usr/local/apache/conf/ &&
cp httpd.conf httpd.conf.bkup

Once you've done the above edit the httpd.conf and test it out. In cron you can set:

*/45 * * * * mv httpd.conf httpd.conf.updated && mv httpd.conf.bkup httpd.conf

So every 45 mins it will replace the updated conf with the old conf (before you updated it).
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
Reply

Tags
broken, errors, pipe

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Website broken after planned maintenance from 08.29.2008 bhsizemo Shared Hosting 5 08-31-2008 01:29 AM
Last 300 Errors TaoGem Shared Hosting 1 04-12-2008 10:38 AM
More Database Errors... Shazam Suggestions and Feedback 12 01-10-2008 05:28 PM
Webmail login errors lnxcode Virtual Private Servers (VPS) 2 11-24-2007 08:55 PM
uploading css errors arnonel Virtual Private Servers (VPS) 4 10-10-2007 08:42 PM


All times are GMT -4. The time now is 02:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.