Hi, > On 19 Jul 2016, at 00:47, Jared Simms <[email protected]> wrote: > > Hello, > > I've been trying to get xwiki running for almost a week and keep running into > memory errors. I was finally able to get through the Distribution Wizard > without having to restart Jetty due to out of memory errors, but am still > getting the errors when I try to do almost anything in the wiki. The > standalone installer works great and is much more responsive but I would like > to use Postgres for the database.
The standalone installer just uses “-Xmx1024m” starting with XWiki 8.1 (ie using Java8). Now if you check xwiki.org you’ll get memory recommendations: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory FTR using MacPermSize will have no effect on java 8… Thanks -Vincent > Any suggestions for what I can do to get xwiki to stop the out of memory > errors? > > Thanks, > Jared > > Here's my current config: > > OS: Ubuntu 16.04.1 LTS fully patched > > Java: > - openjdk version "1.8.0_91" > - OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-0ubuntu4~16.04.1-b14) > - OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode) > > Jetty: 9.2.14.v20151106 > - JAVA_OPTIONS="-server -Xms800m -Xmx2048m -XX:MaxPermSize=222m > -Dfile.encoding=utf-8 -Djava.awt.headless=true -XX:+UseParallelGC > -XX:MaxGCPauseMillis=100" > > Database: PostgreSQL 9.5.3 > > JDBC Driver: postgresql-9.4.1208.jar > > > > Here are the most recent errors that occurred when I tried to edit my first > page: > > 2016-07-18 18:26:29,335 > [http://nhhqwiki01:8080/xwiki/bin/view/Infrastructure/] ERROR c.x.x.XWiki > - Error while evaluating velocity template [exception.vm] > org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id > [/templates/exception.vm] > at > org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:227) > at > org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198) > at > com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:726) > at > com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:627) > at > com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:605) > at > com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:571) > at > com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:557) > at > com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65) > at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1896) > at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:180) > at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:88) > at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:507) > at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:193) > 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.doGet(ActionServlet.java:449) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) > at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812) > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669) > at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) > at > org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) > at > org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) > at > org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) > at > org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) > at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137) > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) > at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) > at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) > at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) > at > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) > at > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) > at org.eclipse.jetty.server.Server.handle(Server.java:499) > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) > at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) > at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.apache.velocity.exception.MethodInvocationException: > Invocation of method 'parseTemplate' in class com.xpn.xwiki.api.XWiki threw > exception java.lang.OutOfMemoryError: GC overhead limit exceeded at > /templates/macros.vm[line 20, column 8] > at > org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:261) > at > org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187) > at > org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) > at > org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) > at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) > at > org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) > at > org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) > at > org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) > at > org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) > at > org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) > at > org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:259) > at > org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222) > ... 51 common frames omitted > Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded > 2016-07-18 18:26:30,809 > [http://nhhqwiki01:8080/xwiki/bin/view/Infrastructure/] ERROR > o.i.ObservationContextListener - Can't find any begin event corresponding to > [class org.xwiki.bridge.event.ActionExecutedEvent (view)] > 2016-07-18 > 18:26:30.810:WARN:oejs.ServletHandler:http://nhhqwiki01:8080/xwiki/bin/view/Infrastructure/: > Error for /xwiki/bin/view/Infrastructure/ > java.lang.OutOfMemoryError: GC overhead limit exceeded _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
