datalevin 2025-10-22

How could I avoid

datalevin.cpp.Util$DTLVException: MDB_READERS_FULL: Environment maxreaders limit reached

Right now, virtual thread is not recommended, until we resolve https://github.com/juji-io/datalevin/issues/326

@brownjoshua490 thank you, will check

There is recommendation to avoid exhausting the number of readers https://github.com/juji-io/datalevin/blob/master/doc/transact.md

java.util.current.Executors/newFixedThreadPool, java.util.current.Executors/newWorkStealingPool, or a custom one
could i use
newVirtualThreadPerTaskExecutor ?

I’m not really sure, I just removed the pmap and it fixed it for me, and I avoid running too many threads accessing datalevin

I've run into this before, for me it was removing a pmap call, you can read this thread for more info https://clojurians.slack.com/archives/C01RD3AF336/p1740990201337029?thread_ts=1738961638.883029&cid=C01RD3AF336

šŸ™ 1