3 Replies Latest reply on Jan 21, 2009 6:28 AM by Ales Justin

    Deployed app [hudson] becomes very slow after a few minutes

    Thomas Effing Newbie

      Hi,
      deploying the latest hudson version using Carlo's hints [https://www.jboss.org/community/docs/DOC-13233] the app becomes very slow after a few minutes. The problem is reproducible. Even clicking on the link to change the image size takes several minutes and consumes almost all cpu power (i'm on debian).

      I sent Carlo the log file with 2 full thread dumps, perhaps he can provide an URL for it.

      Regards,
      Thomas Effing

        • 1. Re: Deployed app [hudson] becomes very slow after a few minu
          Andrew Rubinger Master

          We need to see some evidence exhibiting the problem to be of any help. Better idea to post some relevant portions of the Thread dump here than to privately email developers (unless asked). :)

          Also, please note Hudson and AS versions.

          S,
          ALR

          • 2. Re: Deployed app [hudson] becomes very slow after a few minu
            Carlo de Wolf Master

            I did ask Thomas to send me a full dump, but I forgot to state intent.

            Normally I would have only pointed you out to the forum or support. But we also use Hudson, so I want to know about problems in advance and the original mail you sent contained only two partial traces.

            This might be a better clue:

            "http-0.0.0.0-8080-2" daemon prio=1 tid=0x0bc586f0 nid=0x3bb9 runnable [0x75dfc000..0x75dfee40]
             at java.util.zip.Inflater.inflateBytes(Native Method)
             at java.util.zip.Inflater.inflate(Inflater.java:215)
             - locked <0xaed07b30> (a java.util.zip.Inflater)
             at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:128)
             at java.io.FilterInputStream.read(FilterInputStream.java:90)
             at org.jboss.virtual.plugins.context.zip.ZipEntryInputStream.read(ZipEntryInputStream.java:112)
             at org.jboss.virtual.VFSUtils.copyStream(VFSUtils.java:900)
             at org.jboss.virtual.VFSUtils.copyStreamAndClose(VFSUtils.java:859)
             at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:516)
             - locked <0xae91feb8> (a org.jboss.virtual.plugins.context.zip.ZipEntryContext)
             at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:554)
             - locked <0xae91feb8> (a org.jboss.virtual.plugins.context.zip.ZipEntryContext)
             at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:693)
             - locked <0xae91feb8> (a org.jboss.virtual.plugins.context.zip.ZipEntryContext)
             at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:737)
             at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:175)
             at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:542)
             at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:155)
             at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:106)
             at org.jboss.virtual.VirtualFile.findChild(VirtualFile.java:427)
             at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.resolveVirtualFile(VirtualFileURLConnection.java:106)
             at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getVirtualFile(VirtualFileURLConnection.java:118)
             - locked <0xae91f008> (a org.jboss.virtual.plugins.vfs.VirtualFileURLConnection)
             at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getInputStream(VirtualFileURLConnection.java:93)
             at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
             at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
             at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
             at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
             at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
             at org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:312)
             at org.apache.commons.jelly.JellyContext.compileScript(JellyContext.java:521)
             at org.kohsuke.stapler.jelly.CustomTagLibrary.loadJellyScript(CustomTagLibrary.java:152)
             at org.kohsuke.stapler.jelly.CustomTagLibrary.load(CustomTagLibrary.java:126)
             at org.kohsuke.stapler.jelly.CustomTagLibrary.load(CustomTagLibrary.java:118)
             at org.kohsuke.stapler.jelly.CustomTagLibrary.createTagScript(CustomTagLibrary.java:56)
             at org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java:1008)
             at org.apache.commons.jelly.parser.XMLParser.startElement(XMLParser.java:597)
             at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
             at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
             at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
             at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
             at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
             at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
             at org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:312)
             at org.apache.commons.jelly.JellyContext.compileScript(JellyContext.java:521)
             at org.kohsuke.stapler.jelly.JellyClassTearOff.parseScript(JellyClassTearOff.java:31)
             at org.kohsuke.stapler.jelly.JellyClassTearOff.parseScript(JellyClassTearOff.java:22)
             at org.kohsuke.stapler.AbstractTearOff.findScript(AbstractTearOff.java:61)
             - locked <0x98684630> (a org.kohsuke.stapler.jelly.JellyClassTearOff)
             at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:83)
             at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
             at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
             at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
             at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
             at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
             at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
             at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
             at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
             at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
             at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
             at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
             at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
             at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
             at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
             at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
             at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
             at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
             at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
             at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
             at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
             at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
             at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
             at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
             at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
             at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
             at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
             at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
             at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
             at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
             at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
             at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
             at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
             at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
             at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
             at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:29)
             at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:46)
             at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
             at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:145)
             at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
             at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
             at org.kohsuke.stapler.Stapler.invoke(Stapler.java:356)
             at org.kohsuke.stapler.Stapler.service(Stapler.java:116)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:68)
             at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:60)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:52)
             at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:44)
             at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:110)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
             at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
             at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
             at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
             at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
             at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
             at java.lang.Thread.run(Thread.java:595)


            I reckon Jelly dives into some archive which VFS keeps unzipping.

            • 3. Re: Deployed app [hudson] becomes very slow after a few minu
              Ales Justin Master

               

              "wolfc" wrote:

              I reckon Jelly dives into some archive which VFS keeps unzipping.

              What's the resource?

              I guess we need to add deploy/ to cached roots as well:
              vfs.xml
               <entry>
               <key>${jboss.server.home.url}deploy</key>
               <value><inject bean="VfsNamesExceptionHandler"/></value>
               </entry>