Hi,

I've read the issue MRM-1097 and its related issues. This was previously an 
issue on the CI server that we have and the system administrators set the 
limits of open file higher than default which was 1024.

Version : 1.3.1

Here the steps we've done to reproduced the "too many open files"
* set the default of ulimits back to default.
* built 2 maven projects with 'clean deploy' as goals - these are deployed in 
archiva
* in archiva did a scan on the repositories.

The building and the scanning of the repositories were done simulatenuously.

Here the the logs of archiva.log upon reproducing the "too many open files" 
issue.

archiva.log
***************************************

2010-10-01 16:09:57,131 [pool-3-thread-1] ERROR 
org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor  - 
Error occurred while executing indexing task 'ArtifactIndexingTask [action=ADD, 
repositoryId=internal, 
resourceFile=/data/repository/internal/org/codehaus/mojo/taglist-maven-plugin/2.0/taglist-maven-plugin-2.0.jar]':
 /data/repository/internal/.indexer/_q0i_22w.del (Too many open files)
2010-10-01 16:09:57,131 [pool-3-thread-1] ERROR taskQueueExecutor#indexing  - 
Error executing task
org.codehaus.plexus.taskqueue.execution.TaskExecutionException: Error occurred 
while executing indexing task 'ArtifactIndexingTask [action=ADD, 
repositoryId=internal, 
resourceFile=/data/repository/internal/org/codehaus/mojo/taglist-maven-plugin/2.0/taglist-maven-plugin-2.0.jar]'
    at 
org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor.executeTask(ArchivaIndexingTaskExecutor.java:188)
    at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
    at 
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
    at 
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
    at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
    at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
    at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.FileNotFoundException: 
/data/repository/internal/.indexer/_q0i_22w.del (Too many open files)
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
    at 
org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(FSDirectory.java:552)
    at 
org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:582)

***************************************

Thanks,
Gwen


      

Reply via email to