2013-01-15 150 views
1

我已經安裝了Xwiki 4.4。 如果我訪問我的wiki上的一個頁面,CPU負載上升到100%。 一旦頁面加載完成,負載就會下降。xwiki需要100個CPU

我已經做了上描述的幾個步驟:http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances

問題出在哪裏?

這裏是HTOP的圖片: http://d60.img-up.net/xwiki_htop3fef.png

我的服務器被虛擬化ANS有2 GB RAM。

Tomcat的日誌:

Wrapped Exception: Java heap space 
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception 
Wrapped Exception: Java heap space 
     at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:254) [xwiki-platform-legacy-oldcore-4.4.jar:na] 
     at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) [xwiki-platform-legacy-oldcore-4.4.jar:na] 
     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) [struts-1.2.9.jar:1.2.9] 
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) [struts-1.2.9.jar:1.2.9] 
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts-1.2.9.jar:1.2.9] 
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) [struts-1.2.9.jar:1.2.9] 
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) [servlet-api-2.5.jar:na] 
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [servlet-api-2.5.jar:na] 
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.35.jar:6.0.35] 
     at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120) [xwiki-platform-legacy-oldcore-4.4.jar:na] 
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.35.jar:6.0.35] 
     at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) [xwiki-platform-wysiwyg-server-4.4.jar:na] 
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.35.jar:6.0.35] 
     at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) [xwiki-platform-webdav-server-4.4.jar:na] 
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.35.jar:6.0.35] 
     at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) [xwiki-platform-container-servlet-4.4.jar:na] 
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.35.jar:6.0.35] 
     at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) [xwiki-platform-container-servlet-4.4.jar:na] 
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) [catalina-6.0.35.jar:6.0.35] 
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) [tomcat-coyote-6.0.35.jar:6.0.35] 
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) [tomcat-coyote-6.0.35.jar:6.0.35] 
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) [tomcat-coyote-6.0.35.jar:6.0.35] 
     at java.lang.Thread.run(Thread.java:636) [na:1.6.0_18] 

的Tomcat(卡塔利娜日誌?)

