Solaris 11 - opened files limit ?

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Old 1 Week Ago
Solaris 11 - opened files limit ?

Hey all,

I'm running apache (cswapache2) on a Solaris 11.3 server.

Recently, if I create a new vhost, the service fails to restart, and enters in maintenance mode.
If I comment lines with log files, the service starts again.

I guess I've reached the limit.

I checked the current values with ulimit -a and get :
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
open files                      (-n) 256
pipe size            (512 bytes, -p) 10
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 29995
virtual memory          (kbytes, -v) unlimited

I can increase the limit, but would like to be sure that it's the issue.
Did anyone experienced it too ?
# 2  
Old 1 Week Ago
If I comment lines with log files, the service starts again.
It rings alarm bells with me if commenting out log directives makes it work.

Where are the logs specified to go????

They should be like:


and NOT


As far as I remember, and I might be wrong, Apache cannot access a subdirectory of the logs directory and will crash on startup.
# 3  
Old 1 Week Ago
@hicksd8 :

For each vhost, a specific log file is specified such as :

<VirtualHost *:443>
        ServerName blablabla . com
        SSLEngine On
                SSLProtocol ALL -SSLv2 -SSLv3
                SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:!RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM;
                SSLHonorCipherOrder on
        <Proxy *>
                AddDefaultCharset Off
                Order deny,allow
                Allow from all
        Redirect permanent /]h t t p://
        ErrorLog "/opt/csw/apache2/var/log/error_default.blablabla.lu_443.log"
        TransferLog "/opt/csw/apache2/var/log/access_default.blablabla.lu_443.log"

Last edited by RudiC; 1 Week Ago at 05:42 AM..
# 4  
Old 1 Week Ago
Referring back to your post#1, if you were hitting a system wide files open limit or something like that, you should be able to test for that easily by running another application or script which opens, say, 20 files. If you were against a files open limit that app/script would fall over. I am inclined to believe that this is an Apache configuration error. Being able to comment out logfile directives and it then works tells me this is the case.

Referring to your post#3 it immediately strikes me that you are specifying a TransferLog directive without a prior LogFormat directive (so how does it know what it has to log???). I think your need to check out the configuration via the Apache bible:
mod_log_config - Apache HTTP Server Version 2.4

Perhaps someone on this forum with more Apache experience than I will help you more.
# 5  
Old 1 Week Ago
I'm running apache 2.2, and the syntax looks to match with apache wiki's examples / httpd/ExampleVhosts

<VirtualHost *:80>
ServerName w w w . foo . com

# if you want this vhost to listen to extra names, uncomment the next line
# ServerAlias foo . com w w w . bar . com bar . com

DocumentRoot /var/www/www . foo . com/htdocs

CustomLog /var/log/apache/www . foo . com-access . log combined
ErrorLog /var/log/apache/www . foo . com-error . log
# 6  
Old 1 Week Ago
Yes, but your post#5 shows an illustration of the use of 'CustomLog' directive BUT in your post#3 you are using the 'TransferLog' directive. They are different.

Look again at the link that I provided in my post#4 and read what is says about 'TransferLog'. It's format cannot be specified explicitly but is taken from a prior 'LogFormat' directive.
This User Gave Thanks to hicksd8 For This Post:
jim mcnamara (1 Day Ago)
# 7  
Old 1 Week Ago
Peek the running process for their files:
pfiles <pid>

Examine all the httpd processes in one go:
pfiles `pgrep httpd`

Are they close to 256?
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Script or alias to backup all files opened by vi sebu Shell Programming and Scripting 4 03-18-2014 03:44 PM
Solaris 11 x86 installation troubles - 8G disk limit jpoc Solaris 2 01-05-2013 04:38 PM
Limit Number of files mhs UNIX for Dummies Questions & Answers 1 07-20-2012 08:21 AM
File exists, but cannot be opened.How to check- whether it could be opened to read when it exists rxg Shell Programming and Scripting 2 05-10-2012 02:15 PM
Maximum limit for allocation of groups to a folder in solaris 10 poga Solaris 5 03-08-2012 06:33 AM
How to change directory limit in Solaris? malikshahid85 Solaris 2 10-14-2010 08:02 AM
Any limit on files dsravan Shell Programming and Scripting 2 05-18-2010 04:26 PM
Number of files currently opened in linux govindts UNIX for Advanced & Expert Users 3 01-03-2010 04:19 PM
limit on Solaris username lengths? hcclnoodles Solaris 6 05-05-2009 03:12 PM
How to set Root password age limit in Solaris 9/10 jumadhiya Solaris 7 02-08-2007 03:57 AM
multiple files opened in awk krhamidou Shell Programming and Scripting 0 07-18-2006 08:54 AM
How to get the opened files by a process benoit.gaillard HP-UX 2 02-28-2006 02:02 AM
SUN Solaris 9 - Is there a 2GB file size limit? GMMike Solaris 2 10-16-2004 06:50 AM
Limit backup files kjaisan UNIX for Dummies Questions & Answers 9 10-02-2003 12:20 PM
Linux/Solaris has any limit on folder size ? bache_gowda UNIX for Dummies Questions & Answers 1 06-28-2003 09:23 AM