Skip to content

Commit ed0b1e9

Browse files
committed
keep domain.xml editing together
1 parent 329b167 commit ed0b1e9

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

doc/release-notes/12020-Payara-and-Java-updates.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ We also recommend you ensure you followed all update instructions from the past
151151
<jvm-options>-Ddataverse.spi.exporters.directory=/var/lib/dataverse/exporters</jvm-options>
152152
```
153153

154+
1. Check the `Xmx` setting in `domain.xml`.
155+
156+
Under `/usr/local/payara7/glassfish/domains/domain1/config/domain.xml`, check the `Xmx` setting under `<config name="server-config">`, where you put the Dataverse-related JVM options, not the one under `<config name="default-config">`. This sets the JVM heap size; a good rule of thumb is half of your system's total RAM. You may specify the value in MB (`8192m`) or GB (`8g`).
157+
158+
1. **Please make sure** to check for any other custom configuration you may have in your current `domain.xml` that are not explicitly covered in the sections above. As an example, for Harvard Dataverse we have the thread pool size configured as follows for the main http listener:
159+
160+
`<thread-pool name="http-thread-pool" max-thread-pool-size="400"></thread-pool>`
161+
154162
1. Comment out JSP servlet mappings.
155163

156164
First, backup the file you'll be editing.
@@ -171,14 +179,6 @@ We also recommend you ensure you followed all update instructions from the past
171179
</servlet-mapping>
172180
```
173181

174-
1. Check the `Xmx` setting in `domain.xml`.
175-
176-
Under `/usr/local/payara7/glassfish/domains/domain1/config/domain.xml`, check the `Xmx` setting under `<config name="server-config">`, where you put the Dataverse-related JVM options, not the one under `<config name="default-config">`. This sets the JVM heap size; a good rule of thumb is half of your system's total RAM. You may specify the value in MB (`8192m`) or GB (`8g`).
177-
178-
1. **Please make sure** to check for any other custom configuration you may have in your current `domain.xml` that are not explicitly covered in the sections above. As an example, for Harvard Dataverse we have the thread pool size configured as follows for the main http listener:
179-
180-
`<thread-pool name="http-thread-pool" max-thread-pool-size="400"></thread-pool>`
181-
182182
1. Copy `jhove.conf` and `jhoveConfig.xsd` from Payara 6, edit and change `payara6` to `payara7`.
183183

184184
`sudo bash -c 'cp /usr/local/payara6/glassfish/domains/domain1/config/jhove* /usr/local/payara7/glassfish/domains/domain1/config'`

0 commit comments

Comments
 (0)