Ajdin Brandic wrote:
Hi All
I am having a problem uploading a xar file. I get "Java Heap Space, Out
of memory exception" (full message below).
I've downloaded the latest version of XWiki for windows xp (beginner's
version with HSQLDB & Jetty).
In my start_xwiki.bat I have set "set JAVA_OPTS=-Xmx1600m -Xms512m".
1.6gb is the maximum as xwiki would not start if I go over this.
I don't think I have CATALINA.bat any ware so I din not find where to
set CATALINA_OPTS.
I have changed file upload size to 133MB by going to
http://localhost:8080/xwiki/bin/edit/XWiki/XWikiPreferences?editor=objec
t and changing Maximum Upload Size:.
The .xar file is 90MB downloaded as backup from
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Main/WebHome.
I do not know what version this runs on since it is on one of the xwiki
farm things :-).
I have Win XP with 3.5gb memory available.
Has anyone had this error recently?
This is a major design flaw of the current attachment storage model. As
stated in a previous mail, handling attachment consumes about 27 time
the size of the attachment, so 90M * 27 ~= 2.5G. This needs to be fixed
ASAP. In the meantime, you can either increase the heap size to more
than 2.5G, or request an sql dump from the myxwiki farm admins.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/