Hello all, after I changed my max upload size to 2Gb, and after having used the filesystem attachment, I thought it would be flawless to upload a 600 Mb but no. I get the following exception:
Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2786) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94) at org.apache.commons.io.output.ProxyOutputStream.write(ProxyOutputStream.java:90) at org.apache.commons.codec.binary.BaseNCodecOutputStream.flush(BaseNCodecOutputStream.java:116) at org.apache.commons.codec.binary.BaseNCodecOutputStream.write(BaseNCodecOutputStream.java:97) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1720) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1696) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1671) at com.xpn.xwiki.internal.xml.XMLWriter.writeBase64(XMLWriter.java:182) at com.xpn.xwiki.doc.XWikiAttachment.toXML(XWikiAttachment.java:413) at com.xpn.xwiki.doc.XWikiAttachment.toStringXML(XWikiAttachment.java:340) at com.xpn.xwiki.doc.XWikiAttachmentArchive.updateArchive(XWikiAttachmentArchive.java:180) at com.xpn.xwiki.doc.XWikiAttachment.updateContentArchive(XWikiAttachment.java:718) at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachment(XWikiHibernateStore.java:1528) at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachmentList(XWikiHibernateStore.java:1496)
Could it be that this copy is indeed copying the whole file? paul