"Too many open files" exception displayed when working with multiple shared accounts

book

Article ID: 17901

calendar_today

Updated On:

Products

CA Virtual Privilege Manager CA Privileged Identity Management Endpoint (PIM) CA Privileged Access Manager (PAM)

Issue/Introduction

Description:

When requesting, approving or deleting multiple privileged accounts, getting "Too many open files" exception in jboss Log

Solution:

When requesting, approving or deleting multiple privileged accounts getting "Too many open files" exception in jboss Log. Post this exception the Application is not responding and throwing different exceptions until jboss is restarted. This problem occurs only in UNIX environments. Problem has been recognized in (Rhel6.2 ORA/AD).

Issue:

"Too many open files" exception when multiple privileged accounts are deleted due to time-out JBoss Exception:
17:59:43,566 ERROR [Naming] Naming accept handler stopping
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at org.jnp.server.Main$AcceptHandler.run(Main.java:481)
at org.jboss.util.threadpool.RunnableTaskWrapper.run(RunnableTaskWrapper.java:148)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
at java.lang.Thread.run(Thread.java:724)

Solution:

We need to add the following lines in "/etc/security/limits.conf" to increase open files limit to 2048

# vi /etc/security/limits.conf
* hard nofile 2048
* soft nofile 2048

Environment

Release: ACP1M005900-12.7-Privileged Identity Manager
Component: