Re: /dev/random blocking causing i2p router to crash

Kirill A. Korinsky <[email protected]> Tue, 30 Jun 2026 17:23:50 +0200
Newsgroups gmane.os.openbsd.misc
Message-ID <[email protected]>
On Tue, 30 Jun 2026 12:49:10 +0200,
[email protected] wrote:
> 
> From what I've researched blocking is a feature of /dev/random if it
> is not ready so I'm quite stuck on how to go about fixing this. Any
> help is appreciated!
> 

I think you're wrong.

Issue is not blocking, issue that your java application never closes the
File object, and just wait till that object is closed by GC.

In Linux it works, because usual Linux setup has very large limit of number
of open files, some of them 1M for example.

Thus, error:

> Caused by: java.io.FileNotFoundException: /dev/random (Too many open 
> files)

actually says that.

-- 
wbr, Kirill