Hi all,
I have a problem with evolution. Sometimes, when I open evo after other apps I receive this error.
I don't remember how to change the limit. Can you help me?
Tnx Ambrogio
Ambrogio wrote:
I don't remember how to change the limit. Can you help me?
`ulimit -n` will print the current limit of maximum open file descriptors; and if you add a number to that, it becomes the new limit. For example, if you want to set it to have up to 65536 open file descriptors at once, something like `ulimit -n 65536` will do it.
Il giorno mer, 01/11/2006 alle 09.00 -0800, Peter Gordon ha scritto:
Ambrogio wrote:
I don't remember how to change the limit. Can you help me?
`ulimit -n` will print the current limit of maximum open file descriptors; and if you add a number to that, it becomes the new limit. For example, if you want to set it to have up to 65536 open file descriptors at once, something like `ulimit -n 65536` will do it.
Tnx.
Now I have 1024 and I want that the new limit will be available at every boot.
I think the best place is in rc.sysinit (or rc.local). What do you think?
Bye Ambrogio
On Wed, 2006-11-01 at 18:07 +0100, Ambrogio wrote:
Now I have 1024 and I want that the new limit will be available at every boot.
I think the best place is in rc.sysinit (or rc.local). What do you think?
Placing it in your /etc/rc.local is probably the easiest way. Note, however, that if you're not careful, this can be a big security concern...
Peter Gordon wrote:
On Wed, 2006-11-01 at 18:07 +0100, Ambrogio wrote:
Now I have 1024 and I want that the new limit will be available at every boot.
I think the best place is in rc.sysinit (or rc.local). What do you think?
Placing it in your /etc/rc.local is probably the easiest way. Note, however, that if you're not careful, this can be a big security concern...
I don't think this will work. Ulimit sets limits for the shell that executes the command and any processes that are subsequently started by that shell. It is not a system-wide setting. I'm not 100% sure, but I very much doubt that a ulimit executed by the shell that runs rc.local will have any effect whatever on your evolution process.
Right off, I can't say how you might change this system-wide--I don't see any likely suspects in /proc/sys/kernel. Even for one process, evolution, it might be tricky, as only root is allowed to change it, and you don't want to run evo as root. You'd need to run a root shell, change the ulimit, then su a shell (or evo directly) with your user id. Sounds slippery to me.
I agree with another poster further down (Gilboa Davara): there's no way Evolution needs that many files. Fix the real problem, don't open a door to more problems.
<Joe
Il giorno mer, 01/11/2006 alle 21.32 -0500, Joe Smith ha scritto:
I don't think this will work. Ulimit sets limits for the shell that executes the command and any processes that are subsequently started by that shell. It is not a system-wide setting. I'm not 100% sure, but I very much doubt that a ulimit executed by the shell that runs rc.local will have any effect whatever on your evolution process.
You are right... I placed the command in rc.local but not effect on the shell by wich I start evolution. And also after the command on the shell, in another shell the limit is still 1024.
I agree with another poster further down (Gilboa Davara): there's no way Evolution needs that many files. Fix the real problem, don't open a door to more problems.
I think that problem is fixed on newer version of evolution, but no hope to have it on fedora core 5, even if the new release is available from a long time. I will install fedora core 6 when I will be sure that upgrade works ok for me. I can't stay without working PC for a long time.
Tnx Ambrogio
On Wed, 2006-11-01 at 17:07 +0100, Ambrogio wrote:
Hi all,
I have a problem with evolution. Sometimes, when I open evo after other apps I receive this error.
I don't remember how to change the limit. Can you help me?
Tnx Ambrogio
Are you using FC5? I'd venture to guess that you are hitting a bug in Evolution that causes it to leak file handles. (Known issue)
AFAIK it has been fixed in FC6.
- Gilboa
Il giorno gio, 02/11/2006 alle 00.16 +0200, Gilboa Davara ha scritto:
Are you using FC5? I'd venture to guess that you are hitting a bug in Evolution that causes it to leak file handles. (Known issue)
AFAIK it has been fixed in FC6.
Yes I know... The bug is fixed in Evolution and not in fedora, but no hope to have evolution > 2.6.3 on fedora core 5.
By the way... there is a place in which tell to the system that the maximum number of open file is different from 1024?
Bye Ambrogio
By the way... there is a place in which tell to the system that the maximum number of open file is different from 1024?
Bye Ambrogio
Run the command sysctl -a to see the kernel params. One of them is fs.file-max. Increase the value there to allow kernel to have more file handles.
Increase the number of file handles by editing /etc/sysctl.conf and changing the property fs.file-max to some higher number than what you saw earlier. If there isn't a value set already for this property, you need to add the line fs.file-max=some value.
Then run sysctl -p to apply your changes to your system.
Vijay
Hi,
Ambrogio schrieb:
Il giorno gio, 02/11/2006 alle 00.16 +0200, Gilboa Davara ha scritto:
Are you using FC5? I'd venture to guess that you are hitting a bug in Evolution that causes it to leak file handles. (Known issue)
AFAIK it has been fixed in FC6.
Yes I know... The bug is fixed in Evolution and not in fedora, but no hope to have evolution > 2.6.3 on fedora core 5.
By the way... there is a place in which tell to the system that the maximum number of open file is different from 1024?
The right place is /etc/security/limits.conf The file is pretty self-explanatory.
Rainer
On Thu, 2006-11-02 at 08:25 +0100, Ambrogio wrote:
Il giorno gio, 02/11/2006 alle 00.16 +0200, Gilboa Davara ha scritto:
Are you using FC5? I'd venture to guess that you are hitting a bug in Evolution that causes it to leak file handles. (Known issue)
AFAIK it has been fixed in FC6.
Yes I know... The bug is fixed in Evolution and not in fedora, but no hope to have evolution > 2.6.3 on fedora core 5.
By the way... there is a place in which tell to the system that the maximum number of open file is different from 1024?
Bye Ambrogio
I know that's not the answer you're looking for, but increasing the file handle count will not prevent evolution from crashing - it'll only make evolution make more noise when it crashes. File handle limitation is there for a reason - to prevent one application for taking down the system. Letting evolution eat unlimited number of file handles will only risk the stability of other applications instead of fixing the problem.
As for getting a fixed version in FC5, can you post a bug report in bugzilla?
- Gilboa
On Thu, 2006-11-02 at 16:05 +0200, Gilboa Davara wrote:
I know that's not the answer you're looking for, but increasing the file handle count will not prevent evolution from crashing - it'll only make evolution make more noise when it crashes.
I've been reading this thread wondering what the problem was (I use Evolution on FC5, I'm using it right now) and hadn't noticed any problems. I'd also wondered whether the proposed solution was to give a minor increase in the number of files that could be opened, or a huge one.
On Fri, 2006-11-03 at 02:12 +1030, Tim wrote:
On Thu, 2006-11-02 at 16:05 +0200, Gilboa Davara wrote:
I know that's not the answer you're looking for, but increasing the file handle count will not prevent evolution from crashing - it'll only make evolution make more noise when it crashes.
I've been reading this thread wondering what the problem was (I use Evolution on FC5, I'm using it right now) and hadn't noticed any problems. I'd also wondered whether the proposed solution was to give a minor increase in the number of files that could be opened, or a huge one.
-- (Currently testing FC5, but still running FC4, if that's important.)
Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists.
At least in my case, after a couple of hours of use, I'm getting an "too many open files" whenever I try to open an email message. Problem was fixed in evo 2.8.
- Gilboa
Il giorno gio, 02/11/2006 alle 16.05 +0200, Gilboa Davara ha scritto:
I know that's not the answer you're looking for, but increasing the file handle count will not prevent evolution from crashing - it'll only make evolution make more noise when it crashes. File handle limitation is there for a reason - to prevent one application for taking down the system. Letting evolution eat unlimited number of file handles will only risk the stability of other applications instead of fixing the problem.
I know risks related to consuming resource, but I experienced that limiting evo to 10000 files instead of 1024 let me working with evo without the problem. I see the problem only starting evo, and I think that it's because the number of folders and messages I have. If I'm able to start evo without openfile limit, I can work with evo opened for hours.
As for getting a fixed version in FC5, can you post a bug report in bugzilla?
Bug (or problem) was fixed by the evolution team with the new release (because the bug was hard to solve without rewriting code). The new release is available on FC6 but not on FC5, and there aren't rpm on evolution (novell) site.
Bye Ambrogio
On Thu, 2006-11-02 at 17:48 +0100, Ambrogio wrote:
Il giorno gio, 02/11/2006 alle 16.05 +0200, Gilboa Davara ha scritto:
I know that's not the answer you're looking for, but increasing the file handle count will not prevent evolution from crashing - it'll only make evolution make more noise when it crashes. File handle limitation is there for a reason - to prevent one application for taking down the system. Letting evolution eat unlimited number of file handles will only risk the stability of other applications instead of fixing the problem.
I know risks related to consuming resource, but I experienced that limiting evo to 10000 files instead of 1024 let me working with evo without the problem. I see the problem only starting evo, and I think that it's because the number of folders and messages I have. If I'm able to start evo without openfile limit, I can work with evo opened for hours.
As for getting a fixed version in FC5, can you post a bug report in bugzilla?
Bug (or problem) was fixed by the evolution team with the new release (because the bug was hard to solve without rewriting code). The new release is available on FC6 but not on FC5, and there aren't rpm on evolution (novell) site.
Bye Ambrogio
Understood. Anyways, AFAIR, you need to add: <user> hard nofile <max_file_count> to /etc/security/limits.conf
- Gilboa