What is the best configuration of ExecutorService, parameter of BagVerifier, to check a very big BagIt archive? I used the 5.0.3 version of the library.
By default, the 'isValid' function create a thread of each file. With ~20'000 files, the process crashed.
I tried the different option:
- ExecutorService exeService = new ThreadPoolExecutor(0, 10000, 60L, TimeUnit.SECONDS, new SynchronousQueue());
=> crash
- ExecutorService exeService = Executors.newFixedThreadPool(3000);
=> very long
What is your advice?
Thx