Changes for page Performance
Last modified by Thomas Mortagne on 2023/10/10
From version 41.1
edited by Thomas Mortagne
on 2014/08/29
on 2014/08/29
Change comment:
There is no comment for this version
To version 42.1
edited by Thomas Mortagne
on 2015/01/17
on 2015/01/17
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,6 +4,29 @@ 4 4 5 5 Here are some tips to increase XWiki's performance. 6 6 7 += Slow random number generation on UNIX = 8 + 9 +The library used for random number generation in Sun's JVM relies on /dev/random by default for UNIX platforms. 10 + 11 +Although /dev/random is more secure, it's possible te use /dev/urandom if the default JVM configuration instead. 12 + 13 +To determine if your operating system exhibits this behavior, try displaying a portion of the file from a shell prompt: 14 + 15 +head -n 1 /dev/random 16 + 17 +If the command returns immediately, you can use /dev/random as the default generator for SUN's JVM. If the command does not return immediately, use these steps to configure the JVM to use /dev/urandom: 18 + 19 +1. Open the $JAVA_HOME/jre/lib/security/java.security file in a text editor. 20 +2. Change the line: 21 +{{code language="properties"}} 22 + securerandom.source=file:/dev/random 23 +{{/code}} 24 + to read: 25 +{{code language="properties"}} 26 + securerandom.source=file:/dev/urandom 27 +{{/code}} 28 +3. Save your change and exit the text editor. 29 + 7 7 = Gzip compression and caching of static pages = 8 8 9 9 We're working on making these features part of the XWiki core (see [[XWIKI-2022>>http://jira.xwiki.org/jira/browse/XWIKI-2022]]). While waiting for this to be natively implemented, the recommended solution is to set up an Apache Web Server in front of your servlet container and install/configure the following modules: