Issues after upgrade from 10.7 to 11.2

Hi,

I’m running xwiki via docker (image: “xwiki:stable-postgres-tomcat”)

Originally I upgraded from 10.7 to 11.2 just by changing docker image. I have the following issues after:
Wiki crashes after several hours.
WHen I’m trying to edit a page I receive this error: “Failed to save the page. Reason: Server not responding”

However the page is saving correctly. In the logs I see this:

xwiki-postgres-tomcat-web | 2019-05-07 12:56:32,680 [http://wiki.mydomain.net/bin/preview/Sandbox/TestPage1] ERROR .o.i.DefaultObservationManager - Failed to send event [org.xwiki.bridge.event.DocumentUpdatedEvent@29d0e385] to listener [com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl@186800f1]
xwiki-postgres-tomcat-web | org.hibernate.MappingException: Unknown entity: com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl

xwiki-postgres-tomcat-web | 2019-05-07 13:01:36,427 [http://wiki.mydomain.net/bin/preview/Sandbox/TestPage1] WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 13007 in 3: Exception while loading lock
xwiki-postgres-tomcat-web | com.xpn.xwiki.XWikiException: Error number 13007 in 3: Exception while loading lock

xwiki-postgres-tomcat-web | Caused by: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.xpn.xwiki.doc.XWikiLock#5330878325779721977]

xwiki-postgres-tomcat-web | 2019-05-07 13:01:36,436 [http://wiki.mydomain.net/bin/preview/Sandbox/TestPage1] WARN .x.x.s.XWikiHibernateBaseStore - Cleanup of session was needed: SessionImpl(PersistenceContext[entityKeys=[EntityKey[com.xpn.xwiki.doc.XWikiLock#5330878325779721977]],collectionKeys=];ActionQueue[insertions= updates= deletions= collectionCreations= collectionRemovals= collectionUpdates=])

Could you please assist? I also changed config files slightly as stated in the release notes. But I did that after an unsuccessful upgrade.

WDYM by crashes? The JVM is killed? There’s nothing in the logs you’re showing that would explain a JVM crash.

Maybe you’re don’t have enough memory. Could you check that? Also you can put -XX:+HeapDumpOnOutOfMemoryError JVM param to get a heap dump on crash if the issue is memory.

Hi @vmassol

I mean that wiki became unavailable and I have to restart the docker container to put it back to life. I can check what exactly happens next time. As per system RAM I see no issues:
image

If I click preview and then click save I receive this right in the browser:

Detailed information: Error number 13007 in 3: Exception while loading lock com.xpn.xwiki.XWikiException: Error number 13007 in 3: Exception while loading lock at com.xpn.xwiki.store.XWikiHibernateStore.loadLock(XWikiHibernateStore.java:1844) at com.xpn.xwiki.store.XWikiCacheStore.loadLock(XWikiCacheStore.java:594) at com.xpn.xwiki.doc.XWikiDocument.removeLock(XWikiDocument.java:6920) at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:245) at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:336) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:474) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:212) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:470) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:395) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:102) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.xpn.xwiki.doc.XWikiLock#5330878325779721977] at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:238) at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:285) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152) at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090) at org.hibernate.impl.SessionImpl.load(SessionImpl.java:974) at com.xpn.xwiki.store.XWikiHibernateStore.loadLock(XWikiHibernateStore.java:1837) ... 65 more

But it seems that it saving all the changes anyway.

I removed
<mapping resource="activitystream.hbm.xml"/>
from hibernate.xml and removed
com.xpn.xwiki.plugin.activitystream.plugin.ActivityStreamPlugin
from xwiki.cfg but the issue is still there.

This is the error. Now I don’t know why you have this. I think it means that some other part of the code has already non-database-committed changes related to the same page.

Do you have this every single time? Would be interesting to identify the user case when it does so that we can reproduce it.

Side note: you could google for this or search in this forum. It’s something I’ve seen mentioned in other threads.

Hi @vmassol

