Issue #517 resolved

Timeouts with repository working....

Slavomir Kocka
created an issue

Whole SCM is working great, however, there are often issues with response... Eg... Reading from mercurial sometimes takes a second, sometimes it takes 2 minutes... Only thing I found in logs is these, however I'm not sure, there is some relation to this behavior... As I told, this is not showstopper, but it causes sometimes extreme time lags within the team.

Thanks for any advice....

09:40:04.606 [ajp-apr-8009-exec-1] ERROR sonia.scm.activity.collector.AbstractChangesetCollector - could retrieve changesets for repository vuc-iam
com.aragost.javahg.internals.RuntimeIOException: Input length = 1
    at com.aragost.javahg.internals.Utils.asRuntime(Utils.java:372) ~[javahg-0.6-scm1.jar:na]
    at com.aragost.javahg.internals.Utils.decodeBytes(Utils.java:184) ~[javahg-0.6-scm1.jar:na]
    at com.aragost.javahg.internals.HgInputStream.textUpTo(HgInputStream.java:454) ~[javahg-0.6-scm1.jar:na]
    at sonia.scm.repository.spi.javahg.AbstractChangesetCommand.createFromInputStream(AbstractChangesetCommand.java:197) ~[scm-hg-plugin-1.34.jar:na]
    at sonia.scm.repository.spi.javahg.AbstractChangesetCommand.readListFromStream(AbstractChangesetCommand.java:292) ~[scm-hg-plugin-1.34.jar:na]
    at sonia.scm.repository.spi.javahg.HgLogChangesetCommand.execute(HgLogChangesetCommand.java:113) ~[scm-hg-plugin-1.34.jar:na]
    at sonia.scm.repository.spi.HgLogCommand.getChangesets(HgLogCommand.java:162) ~[scm-hg-plugin-1.34.jar:na]
    at sonia.scm.repository.api.LogCommandBuilder.getChangesets(LogCommandBuilder.java:261) ~[scm-core-1.34.jar:na]
    at sonia.scm.activity.collector.CombinedBranchCollector.collectChangesets(CombinedBranchCollector.java:77) ~[scm-activity-plugin-1.9.jar:na]
    at sonia.scm.activity.collector.AbstractChangesetCollector.collectChangesets(AbstractChangesetCollector.java:109) ~[scm-activity-plugin-1.9.jar:na]
    at sonia.scm.activity.ActivityManager.appendActivities(ActivityManager.java:178) ~[scm-activity-plugin-1.9.jar:na]
    at sonia.scm.activity.ActivityManager.getActivities(ActivityManager.java:199) ~[scm-activity-plugin-1.9.jar:na]
    at sonia.scm.activity.ActivityManager.getLatestActivity(ActivityManager.java:148) ~[scm-activity-plugin-1.9.jar:na]
    at sonia.scm.activity.ActivityResource.getLatestActivity(ActivityResource.java:84) ~[scm-activity-plugin-1.9.jar:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_25]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_25]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_25]
    at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) ~[tomcat-servlet-api-3.0.jar:na]
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at sonia.scm.filter.SecurityFilter.doFilter(SecurityFilter.java:111) ~[SecurityFilter.class:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) ~[scm-core-1.34.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:186) ~[scm-core-1.34.jar:na]
    at sonia.scm.web.security.ApiBasicAuthenticationFilter.doFilter(ApiBasicAuthenticationFilter.java:112) ~[ApiBasicAuthenticationFilter.class:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) ~[scm-core-1.34.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at sonia.scm.filter.GZipFilter.doFilter(GZipFilter.java:112) ~[scm-core-1.34.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) ~[scm-core-1.34.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:117) ~[BaseUrlFilter.class:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) ~[scm-core-1.34.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) ~[shiro-web-1.2.2.jar:1.2.2]
    at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) ~[shiro-web-1.2.2.jar:1.2.2]
    at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) ~[shiro-core-1.2.2.jar:1.2.2]
    at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) ~[shiro-core-1.2.2.jar:1.2.2]
    at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) ~[shiro-core-1.2.2.jar:1.2.2]
    at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) ~[shiro-web-1.2.2.jar:1.2.2]
    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) ~[shiro-web-1.2.2.jar:1.2.2]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) ~[guice-servlet-3.0.jar:na]
    at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:104) ~[BootstrapFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197) ~[tomcat-coyote-7.0.26.jar:7.0.26]
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579) ~[tomcat-coyote-7.0.26.jar:7.0.26]
    at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1763) ~[tomcat-coyote-7.0.26.jar:7.0.26]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_25]
    at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
