This blog is about my observations and thoughts related to software development. These observations include tips and tricks that I have learned, solutions to problems I have faced, and other concepts I have found interesting and useful. This blog is intended to provide information to help other developers facing the same issues as well as providing me a method to document things in a well-known location for my future reference.
Showing posts with label alfresco. Show all posts
Showing posts with label alfresco. Show all posts
Tuesday, August 02, 2011
Saturday, February 12, 2011
Too Many open files in Alfresco
This is related to facing the situation where alfresco deployed in UNIX environment gives the error of "Too Many Opened Files". This is more often related to File handles and Lucene. UNIX systems is configured by default to allow users a maximum of only 1024 open file handles, which is often not sufficient for the file structure used by the indexes. Thus while setting up Alfresco on UNIX do the following check and configuration to get over this issue.
Verify that the global settings for maximum number of file handles is large enough.
As a user used to run Alfresco run :
You can check the number of open files allowed per user with the command
This gives the number of file handles that can be opened by user at a time.
To increase this number, go to/etc/security/limits.conf file in edit mode and the below lines
Check the original issue here.
Other references
http://www.xenoclast.org/doc/benchmark/HTTP-benchmarking-HOWTO/node7.html
http://ironman.darthgibus.net/?tag=too-many-open-files
Verify that the global settings for maximum number of file handles is large enough.
As a user used to run Alfresco run :
ulimit -n
You can check the number of open files allowed per user with the command
cat /proc/sys/fs/file-max
This gives the number of file handles that can be opened by user at a time.
To increase this number, go to/etc/security/limits.conf file in edit mode and the below lines
username soft nofile 4096username hard nofile 65536
where username is the name of user to run Alfresco.
And finally restart your Alfresco for the changes to become active.
Check the original issue here.
Other references
http://www.xenoclast.org/doc/benchmark/HTTP-benchmarking-HOWTO/node7.html
http://ironman.darthgibus.net/?tag=too-many-open-files
Subscribe to:
Posts (Atom)