I already googled that. It seems that it’s related to java and I’m not an expert there :frowning:

Now wiki is “crashed”. JVM is there but I see this:
image

I also found that we have two users affected by a strange problem. Their accounts are being duplicated each time they login. Instead of just one “user” I have user, user_1, user_2, user_3 etc.
Logs:

xwiki-postgres-tomcat-web | 2019-05-10 09:23:58,837 [http://wiki.mydomain.net/bin/login/XWiki/XWikiLogin?srid=S9yxHuaL&xredirect=%2Fbin%2Fskin%2FXWiki%2FDefaultSkin%2Flogo.svg%3Fsrid%3DS9yxHuaL] WARN  c.x.x.i.s.h.HibernateStore     - Incompatible session (SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=[]];ActionQueue[insertions=[] updates=[] deletions=[] collectionCreations=[] collectionRemovals=[] collectionUpdates=[]])) and transaction (null) status 
xwiki-postgres-tomcat-web | 2019-05-10 09:24:28,838 [http://wiki.mydomain.net/bin/login/XWiki/XWikiLogin?srid=S9yxHuaL&xredirect=%2Fbin%2Fskin%2FXWiki%2FDefaultSkin%2Flogo.svg%3Fsrid%3DS9yxHuaL] WARN  o.h.u.JDBCExceptionReporter    - SQL Error: 0, SQLState: null 
xwiki-postgres-tomcat-web | 2019-05-10 09:24:28,838 [http://wiki.mydomain.net/bin/login/XWiki/XWikiLogin?srid=S9yxHuaL&xredirect=%2Fbin%2Fskin%2FXWiki%2FDefaultSkin%2Flogo.svg%3Fsrid%3DS9yxHuaL] ERROR o.h.u.JDBCExceptionReporter    - Cannot get a connection, pool error Timeout waiting for idle object 
xwiki-postgres-tomcat-web | 2019-05-10 09:24:28,841 [http://wiki.mydomain.net/bin/login/XWiki/XWikiLogin?srid=S9yxHuaL&xredirect=%2Fbin%2Fskin%2FXWiki%2FDefaultSkin%2Flogo.svg%3Fsrid%3DS9yxHuaL] ERROR .a.DefaultAuthorizationManager - Failed to load rights for user [xwiki:XWiki.dmud] on [xwiki:SyntaxHighlighting.EnableSyntaxHighlighting]. 
xwiki-postgres-tomcat-web | org.xwiki.security.authorization.AuthorizationException: Failed to get groups for user or group [xwiki:XWiki.dmud] in wiki [Wiki xwiki]


xwiki-postgres-tomcat-web | 2019-05-10 09:23:28,832 [http://wiki.mydomain.net/bin/login/XWiki/XWikiLogin?srid=S9yxHuaL&xredirect=%2Fbin%2Fskin%2FXWiki%2FDefaultSkin%2Flogo.svg%3Fsrid%3DS9yxHuaL] WARN  c.x.x.i.s.h.HibernateStore     - Incompatible session (SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=[]];ActionQueue[insertions=[] updates=[] deletions=[] collectionCreations=[] collectionRemovals=[] collectionUpdates=[]])) and transaction (null) status 
xwiki-postgres-tomcat-web | 2019-05-10 09:23:58,833 [http://wiki.mydomain.net/bin/login/XWiki/XWikiLogin?srid=S9yxHuaL&xredirect=%2Fbin%2Fskin%2FXWiki%2FDefaultSkin%2Flogo.svg%3Fsrid%3DS9yxHuaL] WARN  o.h.u.JDBCExceptionReporter    - SQL Error: 0, SQLState: null 
xwiki-postgres-tomcat-web | 2019-05-10 09:23:58,833 [http://wiki.mydomain.net/bin/login/XWiki/XWikiLogin?srid=S9yxHuaL&xredirect=%2Fbin%2Fskin%2FXWiki%2FDefaultSkin%2Flogo.svg%3Fsrid%3DS9yxHuaL] ERROR o.h.u.JDBCExceptionReporter    - Cannot get a connection, pool error Timeout waiting for idle object 
xwiki-postgres-tomcat-web | 2019-05-10 09:23:58,836 [http://wiki.mydomain.net/bin/login/XWiki/XWikiLogin?srid=S9yxHuaL&xredirect=%2Fbin%2Fskin%2FXWiki%2FDefaultSkin%2Flogo.svg%3Fsrid%3DS9yxHuaL] ERROR .a.DefaultAuthorizationManager - Failed to load rights for user [xwiki:XWiki.xadmin] on [xwiki:CKEditor.EditMenuEntry]. 
xwiki-postgres-tomcat-web | org.xwiki.security.authorization.AuthorizationException: Failed to get groups for user or group [xwiki:XWiki.xadmin] in wiki [Wiki xwiki]
xwiki-postgres-tomcat-web | 	at org.xwiki.security.internal.DefaultUserBridge.getGroupsReferencesFor(DefaultUserBridge.java:128)


...

xwiki-postgres-tomcat-web | 2019-05-10 09:45:25,412 [http://wiki.mydomain.net/bin/view/Main/] WARN  o.h.u.JDBCExceptionReporter    - SQL Error: 0, SQLState: null 
xwiki-postgres-tomcat-web | 2019-05-10 09:45:25,412 [http://wiki.mydomain.net/bin/view/Main/] ERROR o.h.u.JDBCExceptionReporter    - Cannot get a connection, pool error Timeout waiting for idle object 
xwiki-postgres-tomcat-web | 2019-05-10 09:45:25,413 [http://wiki.mydomain.net/bin/view/Main/] ERROR x.c.l.XWikiLDAPAuthServiceImpl - Fail to search for document containing ldap uid [dmud] 
xwiki-postgres-tomcat-web | com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while searching documents with SQL [, BaseObject as obj, StringProperty as prop where doc.fullName=obj.name and obj.className=? and obj.id=prop.id.id and prop.name=? and lower(prop.value)=?]

...

xwiki-postgres-tomcat-web | 2019-05-10 09:45:51,450 [http://wiki.mydomain.net/bin/view/Main/] WARN  o.h.u.JDBCExceptionReporter    - SQL Error: 0, SQLState: null 
xwiki-postgres-tomcat-web | 2019-05-10 09:45:51,450 [http://wiki.mydomain.net/bin/view/Main/] ERROR o.h.u.JDBCExceptionReporter    - Cannot get a connection, pool error Timeout waiting for idle object 
xwiki-postgres-tomcat-web | 2019-05-10 09:45:55,416 [http://wiki.mydomain.net/bin/view/Main/] WARN  o.h.u.JDBCExceptionReporter    - SQL Error: 0, SQLState: null 
xwiki-postgres-tomcat-web | 2019-05-10 09:45:55,416 [http://wiki.mydomain.net/bin/view/Main/] ERROR o.h.u.JDBCExceptionReporter    - Cannot get a connection, pool error Timeout waiting for idle object 
xwiki-postgres-tomcat-web | 2019-05-10 09:46:25,464 [http://wiki.mydomain.net/bin/login/XWiki/XWikiLogin?srid=ns5f3GdS&xredirect=%2Fbin%2Fview%2FMain%2F%3Fsrid%3Dns5f3GdS] WARN  o.h.u.JDBCExceptionReporter    - SQL Error: 0, SQLState: null 
xwiki-postgres-tomcat-web | 2019-05-10 09:46:25,464 [http://wiki.mydomain.net/bin/login/XWiki/XWikiLogin?srid=ns5f3GdS&xredirect=%2Fbin%2Fview%2FMain%2F%3Fsrid%3Dns5f3GdS] ERROR o.h.u.JDBCExceptionReporter    - Cannot get a connection, pool error Timeout waiting for idle object 
xwiki-postgres-tomcat-web | 2019-05-10 09:46:25,466 [http://wiki.mydomain.net/bin/login/XWiki/XWikiLogin?srid=ns5f3GdS&xredirect=%2Fbin%2Fview%2FMain%2F%3Fsrid%3Dns5f3GdS] ERROR .a.DefaultAuthorizationManager - Failed to load rights for user [xwiki:XWiki.dmud] on [Wiki xwiki]. 
xwiki-postgres-tomcat-web | org.xwiki.security.authorization.AuthorizationException: Failed to get groups for user or group [xwiki:XWiki.dmud] in wiki [Wiki xwiki]

On a DB container I see this:

root@155436c9ffef:/# ps aux
USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
postgres      1  0.0  0.5 274540 23292 ?        Ss   May07   0:03 postgres
postgres     23  0.0  0.4 274676 18304 ?        Ss   May07   0:00 postgres: checkpointer process  
postgres     24  0.0  0.1 274540  5396 ?        Ss   May07   0:01 postgres: writer process  
postgres     25  0.0  0.2 274540  8436 ?        Ss   May07   0:01 postgres: wal writer process  
postgres     26  0.0  0.1 274980  6352 ?        Ss   May07   0:01 postgres: autovacuum launcher process  
postgres     27  0.0  0.0 129696  2832 ?        Ss   May07   0:03 postgres: stats collector process  
postgres     29  0.0  0.7 281884 28240 ?        Ss   May07   0:01 postgres: xwiki xwiki 172.20.0.4(37588) idle in transaction
postgres     30  0.0  0.7 283084 28108 ?        Ss   May07   0:01 postgres: xwiki xwiki 172.20.0.4(37590) idle in transaction
postgres     31  0.0  0.7 284068 29672 ?        Ss   May07   0:01 postgres: xwiki xwiki 172.20.0.4(37592) idle in transaction
postgres     33  0.0  0.5 277192 22272 ?        Ss   May07   0:01 postgres: xwiki xwiki 172.20.0.4(37598) idle in transaction
postgres     36  0.0  0.6 281456 27240 ?        Ss   May07   0:00 postgres: xwiki xwiki 172.20.0.4(37612) idle in transaction
postgres    158  0.0  0.5 277296 21312 ?        Ss   May07   0:00 postgres: xwiki xwiki 172.20.0.4(37666) idle in transaction
postgres    233  0.0  0.2 275692 11496 ?        Ss   May07   0:00 postgres: xwiki xwiki 172.20.0.4(37668) idle in transaction
postgres    354  0.0  0.3 276296 12224 ?        Ss   May07   0:00 postgres: xwiki xwiki 172.20.0.4(37670) idle in transaction
postgres    355  0.0  0.2 275676 11884 ?        Ss   May07   0:00 postgres: xwiki xwiki 172.20.0.4(37672) idle in transaction
postgres    416  0.0  0.4 276612 17292 ?        Ss   May07   0:00 postgres: xwiki xwiki 172.20.0.4(37674) idle in transaction
postgres    477  0.0  0.4 276480 18172 ?        Ss   May07   0:00 postgres: xwiki xwiki 172.20.0.4(37676) idle in transaction
postgres    538  0.0  0.4 276524 18292 ?        Ss   May07   0:00 postgres: xwiki xwiki 172.20.0.4(37678) idle in transaction
postgres    599  0.0  0.4 276460 18872 ?        Ss   May07   0:00 postgres: xwiki xwiki 172.20.0.4(37690) idle in transaction
postgres    600  0.0  0.3 276608 14664 ?        Ss   May07   0:00 postgres: xwiki xwiki 172.20.0.4(37692) idle in transaction
postgres    661  0.0  0.4 276544 19008 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(37696) idle in transaction
postgres    783  0.0  0.2 275716 10528 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(37700) idle in transaction
postgres    844  0.0  0.4 276608 17132 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(37702) idle in transaction
postgres    983  0.0  0.5 277208 22124 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(37816) idle in transaction
postgres    985  0.0  0.5 277224 21984 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(37820) idle in transaction
postgres    986  0.0  0.3 276604 13320 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(37822) idle in transaction
postgres   1151  0.0  0.4 276892 18736 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(37912) idle in transaction
postgres   1244  0.0  0.7 281468 28624 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38094) idle in transaction
postgres   1245  0.0  0.2 276216 11920 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38096) idle in transaction
postgres   1248  0.0  0.6 277872 24796 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38104) idle in transaction
postgres   1378  0.0  0.7 283260 31224 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38226) idle in transaction
postgres   1379  0.0  0.7 285368 29176 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38228) idle in transaction
postgres   1557  0.0  0.3 276328 15684 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38422) idle in transaction
postgres   1566  0.0  0.4 276500 19872 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38468) idle in transaction
postgres   1568  0.0  0.5 277672 22360 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38472) idle in transaction
postgres   1571  0.0  0.5 277040 20520 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38478) idle in transaction
postgres   1573  0.0  0.5 276852 20860 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38482) idle in transaction
postgres   1748  0.0  0.4 276652 18776 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38600) idle in transaction
postgres   1809  0.0  0.4 276612 18376 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38602) idle in transaction
postgres   1870  0.0  0.3 276356 13464 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38604) idle in transaction
postgres   1931  0.0  0.3 276356 13468 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38606) idle in transaction
postgres   1992  0.0  0.4 276524 18720 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38608) idle in transaction
postgres   2053  0.0  0.4 276876 19656 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38610) idle in transaction
postgres   2114  0.0  0.7 282452 31932 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38614) idle in transaction
postgres   2115  0.0  0.3 276356 13468 ?        Ss   May08   0:00 postgres: xwiki xwiki 172.20.0.4(38612) idle in transaction
postgres   2176  0.0  0.4 276580 17384 ?        Ss   May09   0:00 postgres: xwiki xwiki 172.20.0.4(38618) idle in transaction
postgres   2237  0.0  0.3 276656 13588 ?        Ss   May09   0:00 postgres: xwiki xwiki 172.20.0.4(38630) idle in transaction
postgres   2358  0.0  0.6 281200 24800 ?        Ss   May09   0:00 postgres: xwiki xwiki 172.20.0.4(38632) idle in transaction
postgres   2359  0.0  0.3 276348 12684 ?        Ss   May09   0:00 postgres: xwiki xwiki 172.20.0.4(38634) idle in transaction
postgres   2420  0.0  0.3 276476 12720 ?        Ss   May09   0:00 postgres: xwiki xwiki 172.20.0.4(38636) idle in transaction
postgres   2509  0.0  0.5 277488 22484 ?        Ss   May09   0:00 postgres: xwiki xwiki 172.20.0.4(38744) idle in transaction
postgres   2587  0.0  0.6 281100 24788 ?        Ss   May09   0:00 postgres: xwiki xwiki 172.20.0.4(39164) idle in transaction
postgres   2588  0.0  0.7 281512 28944 ?        Ss   May09   0:00 postgres: xwiki xwiki 172.20.0.4(39166) idle in transaction
postgres   2590  0.0  0.6 281388 25880 ?        Ss   May09   0:00 postgres: xwiki xwiki 172.20.0.4(39170) idle in transaction
postgres   2751  0.0  0.6 278088 27444 ?        Ss   May09   0:00 postgres: xwiki xwiki 172.20.0.4(39276) idle in transaction
postgres   2752  0.0  0.6 281188 26328 ?        Ss   May09   0:00 postgres: xwiki xwiki 172.20.0.4(39278) idle in transaction
root       4179  0.5  0.0  19868  3832 pts/0    Ss   10:11   0:00 bash
root       4185  0.0  0.0  38308  3204 pts/0    R+   10:11   0:00 ps aux
root@155436c9ffef:/# ps aux | wc -l
60

I upgraded xwiki to 11.3 and it seems that issue with editing is gone. I’m checking for the other issues right now.