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/