On 27 Sep 2022, at 11:25, Ps <psre...@gmail.com> wrote:Hello Matthias,Thanks for replying -Endusers are frequently getting with below 504 errors !!my question is - Should I do any changes in gerrit.config to overcome below issue ?unable to access svc-jen...@prod.com The requested URL returned error: 504
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/7535806c-7b38-4567-83a4-328be296dec9n%40googlegroups.com.
backend gerrit
balance roundrobin
mode http
cookie SERVERID insert indirect nocache
option httpchk HEAD /config/server/version
server localhost localhost:8080 maxconn 200 check cookie localhost
timeout check 30s
timeout client 30s
timeout connect 20s
On 27 Sep 2022, at 12:14, Ps <psre...@gmail.com> wrote:Hi Luca,I'm collecting http connections by a simple command - HTTP Connections: $(netstat -latuen | egrep '8080' | wc -lfor every 5 seconds - on average http connection count is 600 and sometime it is reaching 1400+ as well.
[httpd]listenUrl = proxy-https://*:8080/maxThreads = 99
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/16798b94-501b-4082-81ba-f2fc78b8acc4n%40googlegroups.com.
On 27 Sep 2022, at 13:21, Ps <psre...@gmail.com> wrote:Luca,maxThreads = 64 in 2.16.16 version - it looks good at that time - same team / same usage - but now we are getting this 504 timeout issues. I'm not seeing CPU utilisation not more than 40% and memory not crossing heap 85G.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/356278a2-aad3-42da-a135-4cd99c54b5b5n%40googlegroups.com.
On 27 Sep 2022, at 13:21, Ps <psre...@gmail.com> wrote:Luca,maxThreads = 64 in 2.16.16 version - it looks good at that time - same team / same usage - but now we are getting this 504 timeout issues. I'm not seeing CPU utilisation not more than 40% and memory not crossing heap 85G.I’d suggest to get JVM thread dumps and see why the incoming HTTP calls seem to be stuck.
On 27 Sep 2022, at 13:37, Sven Selberg <sven.s...@axis.com> wrote:On Tuesday, September 27, 2022 at 2:32:41 PM UTC+2 lucamilanesio wrote:On 27 Sep 2022, at 13:21, Ps <psre...@gmail.com> wrote:Luca,maxThreads = 64 in 2.16.16 version - it looks good at that time - same team / same usage - but now we are getting this 504 timeout issues. I'm not seeing CPU utilisation not more than 40% and memory not crossing heap 85G.I’d suggest to get JVM thread dumps and see why the incoming HTTP calls seem to be stuck.Just a thought.
We have at times experienced running out of HTTP threads due to LDAP issues (long respons-times, shaky connections, etc.).
It might be worth looking into, if for nothing else to exclude it as a potential culprit.
A JVM thread dump should reveal this.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/715ab512-dcdd-4e3f-9015-70d8ea65dcedn%40googlegroups.com.
Thanks, Srinivasa
On 27 Sep 2022, at 14:04, Ps <psre...@gmail.com> wrote:I'm maybe wrong - but I didn't find jstack open-jdk-11 rp, - I'm trying to get command on rhel.rpm -ql java-11-openjdk-headless-11.0.8.10-1.el7.x86_64 | grep -i jstack
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/667868b7-daa1-4ea3-acc4-35a6347e8496n%40googlegroups.com.
On 27 Sep 2022, at 14:28, Ps <psre...@gmail.com> wrote:Thanks Luca,I think I have taken dump correctly !! Please find the attached JVM thread dump details.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/74b36d20-662f-4dc2-a693-e8d7ca3f4b8bn%40googlegroups.com.
<thread_dump>
On 27 Sep 2022, at 14:45, Ps <psre...@gmail.com> wrote:Hello Luca,We will not allow visibility of all refs to all users.We were on reviewdb - and before migration we migrated mandatory to notedb.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/421307e1-d703-4a54-98f2-1cff8c83b786n%40googlegroups.com.
org.eclipse.jetty.io.EofException: Closed
at org.eclipse.jetty.server.HttpOutput.checkWritable(HttpOutput.java:733)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:757)
at net.bull.javamelody.internal.web.FilterServletOutputStream.write(FilterServletOutputStream.java:88)
at net.bull.javamelody.internal.web.CounterResponseStream.write(CounterResponseStream.java:81)
at org.eclipse.jgit.util.TemporaryBuffer.writeTo(TemporaryBuffer.java:287)
at org.eclipse.jgit.http.server.SmartOutputStream.writeResponse(SmartOutputStream.java:102)
at org.eclipse.jgit.http.server.SmartOutputStream.close(SmartOutputStream.java:92)
at org.eclipse.jgit.http.server.UploadPackServlet.lambda$doPost$0(UploadPackServlet.java:187)
at com.google.gerrit.httpd.GitOverHttpServlet$GerritUploadPackErrorHandler.upload(GitOverHttpServlet.java:494)
at org.eclipse.jgit.http.server.UploadPackServlet.doPost(UploadPackServlet.java:202)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jgit.http.server.glue.UrlPipeline$Chain.doFilter(UrlPipeline.java:212)
at com.google.gerrit.httpd.GitOverHttpServlet$UploadFilter.doFilter(GitOverHttpServlet.java:462)
at org.eclipse.jgit.http.server.glue.UrlPipeline$Chain.doFilter(UrlPipeline.java:210)
at org.eclipse.jgit.http.server.UploadPackServlet$Factory.doFilter(UploadPackServlet.java:137)
at org.eclipse.jgit.http.server.glue.UrlPipeline$Chain.doFilter(UrlPipeline.java:210)
at org.eclipse.jgit.http.server.RepositoryFilter.doFilter(RepositoryFilter.java:112)
at org.eclipse.jgit.http.server.glue.UrlPipeline$Chain.doFilter(UrlPipeline.java:210)
at org.eclipse.jgit.http.server.NoCacheFilter.doFilter(NoCacheFilter.java:53)
at org.eclipse.jgit.http.server.glue.UrlPipeline$Chain.doFilter(UrlPipeline.java:210)
at org.eclipse.jgit.http.server.glue.UrlPipeline.service(UrlPipeline.java:189)
at org.eclipse.jgit.http.server.glue.SuffixPipeline.service(SuffixPipeline.java:70)
at org.eclipse.jgit.http.server.glue.MetaFilter.doFilter(MetaFilter.java:151)
at org.eclipse.jgit.http.server.glue.MetaServlet.service(MetaServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:290)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:280)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:184)
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:89)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
at com.google.gerrit.httpd.raw.StaticModule$PolyGerritFilter.doFilter(StaticModule.java:393)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.GetUserFilter.doFilter(GetUserFilter.java:92)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequireSslFilter.doFilter(RequireSslFilter.java:72)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RunAsFilter.doFilter(RunAsFilter.java:120)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequireIdentifiedUserFilter.doFilter(RequireIdentifiedUserFilter.java:50)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.SetThreadNameFilter.doFilter(SetThreadNameFilter.java:62)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:139)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215)
at com.googlesource.gerrit.plugins.javamelody.GerritMonitoringFilter.doFilter(GerritMonitoringFilter.java:66)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:135)
at com.google.gerrit.httpd.AllowRenderInFrameFilter.doFilter(AllowRenderInFrameFilter.java:52)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:135)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy.doFilter(AllRequestFilter.java:141)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:60)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.pgm.http.jetty.ProjectQoSFilter.doFilter(ProjectQoSFilter.java:183)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.ProjectBasicAuthFilter.doFilter(ProjectBasicAuthFilter.java:111)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.ProjectBasicAuthFilter.doFilter(ProjectBasicAuthFilter.java:111)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequestMetricsFilter.doFilter(RequestMetricsFilter.java:92)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequestContextFilter.doFilter(RequestContextFilter.java:64)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1435)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1350)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handleAsync(Server.java:559)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$2(HttpChannel.java:396)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:396)
at org.eclipse.jetty.server.HttpChannel.run(HttpChannel.java:340)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905
Today we increased visibility - no luck. I installed javamelody as well. Let me monitor - it may give us more insights related to http (bottleneck)
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/52d208be-779d-4b7c-a0ec-ff257c64a86en%40googlegroups.com.
On 28 Sep 2022, at 07:34, mail...@gmail.com <mail...@gmail.com> wrote:Thanks Luca,
Yes - latest thread dump is attached.-- Srini
On Wednesday, 28 September, 2022 at 11:48:34 am UTC+5:30 lucamilanesio wrote:Today we increased visibility - no luck. I installed javamelody as well. Let me monitor - it may give us more insights related to http (bottleneck)Have you taken fresh thread dumps?
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/b6a66cca-6af5-4112-a14f-59156a494cabn%40googlegroups.com.
<thread_dump_2809>
On 28 Sep 2022, at 09:56, mail...@gmail.com <mail...@gmail.com> wrote:Yes Luca,We have lot of changes on that repository.Seems - I have only option to revert 3.5.2 for time being. Hope we will come out of this 504 issues.Thanks for your time - I will consider this is final solution for this issue now and downgrade the version to 3.5.2
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/02e6c079-1460-4aa1-8f59-b0c1d92d52fen%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/repo-discuss/V7909VlGiEU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/C3D0C076-64FB-412D-A0D4-01901D02BF95%40gmail.com.
Thanks Luca,I didn't find any rollback plan documentation for 3.6 - I will use the same manual steps mentioned for 3.5/3.4.
On 28 Sep 2022, at 12:01, lucamilanesio <luca.mi...@gmail.com> wrote:On Wednesday, September 28, 2022 at 11:37:43 AM UTC+1 Ps wrote:Thanks Luca,I didn't find any rollback plan documentation for 3.6 - I will use the same manual steps mentioned for 3.5/3.4.Bear in mind that Submit Requirements are not supported in 3.5/3.4: if you were using them already, you should go back to Prolog rules.I've created the issue [16284] for this problem in Gerrit v3.6.I believe the fix is quite easy, it won't take long :-)
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/984194f1-fd79-46ac-8ba3-6218d86bedb8n%40googlegroups.com.
On 28 Sep 2022, at 21:14, pian...@gmail.com <pian...@gmail.com> wrote:Hi, Luca -We have Gerrit 3.6.1 source code on our server. Can we just copy this fix (DefaultRefFilter.java) to there and rebulid the war? Have there been no other changes to DefaultRefFilter.java since 3.6.1?
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/d70636fc-fe4f-4eda-bcd3-6e542a0acc70n%40googlegroups.com.
On 1 Oct 2022, at 03:31, mail...@gmail.com <mail...@gmail.com> wrote:
Thanks Luca,
We are able to deploy locally built war on production environment. All the 50X related are resolved now and gerrit services are working as expected.Once again thank you very much for fixing the issue and sharing the fix with us.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/89a685ad-40b5-42fc-9267-07dbe8a3f6cbn%40googlegroups.com.