My Oracle Support Banner

"Too many open files" error (Doc ID 1442594.1)

Last updated on MARCH 02, 2018

Applies to:

Oracle WebCenter Sites - Version 6.3.0 and later
Information in this document applies to any platform.

Goal

Error "Too many open files" is seen in futuretense.txt / sites.log during various operations (publish, etc):

java.net.SocketException: Too many open files
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
 at java.net.ServerSocket.implAccept(ServerSocket.java:450)
 at java.net.ServerSocket.accept(ServerSocket.java:421)
 at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)

or

java.io.FileNotFoundException: /mnt/Shared/elements/OpenMarket/Xcelerate/AssetType/MyAssetType_PD/Render,0.xml.ftlock (Too many open files)
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:216)
    at COM.FutureTense.Util.NioFileLock$LockFile.constructRandomAccessFile(NioFileLock.java:312)
    at COM.FutureTense.Util.NioFileLock$LockFile.<init>(NioFileLock.java:272)
    at COM.FutureTense.Util.NioFileLock$LockFile.<init>(NioFileLock.java:245)
    at COM.FutureTense.Util.NioFileLock._lockFile(NioFileLock.java:64)
    at COM.FutureTense.Util.NioFileLock.lockFile(NioFileLock.java:33)
    at COM.FutureTense.Util.ftFileLock.lockFileName(ftFileLock.java:91)

or

Unexpected failure locking file[[
COM.FutureTense.Util.NioFileLock$NioFileLockException: Failure opening lock file [File: file:///publicacion_MF/Shared/clustersync/genIDLockFile.ftlock]
at COM.FutureTense.Util.NioFileLock$LockFile.<init>(NioFileLock.java:284)
at COM.FutureTense.Util.NioFileLock$LockFile.<init>(NioFileLock.java:247)
at COM.FutureTense.Util.NioFileLock._lockFile(NioFileLock.java:75)
at COM.FutureTense.Util.NioFileLock.lockFile(NioFileLock.java:44)
at COM.FutureTense.Util.ftFileLock.lockFileName(ftFileLock.java:78)
at COM.FutureTense.Common.SysIdGen._lockID(SysIdGen.java:248)
at COM.FutureTense.Common.SysIdGen._allocate_logic(SysIdGen.java:271)
at COM.FutureTense.Common.SysIdGen.access$300(SysIdGen.java:34)
at COM.FutureTense.Common.SysIdGen$AllocateRange$1.execute(SysIdGen.java:359)
at com.fatwire.cs.core.db.NestedTransactionBlock.execute(NestedTransactionBlock.java:189)
at COM.FutureTense.Common.SysIdGen$AllocateRange.call(SysIdGen.java:362)
at COM.FutureTense.Common.SysIdGen$AllocateRange.call(SysIdGen.java:341)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.nio.file.FileSystemException: /publicacion_MF/Shared/clustersync/genIDLockFile.ftlock: Too many open files
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
at java.nio.channels.FileChannel.open(FileChannel.java:287)
at COM.FutureTense.Util.NioFileLock$LockFile.<init>(NioFileLock.java:277)
... 15 more

or similar stack traces containing "Too many open files".

'ulimit' reports the OS file limit is 1024. How can I correct this?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.