You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Bs Serge <se...@gmail.com> on 2022/01/10 15:29:17 UTC
Creation of SecureRandom taking long time
Hi all,
While starting OFBiz, why does this step take a long time? up to 3 minutes
regardless of all the available memory, coz I'm running OFBiz with -Xmx11g
and Gradle daemon with -Xmx6g.
2022-01-10 15:15:23,641 |OFBiz-batch-3 |ServiceContainer
|I| Created new dispatcher: entity-default
*Jan 10, 2022 3:18:10 PM org.apache.catalina.util.SessionIdGeneratorBase
createSecureRandom*
*WARNING: Creation of SecureRandom instance for session ID generation using
[SHA1PRNG] took [167,147] milliseconds.*
2022-01-10 15:18:10,553 |main |ServiceDispatcher
|I| Registering dispatcher: ebay
Kindly let me know if there is a way to mitigate this and make it faster.
Best regards,
Re: Creation of SecureRandom taking long time
Posted by Bs Serge <se...@gmail.com>.
Hi Jacques, Thanks for quick reply, the suggested JVM option solved my issue.
Best regards,
> On 10 Jan 2022, at 19:11, Jacques Le Roux <ja...@les7arts.com> wrote:
>
> Notably using: |
> |
>
> |-Djava.security.egd=/dev/./urandom|
>
> |if you are on *nix OS|
>
> Le 10/01/2022 à 18:08, Jacques Le Roux a écrit :
>> Hi Serge,
>>
>> Did you try to follow advices at
>>
>> https://www.google.com/search?q=*WARNING%3A+Creation+of+SecureRandom+instance+for+session+ID+generation+using+%5BSHA1PRNG%5D+took&ie=UTF-8
>>
>> ?
>>
>> HTH
>>
>> Jacques
>>
>>
>> Le 10/01/2022 à 16:29, Bs Serge a écrit :
>>> Hi all,
>>>
>>> While starting OFBiz, why does this step take a long time? up to 3 minutes
>>> regardless of all the available memory, coz I'm running OFBiz with -Xmx11g
>>> and Gradle daemon with -Xmx6g.
>>>
>>> 2022-01-10 15:15:23,641 |OFBiz-batch-3 |ServiceContainer
>>> |I| Created new dispatcher: entity-default
>>>
>>>
>>> *Jan 10, 2022 3:18:10 PM org.apache.catalina.util.SessionIdGeneratorBase
>>> createSecureRandom*
>>> *WARNING: Creation of SecureRandom instance for session ID generation using
>>> [SHA1PRNG] took [167,147] milliseconds.*
>>>
>>> 2022-01-10 15:18:10,553 |main |ServiceDispatcher
>>> |I| Registering dispatcher: ebay
>>>
>>>
>>> Kindly let me know if there is a way to mitigate this and make it faster.
>>>
>>> Best regards,
Re: Creation of SecureRandom taking long time
Posted by Jacques Le Roux <ja...@les7arts.com>.
Notably using: |
|
|-Djava.security.egd=/dev/./urandom|
|if you are on *nix OS|
Le 10/01/2022 à 18:08, Jacques Le Roux a écrit :
> Hi Serge,
>
> Did you try to follow advices at
>
> https://www.google.com/search?q=*WARNING%3A+Creation+of+SecureRandom+instance+for+session+ID+generation+using+%5BSHA1PRNG%5D+took&ie=UTF-8
>
> ?
>
> HTH
>
> Jacques
>
>
> Le 10/01/2022 à 16:29, Bs Serge a écrit :
>> Hi all,
>>
>> While starting OFBiz, why does this step take a long time? up to 3 minutes
>> regardless of all the available memory, coz I'm running OFBiz with -Xmx11g
>> and Gradle daemon with -Xmx6g.
>>
>> 2022-01-10 15:15:23,641 |OFBiz-batch-3 |ServiceContainer
>> |I| Created new dispatcher: entity-default
>>
>>
>> *Jan 10, 2022 3:18:10 PM org.apache.catalina.util.SessionIdGeneratorBase
>> createSecureRandom*
>> *WARNING: Creation of SecureRandom instance for session ID generation using
>> [SHA1PRNG] took [167,147] milliseconds.*
>>
>> 2022-01-10 15:18:10,553 |main |ServiceDispatcher
>> |I| Registering dispatcher: ebay
>>
>>
>> Kindly let me know if there is a way to mitigate this and make it faster.
>>
>> Best regards,
>
Re: Creation of SecureRandom taking long time
Posted by Jacques Le Roux <ja...@les7arts.com>.
Hi Serge,
Did you try to follow advices at
https://www.google.com/search?q=*WARNING%3A+Creation+of+SecureRandom+instance+for+session+ID+generation+using+%5BSHA1PRNG%5D+took&ie=UTF-8
?
HTH
Jacques
Le 10/01/2022 à 16:29, Bs Serge a écrit :
> Hi all,
>
> While starting OFBiz, why does this step take a long time? up to 3 minutes
> regardless of all the available memory, coz I'm running OFBiz with -Xmx11g
> and Gradle daemon with -Xmx6g.
>
> 2022-01-10 15:15:23,641 |OFBiz-batch-3 |ServiceContainer
> |I| Created new dispatcher: entity-default
>
>
> *Jan 10, 2022 3:18:10 PM org.apache.catalina.util.SessionIdGeneratorBase
> createSecureRandom*
> *WARNING: Creation of SecureRandom instance for session ID generation using
> [SHA1PRNG] took [167,147] milliseconds.*
>
> 2022-01-10 15:18:10,553 |main |ServiceDispatcher
> |I| Registering dispatcher: ebay
>
>
> Kindly let me know if there is a way to mitigate this and make it faster.
>
> Best regards,