On 05/28/10 09:48 PM, Prudhvi Krishna Surapaneni wrote:
On Fri, May 28, 2010 at 07:58:20PM +0200, solarg wrote:
hello all,
i have this problem on os2009.06, and solaris 10, but it works on linux :(
r...@ismene:~# ulimit unlimited
r...@ismene:~# ls -l /var/apache2/2.2/logs/monsite.fr-access_log*|wc -l
366
r...@ismene:~# logresolvemerge.pl .../logs/monsite.fr-access_log*
Error: Couldn't open log file "gzip -cd
/var/apache2/2.2/logs/monsite.fr-access_log.22-09-2009.gz |" : Too
many open files.
it works with the same files on linux.
can you set ulimit -n unlimited and try again.
on my b134 box ulimit -n is set to 256, while on linux ulimit -n is set to
1024, similarly on netbsd it was set to 128
i am sure if you change it to say 1024 and try again it should work for you
he...@tara:~/test_awstats/var/apache2/2.2/logs$ ulimit -n 1024
he...@tara:~/test_awstats/var/apache2/2.2/logs$ ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 10
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 29995
virtual memory (kbytes, -v) unlimited
he...@tara:~/test_awstats/var/apache2/2.2/logs$
/usr/lib/awstats/tools/logresolvemerge.pl *
Error: Couldn't open log file "gzip -cd
www.latp.univ-mrs.fr-access_log.22-09-2009.gz |" : Too many open files.
with tcsh:
> ulimit -n unlimited
ulimit[9]: ulimit: unlimited: limit exceeded [Not owner]
> ulimit -n 4096
ulimit[9]: ulimit: 4096: limit exceeded [Not owner]
> ulimit -n 2048
ulimit[9]: ulimit: 2048: limit exceeded [Not owner]
> ulimit -n 1024
> /usr/lib/awstats/tools/logresolvemerge.pl *
Error: Couldn't open log file "gzip -cd
www.latp.univ-mrs.fr-access_log.22-09-2009.gz |" : Too many open files.
>
finally, being root:
> pfexec bash
he...@tara:~/test_awstats/var/apache2/2.2/logs# ulimit -n unlimited
he...@tara:~/test_awstats/var/apache2/2.2/logs# ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) unlimited
pipe size (512 bytes, -p) 10
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 29995
virtual memory (kbytes, -v) unlimited
he...@tara:~/test_awstats/var/apache2/2.2/logs#
/usr/lib/awstats/tools/logresolvemerge.pl *
Error: Couldn't open log file "gzip -cd
www.latp.univ-mrs.fr-access_log.22-09-2009.gz |" : Too many open files.
and the file exists:
he...@tara:~/test_awstats/var/apache2/2.2/logs# ls -l
www.latp.univ-mrs.fr-access_log.22-09-2009.gz
-rw-r--r-- 1 henry staff 2624 Sep 21 2009
www.latp.univ-mrs.fr-access_log.22-09-2009.gz
what's the problem?
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org