[xwiki-users] Max Upload Size questions
Hello everyone, I was testing the import/export tool from one wiki to another (I'm actually trying to export from an online xwiki to a testing instance locally in my machine), and the resulting file from the export process turned out to have around 255MB. I have the xwiki enterprise 1.7.1 installed on my machine (including a Jetty container and an HSQLDB database all set up). When I try to "upload" the exported file, I get an error message saying that the max upload size is 10MB. I already changed the upload_maxsize property in xwiki.preferences to 300MB (the information in the field was written in Bytes, equivalent to 300MB), but yet even so, I keep getting the same error message. I think this might be a HSQLDB handicap. Am I correct? In any case, how can I solve this issue so I can proceed with this test?! Thanks a lot ! Roney
Hi I'm not sure why you get this error but I do know (since I tried the same with a 90MB import) that it is pointless trying this with the basic xwiki setup. Another problem you'll have is the bug with uploading attachments and doing import is equivalent to adding attachment. So first of all get Mysql and glassfish or tomcat. Install xwiki 1.8. Make sure you have plenty of memory for JVM (I found 1.6 to be the maximum on windows machine). Reduce your import file (export without attachments from your live site). Then try to import. Then again and again etc.. Until one day it all works. Ajdin -----Original Message----- From: users-bounces@xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of CASTRO roney Sent: 13 February 2009 13:16 To: users@xwiki.org Subject: [xwiki-users] Max Upload Size questions Hello everyone, I was testing the import/export tool from one wiki to another (I'm actually trying to export from an online xwiki to a testing instance locally in my machine), and the resulting file from the export process turned out to have around 255MB. I have the xwiki enterprise 1.7.1 installed on my machine (including a Jetty container and an HSQLDB database all set up). When I try to "upload" the exported file, I get an error message saying that the max upload size is 10MB. I already changed the upload_maxsize property in xwiki.preferences to 300MB (the information in the field was written in Bytes, equivalent to 300MB), but yet even so, I keep getting the same error message. I think this might be a HSQLDB handicap. Am I correct? In any case, how can I solve this issue so I can proceed with this test?! Thanks a lot ! Roney _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -------------------------------------------------------- NOTICE This message and any files transmitted with it is intended for the addressee only and may contain information that is confidential or privileged. Unauthorised use is strictly prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, except for the purpose of delivery to the addressee. Any views or opinions expressed within this e-mail are those of the author and do not necessarily represent those of Coventry University.
Hi, A complementary option you may want to try is to split your XAR into smaller pieces. The XAR is actually a ZIP file loaded with XML representations of XWiki pages and a descriptor. Thus you can ZIP say, 20 pages together, look at the description file and copy it with the right pages included in it, rename the ZIP to .xar and try importing it. This way you'll have 5 smaller files instead of a big one, which, in addition to the steps Ajdin described, should help you get your import done. As a rule of thumb, given the limitations Sergiu calculated some time ago, you want your import file to be approximately no bigger than 1/30 of the amount of memory allocated to your JVM. Thus if you allocate 1.5GB of memory to the JVM, you'll need your file to be < 50MB to maximize your chances of getting things working. We're aware of the numerous limitations of the current import / export feature (max size, pages getting overwritten) and will work on improving it in the future - once we have achieved our current overarching goal (getting XE 1.8 out!!). Hope this helps, Guillaume On Fri, Feb 13, 2009 at 5:21 PM, Ajdin Brandic <aa6345@coventry.ac.uk>wrote:
Hi
I'm not sure why you get this error but I do know (since I tried the same with a 90MB import) that it is pointless trying this with the basic xwiki setup. Another problem you'll have is the bug with uploading attachments and doing import is equivalent to adding attachment.
So first of all get Mysql and glassfish or tomcat. Install xwiki 1.8. Make sure you have plenty of memory for JVM (I found 1.6 to be the maximum on windows machine). Reduce your import file (export without attachments from your live site).
Then try to import. Then again and again etc.. Until one day it all works.
Ajdin
-----Original Message----- From: users-bounces@xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of CASTRO roney Sent: 13 February 2009 13:16 To: users@xwiki.org Subject: [xwiki-users] Max Upload Size questions
Hello everyone, I was testing the import/export tool from one wiki to another (I'm actually trying to export from an online xwiki to a testing instance locally in my machine), and the resulting file from the export process turned out to have around 255MB. I have the xwiki enterprise 1.7.1 installed on my machine (including a Jetty container and an HSQLDB database all set up). When I try to "upload" the exported file, I get an error message saying that the max upload size is 10MB. I already changed the upload_maxsize property in xwiki.preferences to 300MB (the information in the field was written in Bytes, equivalent to 300MB), but yet even so, I keep getting the same error message. I think this might be a HSQLDB handicap. Am I correct? In any case, how can I solve this issue so I can proceed with this test?! Thanks a lot ! Roney
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
--------------------------------------------------------
NOTICE
This message and any files transmitted with it is intended for the addressee only and may contain information that is confidential or privileged. Unauthorised use is strictly prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, except for the purpose of delivery to the addressee.
Any views or opinions expressed within this e-mail are those of the author and do not necessarily represent those of Coventry University. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
participants (3)
-
Ajdin Brandic -
CASTRO roney -
Guillaume Lerouge