AnsweredAssumed Answered

Stuck thread

Question asked by rpalfreco on Jun 18, 2015
Hi All ,
From last couple of weeks we have http threads getting stuck and consuming lot of CPU . Which make application to respond slow. We are clue less and not able to figure out what exactly is the problem
Below is the stack trace. Any help will be much appreciated. Thanks in advance.

———————————-There are 2 stack traces and 2nd at the end
1 >>>
org.ajax4jsf.org.w3c.tidy.DOMNodeListByTagNameImpl.preTraverse(DOMNodeListByTagNameImpl.java:181)
org.ajax4jsf.org.w3c.tidy.DOMNodeListByTagNameImpl.preTraverse(DOMNodeListByTagNameImpl.java:180)
org.ajax4jsf.org.w3c.tidy.DOMNodeListByTagNameImpl.preTraverse(DOMNodeListByTagNameImpl.java:180)
org.ajax4jsf.org.w3c.tidy.DOMNodeListByTagNameImpl.preTraverse(DOMNodeListByTagNameImpl.java:180)
org.ajax4jsf.org.w3c.tidy.DOMNodeListByTagNameImpl.preTraverse(DOMNodeListByTagNameImpl.java:180)
org.ajax4jsf.org.w3c.tidy.DOMNodeListByTagNameImpl.preTraverse(DOMNodeListByTagNameImpl.java:180)
org.ajax4jsf.org.w3c.tidy.DOMNodeListByTagNameImpl.preTraverse(DOMNodeListByTagNameImpl.java:180)
org.ajax4jsf.org.w3c.tidy.DOMNodeListByTagNameImpl.preTraverse(DOMNodeListByTagNameImpl.java:180)
org.ajax4jsf.org.w3c.tidy.DOMNodeListByTagNameImpl.preTraverse(DOMNodeListByTagNameImpl.java:180)
org.ajax4jsf.org.w3c.tidy.DOMNodeListByTagNameImpl.preTraverse(DOMNodeListByTagNameImpl.java:180)
org.ajax4jsf.org.w3c.tidy.DOMNodeListByTagNameImpl.preTraverse(DOMNodeListByTagNameImpl.java:180)
org.ajax4jsf.org.w3c.tidy.DOMNodeListByTagNameImpl.getLength(DOMNodeListByTagNameImpl.java:149)
org.ajax4jsf.webapp.tidy.TidyParser.parseHtmlByTidy(TidyParser.java:107)
org.ajax4jsf.webapp.tidy.TidyParser.parseHtml(TidyParser.java:217)
org.ajax4jsf.webapp.FilterServletResponseWrapper.parseContent(FilterServletResponseWrapper.java:613)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:298)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:104)
sun.reflect.GeneratedMethodAccessor550.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:116)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
com.sun.proxy.$Proxy224.doFilter(Unknown Source)
org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.alfresco.repo.web.filter.beans.NullFilter.doFilter(NullFilter.java:68)
sun.reflect.GeneratedMethodAccessor550.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:116)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
com.sun.proxy.$Proxy224.doFilter(Unknown Source)
org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:680)

2>>>
org.apache.lucene.search.WildcardTermEnum.wildcardEquals(WildcardTermEnum.java:177)
org.apache.lucene.search.WildcardTermEnum.wildcardEquals(WildcardTermEnum.java:177)
org.apache.lucene.search.WildcardTermEnum.wildcardEquals(WildcardTermEnum.java:177)
org.apache.lucene.search.WildcardTermEnum.termCompare(WildcardTermEnum.java:76)
org.apache.lucene.search.FilteredTermEnum.next(FilteredTermEnum.java:69)
org.alfresco.repo.search.impl.lucene.LuceneQueryParser.addWildcardTerms(LuceneQueryParser.java:1610)
org.alfresco.repo.search.impl.lucene.LuceneQueryParser.getMatchingTerms(LuceneQueryParser.java:1576)
org.alfresco.repo.search.impl.lucene.LuceneQueryParser.getFieldQueryImpl(LuceneQueryParser.java:1560)
org.alfresco.repo.search.impl.lucene.LuceneQueryParser.getSuperFieldQuery(LuceneQueryParser.java:3089)
org.alfresco.repo.search.impl.lucene.LuceneQueryParser$FieldQuery.getQuery(LuceneQueryParser.java:3180)
org.alfresco.repo.search.impl.lucene.LuceneQueryParser.addLocaleSpecificTokenisedMLOrTextAttribute(LuceneQueryParser.java:3610)
org.alfresco.repo.search.impl.lucene.LuceneQueryParser.attributeQueryBuilder(LuceneQueryParser.java:3516)
org.alfresco.repo.search.impl.lucene.LuceneQueryParser.getFieldQuery(LuceneQueryParser.java:851)
org.alfresco.repo.search.impl.lucene.LuceneQueryParser.getFieldQuery(LuceneQueryParser.java:337)
org.alfresco.repo.search.impl.lucene.LuceneQueryParser.getFieldQuery(LuceneQueryParser.java:263)
org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1459)
org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1211)
org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1139)
org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1215)
org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1139)
org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1128)
org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:170)
org.alfresco.repo.search.impl.lucene.LuceneQueryParser.parse(LuceneQueryParser.java:160)
org.alfresco.repo.search.impl.lucene.ADMLuceneSearcherImpl.query(ADMLuceneSearcherImpl.java:287)
org.alfresco.repo.search.impl.lucene.ADMLuceneSearcherImpl.query(ADMLuceneSearcherImpl.java:241)
org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:67)
org.alfresco.repo.search.AbstractSearcherComponent.query(AbstractSearcherComponent.java:53)
sun.reflect.GeneratedMethodAccessor433.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:43)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:279)
org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:228)
org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:195)
org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:140)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
com.sun.proxy.$Proxy44.query(Unknown Source)
com.test.cred.web.search.AJAX.AjaxSearchUtil.ExecuteQuery(AjaxSearchUtil.java:330)
com.test.cred.web.search.AJAX.AjaxSearchUtil.getJSONString(AjaxSearchUtil.java:138)
com.test.cred.web.workflow.AJAXServlet.doGet(AJAXServlet.java:74)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:680)


—————————–

Outcomes