Search This Blog

Tuesday, March 22, 2016

“Too many open files “ error on weblogic or any other server

This usually happens because of lack of open file handles which we call as file descriptors.

On unix based systems current limits can be checked with ulimit –a

its defaulted to 1024.

For weblogic or servers you will have to change the default limit.

check current limits in /etc/security/limits.conf

Add the limit at user/group level here or set the limit in setDomainEnv.sh if your user has sudo or permission to change this parameter.

Adding ulimit –S –n XXX/ulimit –H –n XXX  at setDomainEnv.sh or CommonEnv.sh did not reflect the changes for me.

Its a good idea to set it in limits.conf file and restart all the services for that user.

Its advisable as per oracle docs to set hard limit to 65k.

image

No comments:

Post a Comment