[gatein-issues] [JBoss JIRA] (GTNPORTAL-2828) CookieTokenService initialization too slow

Peter Palaga (JIRA) jira-events at lists.jboss.org
Fri Feb 22 03:46:56 EST 2013


    [ https://issues.jboss.org/browse/GTNPORTAL-2828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755904#comment-12755904 ] 

Peter Palaga commented on GTNPORTAL-2828:
-----------------------------------------

After inserting some measurement points, I can confirm that there is some delay (18.527 seconds on my machine) related to SecureRandom initialization:
{code}
09:07:48,746 INFO  [org.exoplatform.web.security.security.RemindPasswordTokenService] (MSC service thread 1-1) before new AutoReseedRandom(): 0.0010
09:08:07,272 INFO  [org.exoplatform.web.security.security.RemindPasswordTokenService] (MSC service thread 1-1) after new AutoReseedRandom(): 18.527
09:08:07,272 INFO  [org.exoplatform.web.security.security.RemindPasswordTokenService] (MSC service thread 1-1) super(initParams): 0.0
09:08:07,274 INFO  [org.exoplatform.web.security.security.RemindPasswordTokenService] (MSC service thread 1-1) before initCodec(): 0.0020
09:08:07,970 INFO  [org.exoplatform.web.security.security.CookieTokenService] (MSC service thread 1-1) Initialized CookieTokenService.codec using builder org.exoplatform.web.security.codec.JCASymmetricCodecBuilder
09:08:07,971 INFO  [org.exoplatform.web.security.security.RemindPasswordTokenService] (MSC service thread 1-1) after initCodec(): 0.697
{code}

The background is described e.g. here: http://stackoverflow.com/questions/137212/how-to-solve-performance-problem-with-java-securerandom


                
> CookieTokenService initialization too slow
> ------------------------------------------
>
>                 Key: GTNPORTAL-2828
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-2828
>             Project: GateIn Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Peter Palaga
>            Assignee: Peter Palaga
>
> Originally reported by Nick Scavelli:
> 12:28:46,725 INFO  [org.picketlink.idm.impl.cache.InfinispanIdentityStoreCacheProviderImpl] (MSC service thread 1-7) Infinispan cache for Picketlink IDM created successfuly. cache name: idm-portal-store
> (18:29:51) nscavell: 12:29:23,170 INFO  [org.exoplatform.web.security.security.CookieTokenService] (MSC service thread 1-7) Initialized CookieTokenService.codec using builder org.exoplatform.web.security.codec.JCASymmetricCodecBuilder

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the gatein-issues mailing list