| 7 | == Process |
| 8 | |
| 9 | We followed the `Installation of Opal Zip distribution` instructions that installed Opal from a zip file. |
| 10 | |
| 11 | 1. Download Opal distribution into the `/local/` directory |
| 12 | 1. Unzip the Opal distribution. Note that the zip file contains a root directory named `opal-server-{version}`. |
| 13 | 1. Create an Opal home directory (to facilitate subsequent upgrades) using the command `mkdir opal-home`. |
| 14 | 1. Create a symbolic link to the Opal server directory, using the command `ln -s opal-server-{version} opal_server` |
| 15 | 1. Copy the `conf` directory from the server directory into the home directory, using the command `cp -r opal-server/conf opal-home`. |
| 16 | 1. Create a script called `start_opal.sh` in the `/local/` directory containing the following: |
| 17 | |
| 18 | {{{ |
| 19 | #!/usr/bin/env bash |
| 20 | |
| 21 | echo "Starting Opal" |
| 22 | |
| 23 | export JAVA_OPTS="-Xmx2G -XX:-UseCompressedClassPointers" |
| 24 | export OPAL_HOME="/local/opal-home" |
| 25 | |
| 26 | /local/opal-server/bin/opal |
| 27 | |
| 28 | echo "Ended" |
| 29 | }}} |
| 30 | |
| 31 | The java options are: |
| 32 | -Xmx2G:: increase the memory allocated to Java to 2GB |
| 33 | -XX:-UseCompressedClassPointers:: Do not compress class pointers (because Opal creates too many classes?) |
| 34 | |