Caused by: java.nio.charset.MalformedInputException: Input length = 1
    at java.nio.charset.CoderResult.throwException(CoderResult.java:277) ~[na:1.7.0_25]
    at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:798) ~[na:1.7.0_25]
    at com.aragost.javahg.internals.Utils.decodeBytes(Utils.java:182) ~[javahg-0.6-scm1.jar:na]
    ... 105 common frames omitted
2014-01-16 09:40:05 INFO  [pool-1-thread-1] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration due to changes in [Scheduled Task Configuration] made by Task-User...
2014-01-16 09:40:05 INFO  [pool-1-thread-1] - com.sonatype.nexus.plugins.healthcheck.task.HealthCheckTask - Scheduled task (Health Check: AlfrescoPublic) started :: Health Check Management for Repository AlfrescoPublic
09:40:05.833 [ajp-apr-8009-exec-1] ERROR sonia.scm.activity.collector.AbstractChangesetCollector - could retrieve changesets for repository nku
com.aragost.javahg.internals.RuntimeIOException: Input length = 1
    at com.aragost.javahg.internals.Utils.asRuntime(Utils.java:372) ~[javahg-0.6-scm1.jar:na]
    at com.aragost.javahg.internals.Utils.decodeBytes(Utils.java:184) ~[javahg-0.6-scm1.jar:na]
    at com.aragost.javahg.internals.HgInputStream.textUpTo(HgInputStream.java:454) ~[javahg-0.6-scm1.jar:na]
    at sonia.scm.repository.spi.javahg.AbstractChangesetCommand.createFromInputStream(AbstractChangesetCommand.java:197) ~[scm-hg-plugin-1.34.jar:na]
    at sonia.scm.repository.spi.javahg.AbstractChangesetCommand.readListFromStream(AbstractChangesetCommand.java:292) ~[scm-hg-plugin-1.34.jar:na]
    at sonia.scm.repository.spi.javahg.HgLogChangesetCommand.execute(HgLogChangesetCommand.java:113) ~[scm-hg-plugin-1.34.jar:na]
    at sonia.scm.repository.spi.HgLogCommand.getChangesets(HgLogCommand.java:162) ~[scm-hg-plugin-1.34.jar:na]
    at sonia.scm.repository.api.LogCommandBuilder.getChangesets(LogCommandBuilder.java:261) ~[scm-core-1.34.jar:na]
    at sonia.scm.activity.collector.CombinedBranchCollector.collectChangesets(CombinedBranchCollector.java:77) ~[scm-activity-plugin-1.9.jar:na]
    at sonia.scm.activity.collector.AbstractChangesetCollector.collectChangesets(AbstractChangesetCollector.java:109) ~[scm-activity-plugin-1.9.jar:na]
    at sonia.scm.activity.ActivityManager.appendActivities(ActivityManager.java:178) ~[scm-activity-plugin-1.9.jar:na]
    at sonia.scm.activity.ActivityManager.getActivities(ActivityManager.java:199) ~[scm-activity-plugin-1.9.jar:na]
    at sonia.scm.activity.ActivityManager.getLatestActivity(ActivityManager.java:148) ~[scm-activity-plugin-1.9.jar:na]
    at sonia.scm.activity.ActivityResource.getLatestActivity(ActivityResource.java:84) ~[scm-activity-plugin-1.9.jar:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_25]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_25]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_25]
    at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716) ~[jersey-bundle-1.17.1.jar:1.17.1]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) ~[tomcat-servlet-api-3.0.jar:na]
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at sonia.scm.filter.SecurityFilter.doFilter(SecurityFilter.java:111) ~[SecurityFilter.class:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) ~[scm-core-1.34.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:186) ~[scm-core-1.34.jar:na]
    at sonia.scm.web.security.ApiBasicAuthenticationFilter.doFilter(ApiBasicAuthenticationFilter.java:112) ~[ApiBasicAuthenticationFilter.class:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) ~[scm-core-1.34.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at sonia.scm.filter.GZipFilter.doFilter(GZipFilter.java:112) ~[scm-core-1.34.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) ~[scm-core-1.34.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:117) ~[BaseUrlFilter.class:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) ~[scm-core-1.34.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) ~[shiro-web-1.2.2.jar:1.2.2]
    at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) ~[shiro-web-1.2.2.jar:1.2.2]
    at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) ~[shiro-core-1.2.2.jar:1.2.2]
    at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) ~[shiro-core-1.2.2.jar:1.2.2]
    at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) ~[shiro-core-1.2.2.jar:1.2.2]
    at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) ~[shiro-web-1.2.2.jar:1.2.2]
    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) ~[shiro-web-1.2.2.jar:1.2.2]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) ~[guice-servlet-3.0.jar:na]
    at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:104) ~[BootstrapFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) ~[tomcat-catalina-7.0.26.jar:7.0.26]
    at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197) ~[tomcat-coyote-7.0.26.jar:7.0.26]
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579) ~[tomcat-coyote-7.0.26.jar:7.0.26]
    at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1763) ~[tomcat-coyote-7.0.26.jar:7.0.26]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_25]
    at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
