Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 7th November 2012, 15:56
Ventzy Ventzy is offline
Junior Member
Join Date: Jan 2010
Posts: 17
Thanks: 3
Thanked 2 Times in 2 Posts
Default Huge number openned log files

I have got "Too many open files" error on my server and after checking lsof I found huge number opened files for error logs.

lsof | grep /var/log/ispconfig | wc -l
The server have ~ 1200 virtual hosts.
One line looks like this
COMMAND     PID       USER   FD      TYPE             DEVICE    SIZE/OFF       NODE NAME
apache2   30294   www-data  615w      REG              251,0     3276350   10237337 /var/log/ispconfig/httpd/myhost/error.log
and there are ~ 150 lines like this for single vhost.

What could cause this?
Reply With Quote
The Following User Says Thank You to Ventzy For This Useful Post:
lzgzytqo (13th November 2012)
Sponsored Links
Old 7th November 2012, 16:14
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts

Apache opens a file handle for each error.log file of the vhosts.

There are two options:

a) Increase the max open file handles in your server.
b) comment out the error.log directive in the apache vhost template in /usr/local/ispconfig/server/conf/ and resync all vhosts. This will disable the individual error logging for the vhosts.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 7th November 2012, 16:28
Ventzy Ventzy is offline
Junior Member
Join Date: Jan 2010
Posts: 17
Thanks: 3
Thanked 2 Times in 2 Posts

Thanks, we will consider the options. But is it normal to have 150 opened handles for a single log file? It seems huge number to me.
Reply With Quote


Thread Tools
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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
amavis: (!!)WARN: all primary virus scanners failed, considering ba jariasca Installation/Configuration 13 20th April 2010 18:34
Apache Sub domains indecipherable Server Operation 10 12th March 2010 05:33
FTP Problems wabz Installation/Configuration 6 11th January 2010 19:51
Outlook does not Authenticates aberrio Server Operation 30 1st November 2007 20:21
SuseFirewall expert pls help zacch Installation/Configuration 11 17th March 2006 05:24

All times are GMT +2. The time now is 18:56.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.