Re: [xwiki-users] Attach big files to xwiki 7
Hi, As far as I know, a good practice is to use the file system storage instead of database to avoid these kind of problem. You may look here to find more information. http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+Porter There is also a migration (from database storage to file system storage) script that you can download. Hope this helps. On 13/04/2015 13:50, israel_berkow...@contractor.amat.com wrote: Hi All I have problem to configure xwiki7 To attach big file to wiki The steps that I did are: Size Limit The maximum size of an attachment is limited by a configuration parameter in the XWikiPreferences document. It is set to about 32MB by default. To change it follow these steps: 1. Go to http://yourwiki/xwiki/bin/edit/XWiki/XWikiPreferences?editor=objecthttp://%3cyourwiki%3e/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object 2. Click on the line that says XWikiPreferences 0 (right below the line that says Objects of type XWiki.XWikiPreferences (1)) 1. Scroll down to the field that says Maximum Upload Size and change the number to 10737418240 bytes which is 10GB 2. Scroll to the bottom and click Save 3. Restarted the tomcat 8 This didn't work: I am getting message that I can't attach files larger then 32mb 1. I have tried to attach a video file that about 32mb I got those messages: [Caused by: java.lang.OutOfMemoryError: Java heap space among the long message] A problem occurred while trying to process your request. Please contact the webmaster if this happens again. Detailed information: Error number 0 in 11: Uncaught exception com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:368) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:644) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at
Re: [xwiki-users] Attach big files to xwiki 7
Hi Jean I have change the attachments location to use the file system But it still limit me to 32MB any other idea Thanks Israel -Original Message- From: users [mailto:users-boun...@xwiki.org] On Behalf Of Jean SIMARD Sent: Monday, April 13, 2015 6:25 PM To: XWiki Users Subject: Re: [xwiki-users] Attach big files to xwiki 7 Hi, As far as I know, a good practice is to use the file system storage instead of database to avoid these kind of problem. You may look here to find more information. http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+Porter There is also a migration (from database storage to file system storage) script that you can download. Hope this helps. On 13/04/2015 13:50, israel_berkow...@contractor.amat.com wrote: Hi All I have problem to configure xwiki7 To attach big file to wiki The steps that I did are: Size Limit The maximum size of an attachment is limited by a configuration parameter in the XWikiPreferences document. It is set to about 32MB by default. To change it follow these steps: 1. Go to http://yourwiki/xwiki/bin/edit/XWiki/XWikiPreferences?editor=objecthttp://%3cyourwiki%3e/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object 2. Click on the line that says XWikiPreferences 0 (right below the line that says Objects of type XWiki.XWikiPreferences (1)) 1. Scroll down to the field that says Maximum Upload Size and change the number to 10737418240 bytes which is 10GB 2. Scroll to the bottom and click Save 3. Restarted the tomcat 8 This didn't work: I am getting message that I can't attach files larger then 32mb 1. I have tried to attach a video file that about 32mb I got those messages: [Caused by: java.lang.OutOfMemoryError: Java heap space among the long message] A problem occurred while trying to process your request. Please contact the webmaster if this happens again. Detailed information: Error number 0 in 11: Uncaught exception com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:368) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:644) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter