From owner-freebsd-performance@FreeBSD.ORG Sat Aug 16 22:23:20 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D13031065678 for ; Sat, 16 Aug 2008 22:23:20 +0000 (UTC) (envelope-from hakmi@rogers.com) Received: from smtp116.rog.mail.re2.yahoo.com (smtp116.rog.mail.re2.yahoo.com [68.142.225.232]) by mx1.freebsd.org (Postfix) with SMTP id 76C778FC17 for ; Sat, 16 Aug 2008 22:23:20 +0000 (UTC) (envelope-from hakmi@rogers.com) Received: (qmail 76768 invoked from network); 16 Aug 2008 21:56:38 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:X-MimeOLE:Thread-Index; b=f3NFzsz3ZG+phSxr5+8Y0fxLQvQVX27adrfzvwzO2Ros0Y0fvcBXm4+cFbmK65mKzv6i4H0s4Nqxx5RQI9/fgBBekaJy1e0IVIC7WnJsipIIc+3t2NQ9PcMdnGuxyqj8CEAO+u+1SxLPajFU5Q65SyaKUVZzQwaPYzumsx02nRk= ; Received: from unknown (HELO tamouh) (hakmi@rogers.com@99.224.76.214 with login) by smtp116.rog.mail.re2.yahoo.com with SMTP; 16 Aug 2008 21:56:38 -0000 X-YMail-OSG: YifXhckVM1mA15nCjaCSO.0Dh_G3hZqGUa4w6.oG2NkVb9K835vq137eZgOJeB6GDg-- X-Yahoo-Newman-Property: ymail-3 From: "Tamouh Hakmi" To: Date: Sat, 16 Aug 2008 17:56:43 -0400 Message-ID: <050201c8ffea$f8668e80$6900a8c0@tamouh> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Thread-Index: Acj9jD2NsgLShmAORiaw8Rs+A9VTLgB1i3yQACIH7uA= Subject: getaddrinfo() failed in Apache 2.2 + FreeBSD 6.1 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 22:23:20 -0000 Hi, I'm working on a problem with Apache 2.2 + PHP on FreeBSD 6.1 x86 Recently, I've upgraded from Apache 1.3 to v2.2 , and since then PHP is = unable to resolve hostnames unless they're specified in /etc/hosts . The = error we'd get would be: php_network_getaddresses: getaddrinfo failed: hostname nor servname = provided, or not known in /home/username/public_html/testphp.php on line = 2 This is for a simple function. I = know it is not a DNS problem, because if PHP is setup as a CGI function, = it works fine. It is only in DSO mode that PHP malfunction like this. = I'm also having no issues with our resolver for mail, ping or any other = services. Some people were pointing out that this is a fault of FreeBSD reaching a = maximum number of file descriptors. Others said this can't be resolved = until upgraded to FBSD 6.3 which I'm not planning to go through. There = are several hundred domains hosted on the server, but all was working = fine with Apache 1.3. Our VNODES are a bit high, but haven't seen any errors: server# sysctl kern.maxvnodes kern.maxvnodes: 100000 server# sysctl vfs.numvnodes vfs.numvnodes: 84805 server# sysctl kern.maxfiles kern.maxfiles: 65536 kern.maxfilesperproc: 32767 Later on I've discovered that if I comment about 500 CustomLog entries = in Apache, the errors will disappear. This seems like an issue with a = certain limit with open files. Anyone be able to guide me in the right direction here? Thanks,=20 Tamouh