jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patricio Echagüe <patric...@gmail.com>
Subject Re: Threads blocked in org.apache.jackrabbit.core.id.SeededSecureRandom
Date Thu, 07 Oct 2010 17:11:21 GMT
Thanks for the response.

They are all different thread ids.

What would it be the best way to avoid so many threads getting blocked
there?

On Wed, Oct 6, 2010 at 11:44 PM, Thomas Müller <thomas.mueller@day.com>wrote:

> Hi,
>
> > We have more than 50 threads waiting here.
>
> Is it the same thread number for each of the 50 stack traces, or is it
> multiple distinct threads?
>
> Looking at the code, if getInstance() is called concurrently from
> multiple threads, each time a new SeededSecureRandom is created, which
> is not needed. It would be a bit better to ensure only one
> SeededSecureRandom() instance is created. When I anyway change that, I
> will also add a bit more entropy to the alternative seed algorithm,
> similar to
> http://code.google.com/p/h2database/source/browse/trunk/h2/src/main/org/h2/util/MathUtils.java#109
>
> Regards,
> Thomas
>



-- 
Patricio.-

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message