INFO: Pausing Coyote HTTP/1.1 on http-8080 
Jan 15, 2013 1:18:08 PM org.apache.catalina.core.StandardService stop 
INFO: Stopping service Catalina 
Jan 15, 2013 1:18:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc 
SEVERE: The web application [/xwiki] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 
Jan 15, 2013 1:18:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:18:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [Job Manager daemon thread] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:18:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:18:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [Lucene Index Updater] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:18:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [DefaultQuartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak. 

Jan 15, 2013 1:18:09 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [[email protected]]) and a value of type [org.python.core.ThreadState] (value [[email protected]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:18:09 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [[email protected]]) and a value of type [org.codehaus.plexus.classworlds.realm.ClassRealm] (value [ClassRealm[plexus.core, parent: null]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:18:09 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@2db593c7]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:18:09 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [org.sonatype.guice.bean.inject.BeanInjector$1] (value [[email protected]]) and a value of type [boolean[]] (value [[[email protected]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:18:09 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@23febdd7]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:18:09 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [[email protected]]) and a value of type [org.infinispan.context.SingleKeyNonTxInvocationContext] (value [SingleKeyNonTxInvocationContext{flags=null}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:18:38 PM org.apache.catalina.startup.ClassLoaderFactory validateFile 
WARNING: Problem with directory [/usr/share/tomcat6/server/classes], exists: [false], isDirectory: [false], canRead: [false] 
Jan 15, 2013 1:18:38 PM org.apache.catalina.startup.ClassLoaderFactory validateFile 
WARNING: Problem with directory [/usr/share/tomcat6/server], exists: [false], isDirectory: [false], canRead: [false] 
Jan 15, 2013 1:18:38 PM org.apache.catalina.startup.ClassLoaderFactory validateFile 
WARNING: Problem with directory [/usr/share/tomcat6/shared/classes], exists: [false], isDirectory: [false], canRead: [false] 
Jan 15, 2013 1:18:38 PM org.apache.catalina.startup.ClassLoaderFactory validateFile 
WARNING: Problem with directory [/usr/share/tomcat6/shared], exists: [false], isDirectory: [false], canRead: [false] 
Jan 15, 2013 1:18:41 PM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-8080 
Jan 15, 2013 1:18:41 PM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 2737 ms 
Jan 15, 2013 1:18:41 PM org.apache.catalina.core.StandardService start 
INFO: Starting service Catalina 
Jan 15, 2013 1:18:41 PM org.apache.catalina.core.StandardEngine start 
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35 
Jan 15, 2013 1:18:41 PM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deploying configuration descriptor ROOT.xml 
Jan 15, 2013 1:18:42 PM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deploying configuration descriptor xwiki.xml 
Jan 15, 2013 1:19:07 PM org.apache.coyote.http11.Http11Protocol start 
INFO: Starting Coyote HTTP/1.1 on http-8080 
Jan 15, 2013 1:19:07 PM org.apache.catalina.startup.Catalina start 
INFO: Server startup in 25366 ms 
Jan 15, 2013 1:26:57 PM org.apache.catalina.startup.HostConfig checkResources 
INFO: Reloading context [/xwiki] 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc 
SEVERE: The web application [/xwiki] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [Job Manager daemon thread] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [Lucene Index Updater] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [DefaultQuartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [DefaultQuartzScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [DefaultQuartzScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [DefaultQuartzScheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [DefaultQuartzScheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [DefaultQuartzScheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [DefaultQuartzScheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [DefaultQuartzScheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [DefaultQuartzScheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [DefaultQuartzScheduler_Worker-10] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [Statistics storing daemon] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [DefaultQuartzScheduler_QuartzSchedulerThread] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [[email protected]]) and a value of type [org.codehaus.plexus.classworlds.realm.ClassRealm] (value [ClassRealm[plexus.core, parent: null]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@3abe51cd]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [org.sonatype.guice.bean.inject.BeanInjector$1] (value [[email protected]]) and a value of type [boolean[]] (value [[[email protected]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [[email protected]]) and a value of type [org.infinispan.context.SingleKeyNonTxInvocationContext] (value [SingleKeyNonTxInvocationContext{flags=null}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [[email protected]]) and a value of type [org.infinispan.context.SingleKeyNonTxInvocationContext] (value [SingleKeyNonTxInvocationContext{flags=null}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [[email protected]]) and a value of type [org.infinispan.context.SingleKeyNonTxInvocationContext] (value [SingleKeyNonTxInvocationContext{flags=null}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [com.xpn.xwiki.store.migration.AbstractDataMigrationManager.ThreadLock] (value [com.xp[email protected]64827e06]) and a value of type [java.lang.Integer] (value [0]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/xwiki] created a ThreadLocal with key of type [com.xpn.xwiki.store.migration.AbstractDataMigrationManager.ThreadLock] (value [com.xp[email protected]64827e06]) and a value of type [java.lang.Integer] (value [0]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Jan 15, 2013 1:26:59 PM org.apache.coyote.http11.Http11Protocol pause 
INFO: Pausing Coyote HTTP/1.1 on http-8080 
Jan 15, 2013 1:27:00 PM org.apache.catalina.core.StandardService stop 
INFO: Stopping service Catalina 
Jan 15, 2013 1:27:12 PM org.apache.catalina.core.StandardContext start 
SEVERE: Error listenerStart 
Jan 15, 2013 1:27:12 PM org.apache.catalina.core.StandardContext start 
SEVERE: Context [/xwiki] startup failed due to previous errors 
Jan 15, 2013 1:27:12 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/xwiki] appears to have started a thread named [Job Manager daemon thread] but has failed to stop it. This is very likely to create a memory leak. 
Jan 15, 2013 1:27:16 PM org.apache.coyote.http11.Http11Protocol destroy 
INFO: Stopping Coyote HTTP/1.1 on http-8080 
Jan 15, 2013 1:27:17 PM org.apache.catalina.startup.ClassLoaderFactory validateFile 
WARNING: Problem with directory [/usr/share/tomcat6/server/classes], exists: [false], isDirectory: [false], canRead: [false] 
Jan 15, 2013 1:27:17 PM org.apache.catalina.startup.ClassLoaderFactory validateFile 
WARNING: Problem with directory [/usr/share/tomcat6/server], exists: [false], isDirectory: [false], canRead: [false] 
Jan 15, 2013 1:27:17 PM org.apache.catalina.startup.ClassLoaderFactory validateFile 
WARNING: Problem with directory [/usr/share/tomcat6/shared/classes], exists: [false], isDirectory: [false], canRead: [false] 
Jan 15, 2013 1:27:17 PM org.apache.catalina.startup.ClassLoaderFactory validateFile 
WARNING: Problem with directory [/usr/share/tomcat6/shared], exists: [false], isDirectory: [false], canRead: [false] 
Jan 15, 2013 1:27:19 PM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-8080 
Jan 15, 2013 1:27:19 PM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 1319 ms 
Jan 15, 2013 1:27:19 PM org.apache.catalina.core.StandardService start 
INFO: Starting service Catalina 
Jan 15, 2013 1:27:19 PM org.apache.catalina.core.StandardEngine start 
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35 
Jan 15, 2013 1:27:19 PM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deploying configuration descriptor ROOT.xml 
Jan 15, 2013 1:27:19 PM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deploying configuration descriptor xwiki.xml 
Jan 15, 2013 1:27:38 PM org.apache.coyote.http11.Http11Protocol start 
INFO: Starting Coyote HTTP/1.1 on http-8080 
Jan 15, 2013 1:27:38 PM org.apache.catalina.startup.Catalina start 
INFO: Server startup in 18762 ms 
Jan 15, 2013 1:42:34 PM org.apache.tomcat.util.http.Parameters processParameters 
INFO: Invalid chunk starting at byte [0] and ending at byte [0] with a value of [null] ignored 
+0

你應該發佈一些更多的信息,比如你的websever日誌。 – Atropo

+0

我已編輯它;) – Vince

回答

1

它看起來像你離開的Tomcat使用默認的內存設置。 XWiki相當耗費資源,因此至少需要512M的堆空間和128M的PermGen空間以獲得良好的穩定性,這是提高性能的兩倍。

堆棧跟蹤本身表明這種情況正在發生:

包裝異常:Java堆空間

的JVM佔用大量的CPU,因爲它不斷地嘗試通過運行,以釋放更多的內存垃圾收集器。

有關更多詳細信息,請參閱XWiki's Tomcat Installation Guide以及如何解決該問題。

+0

啊好吧。我在'/etc/tomcatX/tomcatX.conf或/etc/conf.d/tomcatX.conf'找不到tomcat的配置文件 我編輯了'/ var/lib/dpkg/info/tomcat6.config' – Vince

+0

我的配置文件: 'JAVA_OPTS =「 - Djava.awt.headless = true -Xmx1024m」' 但是CPU負載仍然在100% – Vince

+0

我的維基正在加載更快一點,但負載仍然達到90%該網站正在加載。 – Vince