-
1. Re: Very slow initialization of Captcha
shane.bryzak Oct 8, 2007 11:47 AM (in response to toby451)I've got a Lenovo Z61p (similar specs to the T60) and it takes nowhere near that long on my machine:
01:44:20,781 INFO [Contexts] starting up: org.jboss.seam.captcha.captchaImage 01:44:21,718 INFO [Initialization] done initializing Seam
Which JVM version are you running? I'm using Sun JDK 1.5.0_11. -
2. Re: Very slow initialization of Captcha
toby451 Oct 9, 2007 5:03 AM (in response to toby451)Shane thanks for taking your time.
Strange that it differs so much. I was using 1.5.0_12. Changing to 1.5.0_11 does not change it much:10:51:37,795 INFO [Contexts] starting up: org.jboss.seam.captcha.captchaImage 10:52:18,156 INFO [Initialization] done initializing Seam
Moreover I am using JBoss-4.2.1.GA. On Vista as I mentioned.
Same application deployed on Ubuntu Linux on JDK 1.5.0_11 initializes captchaImage in 2 sec. -
3. Re: Very slow initialization of Captcha
pmuir Oct 9, 2007 5:04 AM (in response to toby451)Unless you have done some timings you aren't mentioning I suspect its actually delaying on something other that captcha creation. Have you looked at the server.log for debug messages?
-
4. Re: Very slow initialization of Captcha
toby451 Oct 17, 2007 10:11 AM (in response to toby451)Hi Peter & Shane,
As can be seen below it seems that HeirarchicalLoaderRepository3 is slow at two points during Captcha init.
I am still clueless on this one bu will continue to investigate. Any insightful points will be much appreciated.
Cheers,
Tobias15:57:45,974 INFO [Contexts] starting up: org.jboss.seam.captcha.captchaImage 15:57:45,974 DEBUG [Component] instantiating Seam component: org.jboss.seam.captcha.captchaImage 15:57:45,974 DEBUG [Component] initializing new instance of: org.jboss.seam.captcha.captchaImage 15:57:45,974 DEBUG [Component] done initializing: org.jboss.seam.captcha.captchaImage 15:57:45,974 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:57:45,974 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:57:45,974 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:57:45,974 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:57:45,974 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:57:45,974 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:57:45,974 DEBUG [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.captcha.captchaImage 15:57:45,974 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:57:45,974 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:57:45,974 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:57:45,974 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:57:45,974 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:57:45,974 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:57:45,974 DEBUG [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.captcha.captchaImage 15:57:45,992 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@119ca2c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@8d02eb{ url=null ,addedOrder=0} 15:57:45,992 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@119ca2c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1ba9aca{ url=null ,addedOrder=0} 15:57:46,032 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@119ca2c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@92949f{ url=null ,addedOrder=0} 15:57:55,165 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@119ca2c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1ae30a{ url=null ,addedOrder=0} 15:58:25,241 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@119ca2c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@4b44f0{ url=null ,addedOrder=0} 15:58:25,242 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@119ca2c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@19afa26{ url=null ,addedOrder=0} 15:58:25,243 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:58:25,243 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:58:25,243 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:58:25,243 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:58:25,243 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:58:25,243 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:58:25,244 DEBUG [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.captcha.captchaImage 15:58:25,244 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:58:25,244 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:58:25,244 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:58:25,244 DEBUG [Events] Processing event:org.jboss.seam.postInitialization 15:58:25,244 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:58:25,244 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:58:25,245 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:58:25,245 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:58:25,245 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:58:25,245 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:58:25,245 DEBUG [Events] Processing event:org.jboss.seam.preDestroyContext.CONVERSATION 15:58:25,245 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:58:25,246 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:58:25,246 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:58:25,246 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:58:25,246 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:58:25,246 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:58:25,246 DEBUG [Events] Processing event:org.jboss.seam.postDestroyContext.CONVERSATION 15:58:25,247 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:58:25,247 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:58:25,247 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:58:25,247 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:58:25,247 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:58:25,247 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:58:25,247 DEBUG [Events] Processing event:org.jboss.seam.preDestroyContext.EVENT 15:58:25,248 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:58:25,248 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:58:25,248 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:58:25,248 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events 15:58:25,248 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events 15:58:25,248 DEBUG [Component] done initializing: org.jboss.seam.core.events 15:58:25,248 DEBUG [Events] Processing event:org.jboss.seam.postDestroyContext.EVENT
-
5. Re: Very slow initialization of Captcha
toby451 Oct 18, 2007 3:57 AM (in response to toby451)Ok solved it ...
Avast! antivirus + Vista => Captcha initializes in 1 min :-#
Avast! antivirus + XP => Captcha initializes in 2 s :-|
Avast! antivirus disabled + Vista or XP => Captcha initializes in 1 s :)
Tobias -
6. Re: Very slow initialization of Captcha
modoc Oct 22, 2007 3:03 AM (in response to toby451)I'm on a Mac without antivirus. I've just added Captcha to one of my projects and I now see a 17 second pause during startup that was not there before. This is out of 39 second total start time, so it's a significant pause.
00:01:13,660 INFO [Contexts] starting up: org.jboss.seam.captcha.captchaImage
*****17 seconds****
00:01:30,292 INFO [Contexts] starting up: org.jboss.seam.ui.resource.webResource
00:01:30,293 INFO [Initialization] done initializing Seam
My machine is very fast with tons of ram, no anti-virus, running the latest 1.5 jvm for the mac: 1.5.0_07-87
Any ideas?
Thanks in advance! -
7. Re: Very slow initialization of Captcha
pmuir Oct 23, 2007 6:01 AM (in response to toby451)I don't see any problems with starting captcha on a mac, same jvm. Post the debug log for that period