Re: Aw: Re: tomcat hangs

2021-09-13 Thread Christopher Schultz

Peter,

On 9/13/21 04:12, Peter Rader wrote:

Chris,


Gesendet: Donnerstag, 09. September 2021 um 22:15 Uhr
Von: "Christopher Schultz" 
An: users@tomcat.apache.org
Betreff: Re: Aw: tomcat hangs
Peter,

On 9/9/21 08:21, Peter Rader wrote:

I might noticed a simmilar issue: I ran the JVM in a linux OS on a VM
(in virtualbox btw). The jdk for some reason request a random number.
The JDK asks the LinuxOS for a new random number (maybe in the hope
to use a hardware-based TRNG). Since this linux in virtualbox is
not-so low-level the random number is generated due to RAM
squarenumbers, because no memory is changed - no new random number
has been generated and we get a OS-based softlock.


WHAT?

-chris


YES, id reported this many years ago 
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4952383

There is a workaround (from comments): set java.security.egd=file:/dev/urandom


That is a very very very old hack which shouldn't be required under any 
modern installation.


My "WHAT?" question was more about the string of words before that, only 
some of which coalesced into a coherent idea.


-chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Aw: Re: tomcat hangs

2021-09-13 Thread Peter Rader
Chris,

> Gesendet: Donnerstag, 09. September 2021 um 22:15 Uhr
> Von: "Christopher Schultz" 
> An: users@tomcat.apache.org
> Betreff: Re: Aw: tomcat hangs
> Peter,
>
> On 9/9/21 08:21, Peter Rader wrote:
> > I might noticed a simmilar issue: I ran the JVM in a linux OS on a VM
> > (in virtualbox btw). The jdk for some reason request a random number.
> > The JDK asks the LinuxOS for a new random number (maybe in the hope
> > to use a hardware-based TRNG). Since this linux in virtualbox is
> > not-so low-level the random number is generated due to RAM
> > squarenumbers, because no memory is changed - no new random number
> > has been generated and we get a OS-based softlock.
>
> WHAT?
>
> -chris

YES, id reported this many years ago 
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4952383

There is a workaround (from comments): set java.security.egd=file:/dev/urandom

Regards

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org