Problem with delete group page with 4000+ members

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with delete group page with 4000+ members

aleksey-s
Hi!

When I try to delete group page with 4000+ members then I see error below.
I resolve this error with attached files by disable version control, but I don't know how resolve it in this case.

 -Xms512m -Xmx6144m -XX:MaxPermSize=256m

I tried increase Xmx to 14000m, but not helped



    Error number 0 in 11: Uncaught exception
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:435)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:180)
        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:648)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:798)
Caused by: java.lang.OutOfMemoryError: Java heap space
        at java.lang.StringBuffer.ensureCapacityImpl(StringBuffer.java:338)
        at java.lang.StringBuffer.append(StringBuffer.java:204)
        at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:719)
        at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
        at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:673)
        at org.suigeneris.jrcs.util.ToString.toString(ToString.java:42)
        at com.xpn.xwiki.doc.XWikiDocumentArchive.getArchive(XWikiDocumentArchive.java:200)
        at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:4512)
        at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:4540)
        at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:4280)
        at com.xpn.xwiki.doc.XWikiDocument.toFullXML(XWikiDocument.java:4192)
        at com.xpn.xwiki.doc.XWikiDeletedDocument.setDocument(XWikiDeletedDocument.java:193)
        at com.xpn.xwiki.doc.XWikiDeletedDocument.<init>(XWikiDeletedDocument.java:89)
        at com.xpn.xwiki.store.XWikiHibernateRecycleBinStore.saveToRecycleBin(XWikiHibernateRecycleBinStore.java:122)
        at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3580)
        at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3558)
        at com.xpn.xwiki.web.DeleteAction.action(DeleteAction.java:97)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:407)
        ... 49 more
Reply | Threaded
Open this post in threaded view
|

Re: Problem with delete group page with 4000+ members

Thomas Mortagne
Administrator
When deleting a document XWiki serialize it all in XML before storing
it in the trash and looks like it does not have enough memory to
generate this XML.

Are you sure your memory setup is applied ? 14000m looks a lot and
should have no issue to serialize even such a document.

Maybe you have something else taking a lot of memory and this group
serialization make it visible. One thing you could do is to take a
memory dump when getting the OutOfMemoryError to see where the memory
goes exactly. You can use -XX:+HeapDumpOnOutOfMemoryError to generate
the dump automatically when getting a OutOfMemoryError.

On Thu, Apr 21, 2016 at 8:26 AM, aleksey-s <[hidden email]> wrote:

> Hi!
>
> When I try to delete group page with 4000+ members then I see error below.
> I resolve this error with attached files by disable version control, but I
> don't know how resolve it in this case.
>
>  -Xms512m -Xmx6144m -XX:MaxPermSize=256m
>
> I tried increase Xmx to 14000m, but not helped
>
>
>
>     Error number 0 in 11: Uncaught exception
> com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
>         at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:435)
>         at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:180)
>         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:648)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
>         at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
>         at
> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
>         at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
>         at
> org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
>         at
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
>         at
> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
>         at
> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
>         at
> org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>         at java.lang.Thread.run(Thread.java:798)
> Caused by: java.lang.OutOfMemoryError: Java heap space
>         at java.lang.StringBuffer.ensureCapacityImpl(StringBuffer.java:338)
>         at java.lang.StringBuffer.append(StringBuffer.java:204)
>         at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:719)
>         at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
>         at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:673)
>         at org.suigeneris.jrcs.util.ToString.toString(ToString.java:42)
>         at
> com.xpn.xwiki.doc.XWikiDocumentArchive.getArchive(XWikiDocumentArchive.java:200)
>         at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:4512)
>         at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:4540)
>         at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:4280)
>         at com.xpn.xwiki.doc.XWikiDocument.toFullXML(XWikiDocument.java:4192)
>         at
> com.xpn.xwiki.doc.XWikiDeletedDocument.setDocument(XWikiDeletedDocument.java:193)
>         at
> com.xpn.xwiki.doc.XWikiDeletedDocument.<init>(XWikiDeletedDocument.java:89)
>         at
> com.xpn.xwiki.store.XWikiHibernateRecycleBinStore.saveToRecycleBin(XWikiHibernateRecycleBinStore.java:122)
>         at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3580)
>         at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3558)
>         at com.xpn.xwiki.web.DeleteAction.action(DeleteAction.java:97)
>         at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:407)
>         ... 49 more
>
>
>
> --
> View this message in context: http://xwiki.475771.n2.nabble.com/Problem-with-delete-group-page-with-4000-members-tp7599115.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users



--
Thomas Mortagne
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with delete group page with 4000+ members

aleksey-s
Hi,

Thank you. I temporarily use setting xwiki.recyclebin=0 to delete big groups (I think it help for big pages also).