Caused by: beans.BeanInstantiationException: Failed to instantiate [com.vmware.vidm.federation.token.TokenPersistenceService]: Constructor threw exception; nested exception is java.lang.IllegalStateException: failed to create a child event loop
at beans.BeanUtils.instantiateClass(BeanUtils.java:226)
at beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117)
at beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:302)
... 81 more
Caused by: java.lang.IllegalStateException: failed to create a child event loop
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:88)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:60)
Caused by: io.netty.channel.ChannelException: failed to open a new selector
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:179)
at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:146)
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:183)
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:38)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:84)
... 102 more
Caused by: java.io.IOException: Too many open files
at java.base/sun.nio.ch.EPoll.create(Native Method)
at java.base/sun.nio.ch.EPollSelectorImpl.<init>(Unknown Source)
at java.base/sun.nio.ch.EPollSelectorProvider.openSelector(Unknown Source)
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:177)
... 106 more
VMware vCenter Server 8.0.x
The "Too many open files" error occurs when a process exceeds its maximum allowed number of open file descriptors. By default, this limit is restricted to 1024 in the service configuration.
To resolve this issue, you need to increase the resource limits (rlimits) for the vc-ws1a-broker container from 1024 to 2048.
service-control --start vc-ws1a-broker
runc list
ID PID STATUS BUNDLE
vc-ws1a-broker 12636 running /storage/containers/vc-ws1a-broker/#############################################
vi /storage/containers/vc-ws1a-broker/#############################################/config.json
"noNewPrivileges": true,
"rlimits": [
{
"hard": 1024,
"soft": 1024,
"type": "RLIMIT_NOFILE"
}
:wq! to save and close the editorservice-control --restart vc-ws1a-broker
runc exec --tty vc-ws1a-broker bash
idmservice [ / ]$ ulimit -Hn
2048
idmservice [ / ]$ ulimit -Sn
2048
Applying these changes resolves the "Too many open files" error, which occurs when the service exhausts its default allocation of 1024 file descriptors, allowing your backups to run successfully.