You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by Geir Engdahl <ge...@gmail.com> on 2012/09/03 10:53:58 UTC

Re: Slow shiro initialization on Google App Engine

Les Hazlewood-2 wrote
> 
> 
> Could it be that ClassLoader lookup (or repeated ClassLoader lookup,
> as would be done with reflection-based configuration like shiro.ini)
> is slow on Google App Engine?  Is there a latency based on where the
> actual class files reside?
> 
> 

I wrote a custom shiroEnvironmentClass which sets up the necessary
configuration programmatically, and it sped up the startup from timing out
at around 60 seconds to finishing in less than a second

org.apache.shiro.web.env.EnvironmentLoader initEnvironment: Shiro
environment initialized in 320 ms.

I still don't know why the reflection-based builder was so slow in the App
Engine environment, while other users did not see this issue.

Thanks for the pointers,

Geir



--
View this message in context: http://shiro-user.582556.n2.nabble.com/Slow-shiro-initialization-on-Google-App-Engine-tp7577760p7577776.html
Sent from the Shiro User mailing list archive at Nabble.com.