Skip to content

Commit

Permalink
[OPENMEETINGS-2787] Startup script and clustering instructions are up…
Browse files Browse the repository at this point in the history
…dated
  • Loading branch information
solomax committed Dec 6, 2024
1 parent 90b7f99 commit 1c3426c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Environment=CATALINA_HOME=/opt/openmeetings
Environment=CATALINA_BASE=/opt/openmeetings
Environment='JDK_JAVA_OPTIONS=--add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED -XX:+DisableAttachMechanism'
Environment='CATALINA_OPTS=-Xms1G -Xmx4G -server -XX:+UseParallelGC'
Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom'
Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -Dopenjpa.serialization.class.blacklist=* -Dopenjpa.serialization.class.whitelist=[B,java.util,org.apache.openjpa,org.apache.openmeetings.db.entity'

ExecStart=/opt/openmeetings/bin/startup.sh
ExecStop=/opt/openmeetings/bin/shutdown.sh
Expand Down
7 changes: 7 additions & 0 deletions openmeetings-server/src/site/xdoc/Clustering.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@
set correct server address, login and password. Also uncomment following line:
<source><![CDATA[<property name="openjpa.RemoteCommitProvider" value="tcp(Addresses=127.0.0.1)" />]]></source>
</li>
<li>
<div class="bd-callout bd-callout-danger">
IMPORTANT: Please ensure your startup scripts has OpenJPA black/white list definition
</div>
<p>Here is an example:</p>
<code>JAVA_OPTS="-Dopenjpa.serialization.class.blacklist=* -Dopenjpa.serialization.class.whitelist=[B,java.util,org.apache.openjpa,org.apache.openmeetings.db.entity"</code>
</li>
</ul>
</subsection>
<subsection name="File systems">
Expand Down

0 comments on commit 1c3426c

Please sign in to comment.