Friday, April 4, 2014

Too Many Open Files Exception while running application on Unix

While working on client side and running Webcenter portal application on the Unix System, we saw exception stating : error = 24 , Too Many Open Files.

Caused by: error=24, Too many open files
    at java.lang.UNIXProcess.<init>(
    at java.lang.ProcessImpl.start(
    at java.lang.ProcessBuilder.start(
    ... 40 more

This error comes because there in UNIX systems, each socket connection to WebLogic Server consumes a file descriptor. File descriptor paramater specifies the number of concurrent files which can be opened per process.

Since this exception is coming, the maximum limit of file descriptor is not sufficient. So we need to increase the value of File Descriptor.

This can be done by increasing the ulimit on Unix System.

This is done as following:

$ ulimit -H -n                             (Display hard limit, cannot be exceeded)
$ ulimit -S -n                             (Display soft limit may be increased up to hard limit value)
$ ulimit -S -n 3500                   (Increase the soft limit to 4096)

You can configure WebLogic specific number fromWEBLOGIC_HOME/common/bin/ script (note that this script is used on each domain created, if you want the domain specific limits you can use DOMAIN_HOME/bin/ 


  1. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    digital marketing course in Chennai | digital marketing training in Chennai

  2. BlueHost is ultimately one of the best website hosting company with plans for any hosting needs.

  3. I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.
    ERP in India
    Cloud ERP Companies in India
    Web development company in chennai

  4. Great blog thanks for sharing Searching for a SEO company in Chennai that can bring your brand to the top results page on Google.

  5. Plan Your next Holidays with Indian Travel Store and get some Exciting Deals on Tours & Travels Packages for Shimla, Manali, Nepal, Bhutan, Rajasthan, Dalhousie, Dharamshala, Kerala, Uttarakhand and many more. Book your next shimla manali tour package with us for availing some great deals.

    Rajasthan Tour Packages | leh ladakh packages

  6. is the best website designing company and being best we endeavor to provide our clients with 100% satisfaction and for that we follow a different approach of working so that to make the websites purely unique and according to the requirements of the client, because we are well aware of the fact that a website is an imputation of the work that has to be performed through it. So, it must be deliberately acknowledged that the target is the sole determiner of the design of a website. We keep all the website development principles in mind and thereby reached the Platform of being the best website designing company in Delhi as well as in all over India.