ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> modperl
modperl
Re: Modperl + DBI + Postgresql = Crash (file table full)
by James other posts by this author
Dec 31 2000 2:13AM messages near this date
Re: Modperl + DBI + Postgresql = Crash (file table full) | trouble with Rewrite
usually a default OS install does not have enough
available file handles for use as a webserver.

Consider using ulimit -n, and ndd or sysctl settings
for file descriptors.

On a busy site you may need to increase the hard limit
by also modifying the kernel FDMAX #define and rebuilding.

Or you might just be having leaky code ...

Frank Sonnemans wrote:
>  
>  I am currently building an intranet site which uses a Postgresql database
>  backend. Unfortunately the database server is opening more files for every
>  SQL request from the web site. This quickly leads to a crash after the
>  kernels file table has filled up.
>  
>  As of today I have no idea about the cause of the problem. Initially I
>  blamed Apache::DBI and therefore I disabled it, adding $dbh->disconnect
>  statements to my code. However this has not solved the problem.
>  
>  My server runs the following software:
>  
>  FreeBSD 4.0 or FreeBSD 4.2 stable
>  Apache 1.3
>  ModPerl
>  Apache::DBI (disabling this doesn't change anything)
>  HTML::Mason
>  
>  Any ideas on the cause of the problems. Any similar experiences?
>  
>  Thanks in advance for your reply.
>  
>  Frank Sonnemans

--
ActiveMessage - Targeted Email Marketing
Ask me for a free outbound email trial account!
http://ActiveMessage.com
Thread:
Frank Sonnemans
Andrew Ho
James

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved