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: java.io.IOException: java.io.IOException: error=24, Too many open files
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
    at java.lang.ProcessImpl.start(ProcessImpl.java:65)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
    ... 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/commEnv.sh script (note that this script is used on each domain created, if you want the domain specific limits you can use DOMAIN_HOME/bin/setDomainEnv.sh). 

12 comments:

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

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. 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

    ReplyDelete
  4. Jeewangarg.com 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.

    ReplyDelete
  5. Candidates who completed Matriculation/10th qualification can join various vacancies of Post office Recruitment 2020 . At present Maharashtra, Andhra Pradesh/Chhattisgarh/Telangana circle job notification for GDS has been released...

    ReplyDelete
  6. Thank you for reading my profile with love. I am Baani a City Escort and Welcome to the tropical country, blessed by God and magnificent in nature. When you will meet to City Escort Baani Your search will be finished then. I describe myself as a young white lady of 21 years. I am a beautiful hot tigress with beautiful curves. I am a lovely sexy City Call Girl. I am of a smiling and friendly nature I am a good living who appreciates the meetings which take place in good humor and bursts of laughter. Make me laugh and I will be conquered. I am the ideal host to show you around the most exclusive places in the city. Exciting and extremely attentive in the type of fun that likes to party with City Escort Service. I like meeting new people and socializing is my specialty. Effortless Sexy and undeniably elegant I love the pleasure of being an elite escort in City as well as the excitement of doing sexy fashion sessions as a model. With this beautiful model on your arms, you will be the envy of every man in the room.
    Neemrana Escorts
    Churu Escorts
    Laxmangarh Escorts
    Barmer Escorts
    Beawar Escorts
    Banswara Escorts
    Baran Escorts
    Dausa Escorts
    Deogarh Escorts
    Dholpur Escorts

    ReplyDelete