[jboss-dev-forums] [Design of POJO Server] - Re: JBAS-6104; slow Seam deployments
shane.bryzak@jboss.com
do-not-reply at jboss.com
Sun Oct 26 20:46:18 EDT 2008
Deployment seems to be fine now, as Pete said. The issue is when you hit a Seam application for the first time, a whole bunch of stuff needs to be initialised. I did some deeper profiling, and here's a sample of some of the places where the most calls are being made to VirtualFileURLConnection.getInputStream:
25.2% - 90,069ms - 335 inv. com.sun.facelets.util.Classpath.searchFromURL
10.0% - 35,665ms - 11 inv. com.sun.facelets.compiler.TagLibraryConfig.create
1.0% - 3,461ms - 1 inv. org.ajax4jsf.resource.JarResource.getResourceAsStream (called from TemplateCSSRendered.getTemplate)
13.1% - 46,692ms - 11 inv. org.jboss.seam.deployment.SeamDeploymentProperties.addPropertiesFromResourceBundle (called indirectly from HotDeploymentStrategy.getDeploymentHandlers)
12.9% - 46,115ms - 11 inv. org.jboss.seam.deployment.SeamDeploymentProperties.addPropertiesFromResourceBundle (called indirectly from DeploymentStrategy.getDeploymentHandlers - initialized by WarRootDeploymentStrategy)
12.7% - 45,284ms - 11 inv. org.jboss.seam.deployment.SeamDeploymentProperties.addPropertiesFromResourceBundle (called indirectly from DeploymentStrategy.getScanner)
12.6% - 45,042ms - 11 inv. org.jboss.seam.deployment.SeamDeploymentProperties.addPropertiesFromResourceBundle (called indirectly from DeploymentStrategy.getScanner, initialized by WarRootDeploymentStrategy.scan)
The percentages are the fraction of total CPU time taken during application initialization for the first request hitting a Seam application, in this case seam-booking. Looking at where most of the calls are being made from, we can possibly do some optimization in SeamDeploymentProperties (I'll start investigating this next) however even with some optimizations here the fact remains that vfs still seems very under-performant.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184705#4184705
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184705
More information about the jboss-dev-forums
mailing list