Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When the number of threads is higher than 126 the number of LMDB locks is exhausted and `ArmoryDB` dies with the error: ``` MDB_READERS_FULL: Environment maxreaders limit reached ``` See: lmdbjava/lmdbjava#65 (comment) Replace the uses of `std::thread::hardware_concurrency()` with a new function `MAX_THREADS()` which limits the number of threads to `126`. This is a temporary fix, the real fix would be making sure the number of LMDB locks is sufficient. However, a configured value for the maximum number of threads would also be useful. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
- Loading branch information
Showing
5 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters