Re: Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

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

Re: Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

Antonio Goncalves
Hi all,
 
I'm trying to upgrade XWiki from 1.0 to 1.2. The problem comes when I want to import my .xar file (6Mb) and get a Java Heap Space Out Of Memory Exception.
 
I've checked your admin page <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize" target="_blank">http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize  and it looks like for my problem (file < 10Mb), only MySQL should be changed. So I've changed the max_allowed_packet parameter but the problem still occurs. I don't have anything in Tomcat or MySQL logs, which is a bit strange. The only trace I get is the one bellow. It looks like Lucene breaks because of the file upload not working. Any idea ? How could I get more details in the log ?
 
Thanks,
 
Antonio
 
[<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost:8080/xwiki/bin/upload/XWiki/Import" target="_blank">http://localhost:8080/xwiki/bin/upload/XWiki/Import] [http-8080-Processor25] ERROR lucene.IndexUpdater             - invalid parameters given to add: XWiki.Import, null,
{grouplist={xwiki:XWiki.XWikiGuest=[], xwiki:xwiki:XWiki.XWikiGuest=[]}, fileuploadlist=[name=null, StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_00000000.tmp, size=77bytes, isFormField=true
, FieldName=xredirect, name=null, StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_00000001.tmp,
size=20bytes, isFormField=true, FieldName=filename, name=Backup2008-01-20.xar , StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp\upl
oad_662feb76_117990b87e0__8000_00000002.tmp, size=6639095bytes, isFormField=false, FieldName=filepath], msg=com.xpn.xwiki.web.XWikiMessageTo
[hidden email], [hidden email], baseskin=albatross, tdoc=XWiki.Import, ajax=false, locale=fr, doc= XWiki.Import, mainxwiki=x
wiki, skin=albatross, message=javaheapspace, [hidden email], vcontext=org.apache.v
[hidden email]}
 

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

Re: Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

vmassol
Administrator
Hi Antonio,

On Jan 21, 2008, at 11:56 AM, Antonio Goncalves wrote:

Hi all,
 
I'm trying to upgrade XWiki from 1.0 to 1.2. The problem comes when I want to import my .xar file (6Mb) and get a Java Heap Space Out Of Memory Exception.
 
I've checked your admin page <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize" target="_blank">http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize  and it looks like for my problem (file < 10Mb), only MySQL should be changed. So I've changed the max_allowed_packet parameter but the problem still occurs. I don't have anything in Tomcat or MySQL logs, which is a bit strange. The only trace I get is the one bellow. It looks like Lucene breaks because of the file upload not working. Any idea ? How could I get more details in the log ?

There are 2 places where to make changes when you want to import a large XAR:
1) the mysql config as you said,
2) the XWikiPreferences object. Before 1.2 it had a max of 1MB if I recall correctly. In 1.2 we've upgraded it to 30MB I believe. However if you're using your old XWikiPreferences object then you'll have th max_upload_size set to the old value.


Now regarding lucene I don't understand why this the import has anything to do with lucene but there's probably something I don't know here...

Try changing the max file upload parameter in your xwikipreferences and try the upload again.

-Vincent

 
Thanks,
 
Antonio
 
[<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost:8080/xwiki/bin/upload/XWiki/Import" target="_blank">http://localhost:8080/xwiki/bin/upload/XWiki/Import] [http-8080-Processor25] ERROR lucene.IndexUpdater             - invalid parameters given to add: XWiki.Import, null,
{grouplist={xwiki:XWiki.XWikiGuest=[], xwiki:xwiki:XWiki.XWikiGuest=[]}, fileuploadlist=[name=null, StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_00000000.tmp, size=77bytes, isFormField=true
, FieldName=xredirect, name=null, StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_00000001.tmp,
size=20bytes, isFormField=true, FieldName=filename, name=Backup2008-01-20.xar , StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp\upl
oad_662feb76_117990b87e0__8000_00000002.tmp, size=6639095bytes, isFormField=false, FieldName=filepath], msg=com.xpn.xwiki.web.XWikiMessageTo
[hidden email], [hidden email], baseskin=albatross, tdoc=XWiki.Import, ajax=false, locale=fr, doc= XWiki.Import, mainxwiki=x
wiki, skin=albatross, message=javaheapspace, [hidden email], vcontext=org.apache.v
[hidden email]}
 

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

Re: Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

Antonio Goncalves
Hi everybody,
 
I'm bringing this issue back but it still doesn't work. This is what I'm doing :
 
I'm starting everything from scratch : new database completly empty and a fresh XWiki 1.2.2.7518 on a fresh Tomcat 5.5.26 and a 5.0.41 MySQL (with a 5.1.5 driver). Just after installing XWiki, I try to import my 6Mb xar file that I've exported from a XWiki 1.0. I select my file, click on Upload and I end up with a "Java Heap Space Out Of Memory Exception" without any stack trace. Notice that it breaks even before showing the page allowing me to select the file.
 
Here is how I've checked that MySQL could handle 6Mb : SHOW SESSION VARIABLES like max_allowed_packet';  and  SHOW GLOBAL VARIABLES like 'max_allowed_packet';  Both results are 16Mb (max_allowed_packet = 16776192). I don't know how to get the value max_upload_size from XWiki.Preferences but following what Vincent said and http://jira.xwiki.org/jira/browse/XE-145  it should be set to 32Mb. In terms of size (MySQL and XWiki) it looks like it can handle 6Mb.
 
I have several archives. So I've tried with a 2.2Mb xar file. It also breaks but the behaviour is different. After clicking on upload, XWiki shows me the page allowing me to choose from a file (this page doesn't even appear with the 6Mb file). But then it breaks with a more explicit stack trace (as follow).
 
Any idea ?
Antonio
Error number 0 in 11: Uncaught exception
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:164)
	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)


Wrapped Exception:

java.lang.OutOfMemoryError: Java heap space
	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)
	at java.lang.StringBuffer.append(StringBuffer.java:225)
	at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:720)
	at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
	at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:686)
	at org.suigeneris.jrcs.rcs.Archive.toByteArray(Archive.java:723)
	at com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:79)
	at com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:68)
	at com.xpn.xwiki.doc.XWikiAttachment.toXML(XWikiAttachment.java:309)
	at com.xpn.xwiki.doc.XWikiDocument.toXMLDocument(XWikiDocument.java:2191)
	at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:2086)
	at com.xpn.xwiki.doc.XWikiDocument.toFullXML(XWikiDocument.java:2055)
	at com.xpn.xwiki.doc.XWikiDeletedDocument.setDocument(XWikiDeletedDocument.java:182)
	at com.xpn.xwiki.doc.XWikiDeletedDocument.(XWikiDeletedDocument.java:85)
	at com.xpn.xwiki.store.XWikiHibernateRecycleBinStore.saveToRecycleBin(XWikiHibernateRecycleBinStore.java:54)
	at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3262)
	at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3254)
	at com.xpn.xwiki.plugin.packaging.Package.installDocument(Package.java:560)
	at com.xpn.xwiki.plugin.packaging.Package.install(Package.java:525)
	at com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:197)
	at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:89)
	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
 


 
2008/1/21, Vincent Massol <[hidden email]>:
Hi Antonio,

On Jan 21, 2008, at 11:56 AM, Antonio Goncalves wrote:

Hi all,
 
I'm trying to upgrade XWiki from 1.0 to 1.2. The problem comes when I want to import my .xar file (6Mb) and get a Java Heap Space Out Of Memory Exception.
 
I've checked your admin page <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize" target="_blank">http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize  and it looks like for my problem (file < 10Mb), only MySQL should be changed. So I've changed the max_allowed_packet parameter but the problem still occurs. I don't have anything in Tomcat or MySQL logs, which is a bit strange. The only trace I get is the one bellow. It looks like Lucene breaks because of the file upload not working. Any idea ? How could I get more details in the log ?

 
There are 2 places where to make changes when you want to import a large XAR:
1) the mysql config as you said,
2) the XWikiPreferences object. Before 1.2 it had a max of 1MB if I recall correctly. In 1.2 we've upgraded it to 30MB I believe. However if you're using your old XWikiPreferences object then you'll have th max_upload_size set to the old value.

 
See <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://jira.xwiki.org/jira/browse/XE-145" target="_blank">http://jira.xwiki.org/jira/browse/XE-145

 
Now regarding lucene I don't understand why this the import has anything to do with lucene but there's probably something I don't know here...

 
Try changing the max file upload parameter in your xwikipreferences and try the upload again.

 
-Vincent

 
Thanks,
 
Antonio
 
[<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost:8080/xwiki/bin/upload/XWiki/Import" target="_blank">http://localhost:8080/xwiki/bin/upload/XWiki/Import] [http-8080-Processor25] ERROR lucene.IndexUpdater             - invalid parameters given to add: XWiki.Import, null,
{grouplist={xwiki:XWiki.XWikiGuest=[], xwiki:xwiki:XWiki.XWikiGuest=[]}, fileuploadlist=[name=null, StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_00000000.tmp, size=77bytes, isFormField=true
, FieldName=xredirect, name=null, StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_00000001.tmp,
size=20bytes, isFormField=true, FieldName=filename, name=Backup2008-01-20.xar , StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp\upl
oad_662feb76_117990b87e0__8000_00000002.tmp, size=6639095bytes, isFormField=false, FieldName=filepath], msg=com.xpn.xwiki.web.XWikiMessageTo
[hidden email], [hidden email], baseskin=albatross, tdoc=XWiki.Import, ajax=false, locale=fr, doc= XWiki.Import, mainxwiki=x
wiki, skin=albatross, message=javaheapspace, [hidden email], vcontext=org.apache.v
[hidden email]}
 

_______________________________________________
users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.xwiki.org/mailman/listinfo/users" target="_blank">http://lists.xwiki.org/mailman/listinfo/users




--
--
Antonio Goncalves ([hidden email])
Software architect

Paris JUG leader : www.parisjug.org
Web site : www.antoniogoncalves.org
Blog: jroller.com/agoncal
LinkedIn: www.linkedin.com/in/agoncal
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

Antonio Goncalves
Ok, I've found the problem. Nothing to do with XWiki or MySQL, the heap of Tomcat was too low. I've increased the -Xmx and it works fine.
 
Antonio 

 
2008/2/16, Antonio Goncalves <[hidden email]>:
Hi everybody,
 
I'm bringing this issue back but it still doesn't work. This is what I'm doing :
 
I'm starting everything from scratch : new database completly empty and a fresh XWiki 1.2.2.7518 on a fresh Tomcat 5.5.26 and a 5.0.41 MySQL (with a 5.1.5 driver). Just after installing XWiki, I try to import my 6Mb xar file that I've exported from a XWiki 1.0. I select my file, click on Upload and I end up with a "Java Heap Space Out Of Memory Exception" without any stack trace. Notice that it breaks even before showing the page allowing me to select the file.
 
Here is how I've checked that MySQL could handle 6Mb : SHOW SESSION VARIABLES like max_allowed_packet';  and  SHOW GLOBAL VARIABLES like 'max_allowed_packet';  Both results are 16Mb (max_allowed_packet = 16776192). I don't know how to get the value max_upload_size from XWiki.Preferences but following what Vincent said and <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://jira.xwiki.org/jira/browse/XE-145" target="_blank">http://jira.xwiki.org/jira/browse/XE-145  it should be set to 32Mb. In terms of size (MySQL and XWiki) it looks like it can handle 6Mb.
 
I have several archives. So I've tried with a 2.2Mb xar file. It also breaks but the behaviour is different. After clicking on upload, XWiki shows me the page allowing me to choose from a file (this page doesn't even appear with the 6Mb file). But then it breaks with a more explicit stack trace (as follow).
 
Any idea ?
Antonio
Error number 0 in 11: Uncaught exception
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:164)
	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)


Wrapped Exception:

java.lang.OutOfMemoryError: Java heap space
	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)
	at java.lang.StringBuffer.append(StringBuffer.java:225)
	at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:720)
	at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
	at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:686)
	at org.suigeneris.jrcs.rcs.Archive.toByteArray(Archive.java:723)
	at com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:79)
	at com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:68)
	at com.xpn.xwiki.doc.XWikiAttachment.toXML(XWikiAttachment.java:309)
	at com.xpn.xwiki.doc.XWikiDocument.toXMLDocument(XWikiDocument.java:2191)
	at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:2086)
	at com.xpn.xwiki.doc.XWikiDocument.toFullXML(XWikiDocument.java:2055)
	at com.xpn.xwiki.doc.XWikiDeletedDocument.setDocument(XWikiDeletedDocument.java:182)
	at com.xpn.xwiki.doc.XWikiDeletedDocument.(XWikiDeletedDocument.java:85)
	at com.xpn.xwiki.store.XWikiHibernateRecycleBinStore.saveToRecycleBin(XWikiHibernateRecycleBinStore.java:54)
	at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3262)
	at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3254)
	at com.xpn.xwiki.plugin.packaging.Package.installDocument(Package.java:560)
	at com.xpn.xwiki.plugin.packaging.Package.install(Package.java:525)
	at com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:197)
	at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:89)
	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
 


 
2008/1/21, Vincent Massol <[hidden email]>:
Hi Antonio,

On Jan 21, 2008, at 11:56 AM, Antonio Goncalves wrote:

Hi all,
 
I'm trying to upgrade XWiki from 1.0 to 1.2. The problem comes when I want to import my .xar file (6Mb) and get a Java Heap Space Out Of Memory Exception.
 
I've checked your admin page <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize" target="_blank">http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize  and it looks like for my problem (file < 10Mb), only MySQL should be changed. So I've changed the max_allowed_packet parameter but the problem still occurs. I don't have anything in Tomcat or MySQL logs, which is a bit strange. The only trace I get is the one bellow. It looks like Lucene breaks because of the file upload not working. Any idea ? How could I get more details in the log ?

 
There are 2 places where to make changes when you want to import a large XAR:
1) the mysql config as you said,
2) the XWikiPreferences object. Before 1.2 it had a max of 1MB if I recall correctly. In 1.2 we've upgraded it to 30MB I believe. However if you're using your old XWikiPreferences object then you'll have th max_upload_size set to the old value.

 
See <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://jira.xwiki.org/jira/browse/XE-145" target="_blank">http://jira.xwiki.org/jira/browse/XE-145

 
Now regarding lucene I don't understand why this the import has anything to do with lucene but there's probably something I don't know here...

 
Try changing the max file upload parameter in your xwikipreferences and try the upload again.

 
-Vincent

 
Thanks,
 
Antonio
 
[<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost:8080/xwiki/bin/upload/XWiki/Import" target="_blank">http://localhost:8080/xwiki/bin/upload/XWiki/Import] [http-8080-Processor25] ERROR lucene.IndexUpdater             - invalid parameters given to add: XWiki.Import, null,
{grouplist={xwiki:XWiki.XWikiGuest=[], xwiki:xwiki:XWiki.XWikiGuest=[]}, fileuploadlist=[name=null, StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_00000000.tmp, size=77bytes, isFormField=true
, FieldName=xredirect, name=null, StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_00000001.tmp,
size=20bytes, isFormField=true, FieldName=filename, name=Backup2008-01-20.xar , StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp\upl
oad_662feb76_117990b87e0__8000_00000002.tmp, size=6639095bytes, isFormField=false, FieldName=filepath], msg=com.xpn.xwiki.web.XWikiMessageTo
[hidden email], [hidden email], baseskin=albatross, tdoc=XWiki.Import, ajax=false, locale=fr, doc= XWiki.Import, mainxwiki=x
wiki, skin=albatross, message=javaheapspace, [hidden email], vcontext=org.apache.v
[hidden email]}
 

_______________________________________________
users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.xwiki.org/mailman/listinfo/users" target="_blank">http://lists.xwiki.org/mailman/listinfo/users




--
--
Antonio Goncalves ([hidden email])
Software architect

Paris JUG leader : <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.parisjug.org/" target="_blank">www.parisjug.org
Web site : <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.antoniogoncalves.org/" target="_blank">www.antoniogoncalves.org
Blog: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://jroller.com/agoncal" target="_blank">jroller.com/agoncal
LinkedIn: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.linkedin.com/in/agoncal" target="_blank">www.linkedin.com/in/agoncal



--
--
Antonio Goncalves ([hidden email])
Software architect

Paris JUG leader : www.parisjug.org
Web site : www.antoniogoncalves.org
Blog: jroller.com/agoncal
LinkedIn: www.linkedin.com/in/agoncal
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

Nishiii
This post has NOT been accepted by the mailing list yet.
Hi Antonio,

To increase the Heap memory did u just add an environment variable CATALINE_HOME or did u edit the catalina.bat file in the tomcat bin folder

Please let me know because i am getting the same error but when trying to attach a file.

2008-07-21 13:57:25,890 [http://localhost:8080/xwiki/bin/upload/My+Space/WebHome
] [http8080-Processor25] ERROR lucene.IndexUpdater             - invalid paramet
ers given to add: My Space.WebHome, null, {util=com.xpn.xwiki.util.Util@19ca340,
 vcontext=org.apache.velocity.VelocityContext@a1c3ae, links=[Main.WebHome, Main.
AllDocs, Main.Dashboard, Blog.WebHome, Main.EventCalendar, Photos.WebHome, Sandb
ox.WebHome, Main.Tags, XWiki.WebHome], grouplist={xwiki:XWiki.Admin=[xwiki:XWiki
.XWikiAdminGroup, xwiki:XWiki.XWikiAllGroup], xwiki:xwiki:XWiki.Admin=[xwiki:XWi
ki.XWikiAdminGroup, xwiki:XWiki.XWikiAllGroup]}, fileuploadplugin=com.xpn.xwiki.
plugin.fileupload.FileUploadPlugin@35d9f6, com.xpn.xwiki.plugin.skinx.CssSkinExt
ensionPlugin=[], msg=com.xpn.xwiki.web.XWikiMessageTool@178a69c, tdoc=My Space.W
ebHome, message=javaheapspace, org.xwiki.component.manager.ComponentManager=org.
xwiki.plexus.manager.PlexusComponentManager@65f515, ajax=false, mainxwiki=xwiki,
 skin=XWiki.DefaultSkin, fileuploadlist=[name=null, StoreLocation=C:\TOMCAT_HOME
\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_00000008.tmp, siz
e=64bytes, isFormField=true, FieldName=xredirect, name=null, StoreLocation=C:\TO
MCAT_HOME\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_00000009
.tmp, size=15bytes, isFormField=true, FieldName=filename, name=C:\Documents and
Settings\vashwath\Desktop\Prasad\Sheera Photo.JPG, StoreLocation=C:\TOMCAT_HOME\
jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_00000010.tmp, size
=2821051bytes, isFormField=false, FieldName=filepath, name=null, StoreLocation=C
:\TOMCAT_HOME\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_0000
0011.tmp, size=16bytes, isFormField=true, FieldName=attachment], locale=en, base
skin=toucan, com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin=[], doc=My Space.W
ebHome}


Thanks,
Vinutha
Antonio Goncalves wrote
Ok, I've found the problem. Nothing to do with XWiki or MySQL, the heap of
Tomcat was too low. I've increased the -Xmx and it works fine.

Antonio


2008/2/16, Antonio Goncalves <antonio.mailing@gmail.com>:
>
> Hi everybody,
>
> I'm bringing this issue back but it still doesn't work. This is what I'm
> doing :
>
> I'm starting everything from scratch : new database completly empty and a
> fresh XWiki 1.2.2.7518 on a fresh Tomcat 5.5.26 and a 5.0.41 MySQL (with a
> 5.1.5 driver). Just after installing XWiki, I try to import my 6Mb xar
> file that I've exported from a XWiki 1.0. I select my file, click on
> Upload and I end up with a "Java Heap Space Out Of Memory Exception" without
> any stack trace. Notice that it breaks even before showing the page allowing
> me to select the file.
>
> Here is how I've checked that MySQL could handle 6Mb : SHOW SESSION
> VARIABLES like max_allowed_packet';  and  SHOW GLOBAL VARIABLES like
> 'max_allowed_packet';  Both results are 16Mb (max_allowed_packet =
> 16776192). I don't know how to get the value max_upload_size from
> XWiki.Preferences but following what Vincent said and
> http://jira.xwiki.org/jira/browse/XE-145  it should be set to 32Mb. In
> terms of size (MySQL and XWiki) it looks like it can handle 6Mb.
>
> I have several archives. So I've tried with a 2.2Mb xar file. It also
> breaks but the behaviour is different. After clicking on upload, XWiki shows
> me the page allowing me to choose from a file (this page doesn't even appear
> with the 6Mb file). But then it breaks with a more explicit stack trace (as
> follow).
>
> Any idea ?
> Antonio
>
> Error number 0 in 11: Uncaught exception
> Wrapped Exception: Java heap spacecom.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
> Wrapped Exception: Java heap space
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:164)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
> at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
> at java.lang.Thread.run(Thread.java:595)
>
>
> Wrapped Exception:
> java.lang.OutOfMemoryError: Java heap space
> at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
> at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)
> at java.lang.StringBuffer.append(StringBuffer.java:225)
> at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:720)
> at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
> at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:686)
> at org.suigeneris.jrcs.rcs.Archive.toByteArray(Archive.java:723)
> at com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:79)
> at com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:68)
> at com.xpn.xwiki.doc.XWikiAttachment.toXML(XWikiAttachment.java:309)
> at com.xpn.xwiki.doc.XWikiDocument.toXMLDocument(XWikiDocument.java:2191)
> at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:2086)
> at com.xpn.xwiki.doc.XWikiDocument.toFullXML(XWikiDocument.java:2055)
> at com.xpn.xwiki.doc.XWikiDeletedDocument.setDocument(XWikiDeletedDocument.java:182)
> at com.xpn.xwiki.doc.XWikiDeletedDocument.(XWikiDeletedDocument.java:85)
> at com.xpn.xwiki.store.XWikiHibernateRecycleBinStore.saveToRecycleBin(XWikiHibernateRecycleBinStore.java:54)
> at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3262)
> at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3254)
> at com.xpn.xwiki.plugin.packaging.Package.installDocument(Package.java:560)
> at com.xpn.xwiki.plugin.packaging.Package.install(Package.java:525)
> at com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:197)
> at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:89)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
>
>
>
>
>
> 2008/1/21, Vincent Massol <vincent@massol.net>:
> >
> >  Hi Antonio,
> >  On Jan 21, 2008, at 11:56 AM, Antonio Goncalves wrote:
> >
> >  Hi all,
> >
> > I'm trying to upgrade XWiki from 1.0 to 1.2. The problem comes when I
> > want to import my .xar file (6Mb) and get a Java Heap Space Out Of Memory
> > Exception.
> >
> > I've checked your admin page http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize
> >  and it looks like for my problem (file < 10Mb), only MySQL should be
> > changed. So I've changed the max_allowed_packet parameter but the problem
> > still occurs. I don't have anything in Tomcat or MySQL logs, which is a bit
> > strange. The only trace I get is the one bellow. It looks like Lucene breaks
> > because of the file upload not working. Any idea ? How could I get more
> > details in the log ?
> >
> >
> >
> > There are 2 places where to make changes when you want to import a large
> > XAR:
> > 1) the mysql config as you said,
> > 2) the XWikiPreferences object. Before 1.2 it had a max of 1MB if I
> > recall correctly. In 1.2 we've upgraded it to 30MB I believe. However if
> > you're using your old XWikiPreferences object then you'll have th
> > max_upload_size set to the old value.
> >
> >
> > See http://jira.xwiki.org/jira/browse/XE-145
> >
> >
> > Now regarding lucene I don't understand why this the import has anything
> > to do with lucene but there's probably something I don't know here...
> >
> >
> > Try changing the max file upload parameter in your xwikipreferences and
> > try the upload again.
> >
> >
> > -Vincent
> >
> >
> > Thanks,
> >
> > Antonio
> >
> > [http://localhost:8080/xwiki/bin/upload/XWiki/Import]
> > [http-8080-Processor25] ERROR lucene.IndexUpdater             - invalid
> > parameters given to add: XWiki.Import, null,
> > {grouplist={xwiki:XWiki.XWikiGuest=[], xwiki:xwiki:XWiki.XWikiGuest=[]},
> > fileuploadlist=[name=null, StoreLocation=D:\Servers\Tomcat\apache-
> > tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_00000000.tmp,
> > size=77bytes, isFormField=true
> > , FieldName=xredirect, name=null,
> > StoreLocation=D:\Servers\Tomcat\apache-
> > tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_00000001.tmp,
> > size=20bytes, isFormField=true, FieldName=filename, name=
> > Backup2008-01-20.xar , StoreLocation=D:\Servers\Tomcat\apache-
> > tomcat-5.5.23\temp\upl
> > oad_662feb76_117990b87e0__8000_00000002.tmp, size=6639095bytes,
> > isFormField=false, FieldName=filepath], msg=
> > com.xpn.xwiki.web.XWikiMessageTo
> > ol@1171e30, util=com.xpn.xwiki.util.Util@bf1a4a, baseskin=albatross,
> > tdoc=XWiki.Import, ajax=false, locale=fr, doc= XWiki.Import, mainxwiki=x
> > wiki, skin=albatross, message=javaheapspace,
> > fileuploadplugin=com.xpn.xwiki.plugin.fileupload.FileUploadPlugin@571cc4,
> > vcontext=org.apache.v
> > elocity.VelocityContext@1219665}
> >
> >
> >
> > _______________________________________________
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> >
>
>
> --
> --
> Antonio Goncalves (antonio.goncalves@gmail.com)
> Software architect
>
> Paris JUG leader : www.parisjug.org
> Web site : www.antoniogoncalves.org
> Blog: jroller.com/agoncal
> LinkedIn: www.linkedin.com/in/agoncal




--
--
Antonio Goncalves (antonio.goncalves@gmail.com)
Software architect

Paris JUG leader : www.parisjug.org
Web site : www.antoniogoncalves.org
Blog: jroller.com/agoncal
LinkedIn: www.linkedin.com/in/agoncal

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

Nishiii
Hi Antonio

To increase the Heap memory did u just add an environment variable
CATALINE_HOME or did u edit the catalina.bat file in the tomcat bin folder

Please let me know because i am getting the same error but when trying to
attach a file.

2008-07-21 13:57:25,890
[http://localhost:8080/xwiki/bin/upload/My+Space/WebHome
] [http8080-Processor25] ERROR lucene.IndexUpdater             - invalid
paramet
ers given to add: My Space.WebHome, null,
{util=com.xpn.xwiki.util.Util@19ca340,
 vcontext=org.apache.velocity.VelocityContext@a1c3ae, links=[Main.WebHome,
Main.
AllDocs, Main.Dashboard, Blog.WebHome, Main.EventCalendar, Photos.WebHome,
Sandb
ox.WebHome, Main.Tags, XWiki.WebHome],
grouplist={xwiki:XWiki.Admin=[xwiki:XWiki
.XWikiAdminGroup, xwiki:XWiki.XWikiAllGroup],
xwiki:xwiki:XWiki.Admin=[xwiki:XWi
ki.XWikiAdminGroup, xwiki:XWiki.XWikiAllGroup]},
fileuploadplugin=com.xpn.xwiki.
plugin.fileupload.FileUploadPlugin@35d9f6,
com.xpn.xwiki.plugin.skinx.CssSkinExt
ensionPlugin=[], msg=com.xpn.xwiki.web.XWikiMessageTool@178a69c, tdoc=My
Space.W
ebHome, message=javaheapspace,
org.xwiki.component.manager.ComponentManager=org.
xwiki.plexus.manager.PlexusComponentManager@65f515, ajax=false,
mainxwiki=xwiki,
 skin=XWiki.DefaultSkin, fileuploadlist=[name=null,
StoreLocation=C:\TOMCAT_HOME
\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_00000008.tmp,
siz
e=64bytes, isFormField=true, FieldName=xredirect, name=null,
StoreLocation=C:\TO
MCAT_HOME\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_00000009
.tmp, size=15bytes, isFormField=true, FieldName=filename, name=C:\Documents
and
Settings\vashwath\Desktop\Prasad\Sheera Photo.JPG,
StoreLocation=C:\TOMCAT_HOME\
jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_00000010.tmp,
size
=2821051bytes, isFormField=false, FieldName=filepath, name=null,
StoreLocation=C
:\TOMCAT_HOME\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_0000
0011.tmp, size=16bytes, isFormField=true, FieldName=attachment], locale=en,
base
skin=toucan, com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin=[], doc=My
Space.W
ebHome}


Thanks,
Vinutha

<quote author="Nishiii">
Hi Antonio,

To increase the Heap memory did u just add an environment variable CATALINE_HOME or did u edit the catalina.bat file in the tomcat bin folder

Please let me know because i am getting the same error but when trying to attach a file.

2008-07-21 13:57:25,890 [http://localhost:8080/xwiki/bin/upload/My+Space/WebHome
] [http8080-Processor25] ERROR lucene.IndexUpdater             - invalid paramet
ers given to add: My Space.WebHome, null, {util=com.xpn.xwiki.util.Util@19ca340,
 vcontext=org.apache.velocity.VelocityContext@a1c3ae, links=[Main.WebHome, Main.
AllDocs, Main.Dashboard, Blog.WebHome, Main.EventCalendar, Photos.WebHome, Sandb
ox.WebHome, Main.Tags, XWiki.WebHome], grouplist={xwiki:XWiki.Admin=[xwiki:XWiki
.XWikiAdminGroup, xwiki:XWiki.XWikiAllGroup], xwiki:xwiki:XWiki.Admin=[xwiki:XWi
ki.XWikiAdminGroup, xwiki:XWiki.XWikiAllGroup]}, fileuploadplugin=com.xpn.xwiki.
plugin.fileupload.FileUploadPlugin@35d9f6, com.xpn.xwiki.plugin.skinx.CssSkinExt
ensionPlugin=[], msg=com.xpn.xwiki.web.XWikiMessageTool@178a69c, tdoc=My Space.W
ebHome, message=javaheapspace, org.xwiki.component.manager.ComponentManager=org.
xwiki.plexus.manager.PlexusComponentManager@65f515, ajax=false, mainxwiki=xwiki,
 skin=XWiki.DefaultSkin, fileuploadlist=[name=null, StoreLocation=C:\TOMCAT_HOME
\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_00000008.tmp, siz
e=64bytes, isFormField=true, FieldName=xredirect, name=null, StoreLocation=C:\TO
MCAT_HOME\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_00000009
.tmp, size=15bytes, isFormField=true, FieldName=filename, name=C:\Documents and
Settings\vashwath\Desktop\Prasad\Sheera Photo.JPG, StoreLocation=C:\TOMCAT_HOME\
jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_00000010.tmp, size
=2821051bytes, isFormField=false, FieldName=filepath, name=null, StoreLocation=C
:\TOMCAT_HOME\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_0000
0011.tmp, size=16bytes, isFormField=true, FieldName=attachment], locale=en, base
skin=toucan, com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin=[], doc=My Space.W
ebHome}


Thanks,
Vinutha

<quote author="Antonio Goncalves">
Ok, I've found the problem. Nothing to do with XWiki or MySQL, the heap of
Tomcat was too low. I've increased the -Xmx and it works fine.

Antonio

Reply | Threaded
Open this post in threaded view
|

Re: Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

walido
In reply to this post by Antonio Goncalves

HI,

I have almost the same problem i'm using HSQL as database, i have edited my start_xwiki.bat and now i have : set JAVA_OPTS=-Xmx1024m

but i still have this problem of : Java Heap Space Out Of Memory Exception !, actionally i want to upload a lot of files up there (1,03 Go) i don't know if it's possible
and i can't find max_upload_size in XWiki preferences

thanks for helping me i'm really stucked on this one



Reply | Threaded
Open this post in threaded view
|

Re: Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

Sergiu Dumitriu-2
On Fri, Oct 9, 2009 at 18:14, walido <[hidden email]> wrote:

>
>
> HI,
>
> I have almost the same problem i'm using HSQL as database, i have edited my
> start_xwiki.bat and now i have : set JAVA_OPTS=-Xmx1024m
>
> but i still have this problem of : Java Heap Space Out Of Memory Exception
> !, actionally i want to upload a lot of files up there (1,03 Go) i don't
> know if it's possible

You definitely can't do that. The default configuration for HSQL is to
use in-memory tables. All that data can't fit in the memory you've
configured. You'd have to switch to a different database.

> and i can't find max_upload_size in XWiki preferences
>
> thanks for helping me i'm really stucked on this one


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

Re: Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

walido

Hi,

aie,aie,..
that's a real bad news for me, because i was counting on that
but is there a solution to change the configuration of hsql, to put tables in files for example directly on disk not on memory or to extend the size of the memory allowed to him ( i can get a 4Go of RAM for my PC)
or if i have to switch to another database is there a solution to migrate my hsql database with its contents to the new database mysql.
thanks so much for helping me it's so important for the job
thank you
Reply | Threaded
Open this post in threaded view
|

xwiki Blog trouble

Vincent Gerris
In reply to this post by walido
Hi guys,

We are experiencing serious performance problems with the Blog
application.
We cloned it in version 2.1 and did a few minor mods.
We have under 1000 blog entires now in about 60 categories, some are
subcategories.
Loading the category management page takes about a minute.
I have seen no big database activity, there is mostly a load on the cpu
of the application server.

Does anyone know how to fix this?
For example when looking at the add a post page, the same tree is
displayed there, but loading is much faster.

I was trying to load the tree in a simple way and add the add category
functionality, but it rather a PITA.
We have multiple people using the Blog at the same time, does anyone
know a fix?

Kind regards,
Vincent Gerris
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users