Caused by: java.nio.charset.MalformedInputException: Input length = 1
    at java.nio.charset.CoderResult.throwException(CoderResult.java:277) ~[na:1.7.0_25]
    at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:798) ~[na:1.7.0_25]
    at com.aragost.javahg.internals.Utils.decodeBytes(Utils.java:182) ~[javahg-0.6-scm1.jar:na]
    ... 105 common frames omitted

Comments (14)

  1. Sebastian Sdorra repo owner
    • changed status to open

    The stacktrace you posted shows a problem, which seems to be related to encoding. Please be sure that the encoding of your workstations are matches the mercurial encoding in scm-manager. But this should not cause perfomance problems. Where you get this slow read times? In the activity view or in the changeset view of a repository?

  2. Slavomir Kocka reporter

    Well, I'm not sure, if it is activity view, or changeset view. Anyway, the issue occurs when pulling, and pushing to repository... Sometimes it is immediate, sometimes, it takes up to 3 minutes. I Also upgraded to 1.34 some time ago, and this behavior didn't change (I started using SCM around 1.10 if I remember correctly) We also use external LDAP (AD) for authorisation... For that we use scm-auth-ldap-plugin 1.19... However LDAP itself is stable and responsive, and we use also other tools on that machine talking to the very same LDAP, with no response issues... So connectivity is stable...

  3. Sebastian Sdorra repo owner

    I guess the redmine plugin is the problem. Because the redmine plugin searches all changesets for issue keys and tries to update the redmine issues. It look like the redmine plugin does this in a synchronous hook. Could you uninstall it and test again? Just to be sure that the plugin causes the problem.

  4. Slavomir Kocka reporter

    I removed the plugin, and restarted the container. Guys told me, that it works fine, however after one day of usage, we are in the similar or same state... I'm attaching new support information as well... Just to remark, we use one tomcat instance for running nexus (maven repository) as well, as scm-manager... However nexus does not slows down, and there is no i/o or cpu load during the waiting period as far as I was investigating it...

  5. Sebastian Sdorra repo owner

    Ok, it looks like SCM-Manager tries to follow a referral to another ldap/ad server which is not accessible. If the referral is not important you could change the referral strategy in SCM-Manager.

    Changing referral strategy:

    • login as administrator
    • go to Config->General->LDAP Authentication
    • change profile to Custom
    • change "referral strategy" to "ignore"
    • save changes
    • test again
  6. Log in to comment