cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.3g - Too many open files

romgo
Champ in-the-making
Champ in-the-making
Hi,

I'm running Alfresco 3.3g on a Linux Lenny.

I encounter the issue "Too many open files",  so I read the wiki and I chenged the value to 16384 files.

I still have the issue time to time (almost one in a week). So I changed the value to 20000.

I would like to know  if there is there is a limit ?  What is tha value you use on your installation ?

I'm running Alfresco with around 130 users.

Thanks in advance.

Regards
7 REPLIES 7

imad77
Champ in-the-making
Champ in-the-making
Hi,

I'm running Alfresco 3.3g on a Linux Lenny.

I encounter the issue "Too many open files",  so I read the wiki and I chenged the value to 16384 files.

I still have the issue time to time (almost one in a week). So I changed the value to 20000.

I would like to know  if there is there is a limit ?  What is tha value you use on your installation ?

I'm running Alfresco with around 130 users.

Thanks in advance.

Regards


Hi,

It is related to Kernel settings where you can define the illimited open files in Linux.

Imad

imad77
Champ in-the-making
Champ in-the-making
Hi,

I'm running Alfresco 3.3g on a Linux Lenny.

I encounter the issue "Too many open files",  so I read the wiki and I chenged the value to 16384 files.

I still have the issue time to time (almost one in a week). So I changed the value to 20000.

I would like to know  if there is there is a limit ?  What is tha value you use on your installation ?

I'm running Alfresco with around 130 users.

Thanks in advance.

Regards


Hi,

here is a link:

http://lj4newbies.blogspot.com/2007/04/too-many-open-files.html

Youc an change these files :

/proc/sys/fs/file-max
/etc/security/limits.conf


Imad

romgo
Champ in-the-making
Champ in-the-making
Hi,

thanks for the answer. here is my configuration :

/proc/sys/fs/file-max : 612698



/etc/security/limits.conf


root            soft    nofile          20000
root            hard    nofile          65536


Should I restart something when I modify those files ?

imad77
Champ in-the-making
Champ in-the-making
Hi,

thanks for the answer. here is my configuration :

/proc/sys/fs/file-max : 612698



/etc/security/limits.conf


root            soft    nofile          20000
root            hard    nofile          65536


Should I restart something when I modify those files ?


you should reboot your system

romgo
Champ in-the-making
Champ in-the-making
Hello,

I still have issues with this, here is what I've done :

I reboot the system,
I created a simple bash script in order to monitor the number of open files. I'm using the following command :

PID=`cat /var/run/alf.pid`
lsof -p $PID |wc -l >> /home/user/openfiles_alfresco.log

In my openfiles_alfresco.log files I've got the following just before a crash :


1337
1337
1333
1333
1334
1338
1338
1338
0
0
0
0
0

When I start alfresco I'm arround 967 files open.

I don't understand why alfresco still crash, even If I'm using the following parameters :

/proc/sys/fs/file-max : 612698



/etc/security/limits.conf


root soft nofile 20000
root hard nofile 65536

My limits seems far away from what the lsof command returned.

Any idea ?

alf101
Champ in-the-making
Champ in-the-making
are you running alfresco under user id "root"

Below is what I have

alfresco soft nofile 16384
alfresco hard nofile 32768

You don't need to reboot, just re-login as alfresco, or whatever user
You can check by typing

ulimit -Sn
should return 16384 , or whatever your soft limit is

romgo
Champ in-the-making
Champ in-the-making
Hello,

Yes I'm running alfresco un user id root.

ulimit -Sn return the correct limit.

I saw a bug report about the fact that alfresco don't close some file. Maybe this is what I get.