From version 78.1
edited by Vincent Massol
on 2016/03/22
To version 79.1
edited by Thomas Mortagne
on 2017/01/31
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.ThomasMortagne
Content
... ... @@ -26,8 +26,10 @@
26 26  head -n 1 /dev/random
27 27  {{/code}}
28 28  
29 -If the command returns immediately, you can use ##/dev/random## as the default generator for Oracle's JVM. If the command does not return immediately, use these steps to configure the JVM to use ##/dev/urandom##:
29 +If the command returns immediately, you can use ##/dev/random## as the default generator for Oracle's JVM. If the command does not return immediately, use on of the following solutions to use ##/dev/urandom##:
30 30  
31 +== JVM setup ==
32 +
31 31  1. Open the ##$JAVA_HOME/jre/lib/security/java.security## file in a text editor.
32 32  1. Change the line:
33 33  {{code language="properties"}} securerandom.source=file:/dev/random{{/code}}
... ... @@ -35,6 +35,10 @@
35 35  {{code language="properties"}} securerandom.source=file:/dev/urandom{{/code}}
36 36  1. Save your change and exit the text editor.
37 37  
40 +== Command line parameter ==
41 +
42 +The same effect can be obtained using ##-Djava.security.egd=file:/dev/urandom## in the Java command line (usually in the application server configuration).
43 +
38 38  = Gzip compression and caching of static pages =
39 39  
40 40  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:
... ... @@ -147,8 +147,8 @@
147 147  You need to configure your Servlet container so that XWiki has enough memory. You'll need to tune the value to your need. You should check the logs and see if there are any "out of memory" errors. Here are some good default values:
148 148  
149 149  * For Java 8 (i.e. XWiki >= 8.1). Notice that there's no permgen anymore in Java 8:
150 -** Small and medium installs: A minimum of 1024MB (##-Xmx1024m)
151 -** Large installs: 2048MB or beyond (##-Xmx2048m).
156 +** Small and medium installs: A minimum of 1024MB (##-Xmx1024m)##
157 +** Large installs: 2048MB or beyond (##-Xmx2048m).##
152 152  * For Java 7 (i.e. XWiki < 8.1)
153 153  ** Small installs: A minimum of 512MB of heap memory and 196MB of permGen (##-Xmx512m -XX:MaxPermSize=196m##)
154 154  ** Medium installs: 1024MB for the heap and 196MB of permGen (##-Xmx1024m -XX:MaxPermSize=196m##)

Get Connected