2 Replies Latest reply on Apr 22, 2014 9:27 PM by Ravi Vali

    Stuck threads under high load / load test

    Ravi Vali Newbie

      We are using Richfaces 4.2.2 in our application.

       

      We are getting stuck threads when the application is deployed in weblogic and when we are running load tests.

       

      All the stuck threads are related to RichFaces, here i have given the stack traces of the stuck threads.

       

      1. java.beans.PropertyDescriptor.getReadMethod(PropertyDescriptor.java)

      java.beans.PropertyDescriptor.getReadMethod(PropertyDescriptor.java)
      javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2340)
      org.richfaces.renderkit.util.AjaxRendererUtils.getAjaxStatus(AjaxRendererUtils.java:551)
      org.richfaces.renderkit.util.AjaxRendererUtils.appendComponentOptions(AjaxRendererUtils.java:254)

      2.

      java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:45)

        java.lang.StringBuffer.<init>(StringBuffer.java:79)

        java.util.regex.Matcher.appendReplacement(Matcher.java:697)

        java.util.regex.Matcher.replaceAll(Matcher.java:813)

        java.lang.String.replace(String.java:2207)

        org.richfaces.resource.ResourceSkinUtils.evaluateSkinInPath(ResourceSkinUtils.java:53)

      3.

      java.util.HashMap.addEntry(HashMap.java:753)

        java.util.HashMap.put(HashMap.java:385)

        javax.faces.component.ComponentStateHelper.put(ComponentStateHelper.java:144)

        javax.faces.component.UIComponentBase$AttributesMap.putAttribute(UIComponentBase.java:2557)

        javax.faces.component.UIComponentBase$AttributesMap.put(UIComponentBase.java:2424)

        javax.faces.component.UIComponentBase$AttributesMap.put(UIComponentBase.java:2283)

        javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:399)

        javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2635)

        javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2607)

        com.sun.faces.facelets.tag.jsf.ComponentSupport.addComponent(ComponentSupport.java:577)

        com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.addComponentToView(ComponentTagHandlerDelegateImpl.java:297)

        com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:200)

        javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

        javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)

        javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

        org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)

       

      4.

      java.io.FileInputStream.close0(Native Method)
      java.io.FileInputStream.close(FileInputStream.java:304)
      java.io.BufferedInputStream.close(BufferedInputStream.java:451)
      com.sun.faces.facelets.impl.DefaultFaceletCache._getLastModified(DefaultFaceletCache.java:180)
      com.sun.faces.facelets.impl.DefaultFaceletCache.access$000(DefaultFaceletCache.java:62)
      com.sun.faces.facelets.impl.DefaultFaceletCache$ExpiryChecker.isExpired(DefaultFaceletCache.java:232)
      com.sun.faces.facelets.impl.DefaultFaceletCache$ExpiryChecker.isExpired(DefaultFaceletCache.java:226)
      com.sun.faces.util.ExpiringConcurrentCache.get(ExpiringConcurrentCache.java:120)
      com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:121)
      com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:62)
      com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:256)
      com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:366)
      com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
      com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
      com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:120)
      com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:117)
      javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
      javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
      org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)

       

       

       

      Attached complete stack trace.

       

      Please let me know how to resolve these issues.

       

      Thanks In Advance

      Vali