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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th November 2012, 14:56
Ventzy Ventzy is offline
Junior Member
 
Join Date: Jan 2010
Posts: 17
Thanks: 2
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.

Code:
lsof | grep /var/log/ispconfig | wc -l
150582
The server have ~ 1200 virtual hosts.
One line looks like this
Code:
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
  #2  
Old 7th November 2012, 15:14
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,445
Thanks: 813
Thanked 5,209 Times in 4,085 Posts
Default

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
  #3  
Old 7th November 2012, 15:28
Ventzy Ventzy is offline
Junior Member
 
Join Date: Jan 2010
Posts: 17
Thanks: 2
Thanked 2 Times in 2 Posts
 
Default

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
Reply

Bookmarks

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 17:34
Apache Sub domains indecipherable Server Operation 10 12th March 2010 04:33
FTP Problems wabz Installation/Configuration 6 11th January 2010 18:51
Outlook does not Authenticates aberrio Server Operation 30 1st November 2007 19:21
SuseFirewall expert pls help zacch Installation/Configuration 11 17th March 2006 04:24


All times are GMT +2. The time now is 17:30.


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