[xwiki-users] Subcategories in BulletinBoard application
Hi, can I - and if yes - how can I - set subcategories in BulletinBoard application (XWiki Enterprise 1.6.1.13621 + BB 1.0)? Thanks... Joe ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Java Heap Space, Out of memory exception
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/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Java Heap Space, Out of memory exception
Sergiu Xwiki would not start with heap size more than 1.6gb, I've attempted this. I'll try the other option you've suggested although I do not know how to load sql dump into HSQLDB? I've you have any suggestions please advise. I searched web for 2 days looking for answers to this question and all I found was JAVA_OPTS and CATALINA_OPTS suggestions. I have not seen any ware your comment on handling attachment consumes about 27 time the size of the attachment. It was probably some ware out there but I missed it. Maybe you should include it on the Import/Export page http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport Thank you for your response, at least I know where the issue is. Ajdin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergiu Dumitriu Sent: 05 December 2008 10:14 To: XWiki Users Subject: Re: [xwiki-users] Java Heap Space, Out of memory exception 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=obj ec 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/ ___ 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
Re: [xwiki-users] Java Heap Space, Out of memory exception
Hi I am still learning about xwiki (how to code velocity, code/add plug-in etc) so wanted some real data. I will install mysql and ask for sql dump as Sergiu suggested. I will add a few notes as Comments to Import/Export and Download pages!! Many thanks! Ajdin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Massol Sent: 05 December 2008 10:30 To: XWiki Users Subject: Re: [xwiki-users] Java Heap Space, Out of memory exception On Dec 5, 2008, at 11:23 AM, Ajdin Brandic wrote: Sergiu Xwiki would not start with heap size more than 1.6gb, I've attempted this. I'll try the other option you've suggested although I do not know how to load sql dump into HSQLDB? I've you have any suggestions please advise. One warning: You should definitely not use HSQLDB for anything more than demo purpose. It's not a production database. Thanks -Vincent I searched web for 2 days looking for answers to this question and all I found was JAVA_OPTS and CATALINA_OPTS suggestions. I have not seen any ware your comment on handling attachment consumes about 27 time the size of the attachment. It was probably some ware out there but I missed it. Maybe you should include it on the Import/Export page http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport Thank you for your response, at least I know where the issue is. Ajdin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergiu Dumitriu Sent: 05 December 2008 10:14 To: XWiki Users Subject: Re: [xwiki-users] Java Heap Space, Out of memory exception 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=obj ec 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 ___ 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
Re: [xwiki-users] Java Heap Space, Out of memory exception
An alternative is to export the pages in chunks. Install the ImportExport application, which allows to select which pages to export, and only select a few pages at a time, keeping the size of the attachments smaller. Then, import each archive one by one. The best option, however, is to install mysql and import the sql dump. Ajdin Brandic wrote: Sergiu Xwiki would not start with heap size more than 1.6gb, I've attempted this. I'll try the other option you've suggested although I do not know how to load sql dump into HSQLDB? I've you have any suggestions please advise. I searched web for 2 days looking for answers to this question and all I found was JAVA_OPTS and CATALINA_OPTS suggestions. I have not seen any ware your comment on handling attachment consumes about 27 time the size of the attachment. It was probably some ware out there but I missed it. That mail was pretty old. Only the conclusion is relevant to this topic, the huge memory requirement. Maybe you should include it on the Import/Export page http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport Thank you for your response, at least I know where the issue is. Ajdin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergiu Dumitriu Sent: 05 December 2008 10:14 To: XWiki Users Subject: Re: [xwiki-users] Java Heap Space, Out of memory exception 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=obj ec 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/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Tuning xwiki for low memory webhosting service.
Robert Munro wrote: Hi, I have been using xwiki on my hosting service for a few weeks now but i am getting permgen errors (My memory allocation is 64Mb Max permgen, 128Mb Max Heap). Quite a few of the problems seem to be happening when web bots are trolling the site. Essentially i just want to display the information on the page without the show/print bar at the top and the comment/attachment/history/info tabs at th bottom so that these links arent visible at all to the web bots, as some arent reading robots.txt. Would it be best you just make a new skin? and show the bar using a velicity template? or is there a way in the permissions or config to block the show/print bar comment/attachment/history/info for guests? regards, rob. xwiki.robmunro.net You should not make a complete new skin just for this. The best approach is to change just the menuview.vm template and upload it as an attachment to the XWiki.DefaultSkin document (or the skin you have configured in your wiki). The template is pretty easy to understand IMHO, you need to find the right lines and wrap them with #if(!$isGuest) ... #end About the memory problems: - you will get out of heap memory if you use many attachments. This is buggy and wrongly designed, it should be fixed in the future. - permgen errors should not happen. What container are you using? Tomcat, by any chance? There is a bug in some containers, triggered when reloading the webapp without restarting the server. The jars are reloaded, but some of the old classes are not garbage collected. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Subcategories in BulletinBoard application
Hi Jorg, As of today you cannot create subcategories in the BulletinBoard application. I coded the application as a proof of concept a couple months ago and didn't have the time to come back to it since. If you feel like it (that it, is you're ready to dig into XWiki's API, class object model and velocity scripting) you can give a look at the code beneath the application's pages and try and do it yourself (this suggestion will only work if you're a coder / developer). Sorry for the negative answer, Guillaume On Fri, Dec 5, 2008 at 10:36 AM, Jörg Burkhardt [EMAIL PROTECTED] wrote: Hi, can I - and if yes - how can I - set subcategories in BulletinBoard application (XWiki Enterprise 1.6.1.13621 + BB 1.0)? Thanks... Joe ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://blog.xwiki.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Installation of AttachmentStore
Hi, have had anyone got the AttachmentStore from Michael Zach (TNXLabs) (details here: http://n2.nabble.com/AttachmentStore---my-filesystem-based-implementation-td516568.html#a516569) installed and running? I have followed the instructions til: Then after restarting xwiki everything still works as usual until you insert an object of class called HibernatePlusFileAttachmentStore into the global/space preferences of your xwiki. I don't find that class if I'm on Space:Webpreferences in editing-mode objects What i have to do? I need to save large files in XWiki and like to do that at the file system... Thanks... Joe ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Default XAR merge on import
According to the installation/upgrade guide, You may want to upgrade to a newer version of the Default Wiki XAR in order to benefit from the latest changes. As mentioned above in the Installing the Default Wiki XAR section you should be very careful and when doing the import make sure you selectively decide what pages you wish to import. Is there any particularly good recommended way of doing this efficiently? [...] I would be interested in some pointers here, too. Currently for every upgrade most of the time I am busy with comparing the exported and unpacked *.xar of my wiki with the differences between the xwiki-enterprise-*.war from the corresponding releases, and update the *.xml files manually. When I reimport the changes files again in the running xwiki I always have the fear of overwriting some important local modifications, or forgot to add important updates from the release. I guess there must be better ways to do it, and maybe someone already knows one ;) I personally don't need any pretty xwiki app to do this, if I can accomplish it in my shell, it'd be fine. And barring comments, I'll try to work this up on my own. I just wondered if one day I get to the point where I could at least write an importer plugin, which accepts the pristine *.xar from the current and new release, and then updates all pages, which still have the content from the old release with the content of the corresponding page in the new release. (Well, just updating the content would not help for the Panels, which are actually the most heavily customized things in the wiki here). Though I am not there yet, partially because still have to learn the XWiki API, partially because the updates somehow went through without it. Cheers anyway, Clemens ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Default XAR merge on import
Hi, On Dec 5, 2008, at 5:48 PM, Clemens Robbenhaar wrote: According to the installation/upgrade guide, You may want to upgrade to a newer version of the Default Wiki XAR in order to benefit from the latest changes. As mentioned above in the Installing the Default Wiki XAR section you should be very careful and when doing the import make sure you selectively decide what pages you wish to import. Is there any particularly good recommended way of doing this efficiently? [...] I would be interested in some pointers here, too. Currently for every upgrade most of the time I am busy with comparing the exported and unpacked *.xar of my wiki with the differences between the xwiki-enterprise-*.war from the corresponding releases, and update the *.xml files manually. When I reimport the changes files again in the running xwiki I always have the fear of overwriting some important local modifications, or forgot to add important updates from the release. I guess there must be better ways to do it, and maybe someone already knows one ;) Right now there are only 2 best practices: * first you should try to avoid making modification to pages bundled with the default XAR that you'd like reimport in future versions. For example if you need to change the WebSearch page you can create your own WebSearch page in your own space for example or copy it to a different name. * you could also maintain a list of default XAR pages that you have modified so that you don't overwrite them when importing a new XAR. Last there's a list of pages that you should not reimport (they are mentioned in the installation guide). Of course none of this is perfect and it won't be perfectly till we have finished the new application manager: http://dev.xwiki.org/xwiki/bin/view/Design/ApplicationManager The work for it is going to start in XE 1.8 but since it's a complex thing it'll probably be fully operational only around 1.9 or maybe even 1.10. Depends how fast we progress, the contributions, etc. I personally don't need any pretty xwiki app to do this, if I can accomplish it in my shell, it'd be fine. And barring comments, I'll try to work this up on my own. I just wondered if one day I get to the point where I could at least write an importer plugin, which accepts the pristine *.xar from the current and new release, and then updates all pages, which still have the content from the old release with the content of the corresponding page in the new release. (Well, just updating the content would not help for the Panels, which are actually the most heavily customized things in the wiki here). Though I am not there yet, partially because still have to learn the XWiki API, partially because the updates somehow went through without it. Yes it's definitely possible. You could probably even reuse the diff API to compare the versions. That said what you describe is very similar to the application manager idea we have: http://dev.xwiki.org/xwiki/bin/view/Design/ApplicationManager You are very welcome to help us design it. Thomas Mortagne and Jean- Vincent Drean are the ones who have planned looking into this during the XE 1.8 timeframe. If you have some ideas fire them here for discussion and when agree we can consolidate everything on that page: http://dev.xwiki.org/xwiki/bin/view/Design/ApplicationManager Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Installation of AttachmentStore
Jörg Burkhardt wrote: Hi, have had anyone got the AttachmentStore from Michael Zach (TNXLabs) (details here: http://n2.nabble.com/AttachmentStore---my-filesystem-based-implementation-td516568.html#a516569) installed and running? I have followed the instructions til: Then after restarting xwiki everything still works as usual until you insert an object of class called HibernatePlusFileAttachmentStore into the global/space preferences of your xwiki. I don't find that class if I'm on Space:Webpreferences in editing-mode objects What i have to do? Just create it. Go to that document (XWiki.HibernatePlusFileAttachmentStore) and use the class editor. I need to save large files in XWiki and like to do that at the file system... -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Removing the Register Link
I'm using XWiki Enterprise version 1.6.1.13621. I was following the instructions in the FAQ to forbid registration ( http://www.xwiki.org/xwiki/bin/view/FAQ/HowCanIForbidRegistration, which seems to be out-of-date for my version BTW) and noticed some strange behavior. I don't want anyone to self-register so I denied access in the Register column of the Rights admin page for all groups. I logged out and noticed the register link was still on the page. I tried registering a fake user and it worked. After playing around for a while I figured out that I had to actually grant Register access for the XWikiAdminGroup group to get the Register link to disappear. If I deny Register access or just leave it blank for the XWikiAdminGroup group the Register link is present and works. This is backwards to me. Without looking at the code it seems like a logical error somewhere. Could someone tell me whether I'm understanding this process correctly or not? -- Nick Watts blog: thewonggei.wordpress.com ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users