Skip to content

Commit

Permalink
max number of threads must be lowered also equals to max pool connect…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
lfoppiano committed Jun 9, 2021
1 parent 27c09ee commit 30de4b9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -185,7 +185,7 @@ public boolean accept(File dir, String name) {

int maxNumThreads = GrobidProperties.getInstance().getNBThreads();

if (maxNumThreads > GrobidProperties.getInstance().getMaxPoolConnections()) {
if (maxNumThreads >= GrobidProperties.getInstance().getMaxPoolConnections()) {
int newNumThreads = GrobidProperties.getInstance().getMaxPoolConnections() -1;
System.out.println("Grobid nbThreads > maxPoolConnections. Lowering to " + newNumThreads);
maxNumThreads = GrobidProperties.getInstance().getMaxPoolConnections() -1;
Expand Down

0 comments on commit 30de4b9

Please sign in to comment.