I think you should raise the ulimit. Default is 1024 which is a way to low for many apps (in freebsd its for example 10240 which is a bit more sane).
Just do it via "ulimit -n 10240" in the startup script. Bye, Norman 2010/8/12 Vishwanath Dubey <[email protected]>: > Hi > > My application which is extensively using Jackrabbit for storing content, is > throwing “To many open files” error, as mentioned below. > > It is happening when app is trying to create a new workspace. > > The new workspace is needed to make any changes for an element (node) in > repository, not making any changes in main workspace (default workspace). > Basically the new workspace is a copy of main workspace. Once changes is > done, the app merges newly created workspace with main workspace. > > > > The current application is installed on Linux m/c and we are using > Jackrabbit 2.1. There are some limitation on Linux for opening number of > files, but maximizing the limit whether it will solve the issue , not > sure.... > > > Thanks in advance for your kind support. > > > 11:10:17,008 INFO [STDOUT] INFO 12-08 11:10:17,007 > (ICMHouseKeepingRepository.java:create:44) Session logged in for count > 12 > > 11:10:17,315 INFO [STDOUT] ERROR 12-08 11:10:17,312 > (RepositoryImpl.java:getWorkspaceInfo:785) Unable to initialize > workspace 'WS000014' > > javax.jcr.RepositoryException: Cannot instantiate persistence manager > org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager > > at > org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1433) > > ……………. > > ……………. > > Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create > PoolableConnectionFactory (Failed to create database > '../projrepository/workspaces/WS000014/db', see the next exception for > details.) > > at > org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225) > > at > org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) > > at > org.apache.jackrabbit.core.util.db.ConnectionHelper.getExtraNameCharacters(ConnectionHelper.java:156) > > at > org.apache.jackrabbit.core.util.db.ConnectionHelper.prepareDbIdentifier(ConnectionHelper.java:120) > > …………….. > > …………… > > org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:525) > > at > org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager.init(DerbyPersistenceManager.java:250) > > at > org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1429) > > ... 66 more > > Caused by: java.sql.SQLException: Failed to create database > '../myrepository/workspaces/WS000014/db', see the next exception for > details. > > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown > Source) > > at > org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) > > ……………………………….. > > ………………………. > > Caused by: java.sql.SQLException: Startup failed due to an exception. See > next exception for details. > > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown > Source) > > at > org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) > > at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown > Source) > > at > org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown > Source) > > at > org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown > Source) > > at > org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) > > ... 82 more > > Caused by: java.sql.SQLException: Exception during creation of file /jboss/ > jboss-4.2.3.GA/projrepository/workspaces/WS000014/db/seg0/c200.dat for > container > > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown > Source) > > at > org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) > > at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown > Source) > > at > org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown > Source) > > ... 85 more > > Caused by: java.sql.SQLException: Java exception: '/jboss/ > jboss-4.2.3.GA/projrepository/workspaces/WS000014/db/seg0/c200.dat (Too many > open files): java.io.FileNotFoundException'. > > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown > Source) > > at > org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) > > at org.apache.derby.impl.jdbc.Util.javaException(Unknown > Source) > > at > org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown > Source) > > ... 86 more > > Caused by: java.io.FileNotFoundException: /jboss/ > jboss-4.2.3.GA/projrepository/workspaces/WS000014/db/seg0/c200.dat (Too many > open files) > > at java.io.RandomAccessFile.open(Native Method) > > > > > > V >
