You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-10Lines changed: 4 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -320,13 +320,15 @@ we will get your local development server running and populated with test data.
320
320
321
321
## Command-line options
322
322
323
+
Use the `-D` option before the `-jar` argument to pass options as system properties.
324
+
323
325
- `-Dhttp.port=8080`Optional -- defaults to 8081
324
326
325
327
- `-Ddebug_log_package=*`Optional -- Set log level to debug for all packages.
326
328
Or use `org.folio.rest.*` for all classes within a specific package,
327
329
or `org.folio.rest.RestVerticle` for a specific class.
328
330
329
-
- `db_connection=[path]`Optional -- path to a JSON config file with
331
+
- `-Ddb_connection=[path]`Optional -- path to a JSON config file with
330
332
connection parameters to a PostgreSQL DB
331
333
332
334
- for example Postgres: `{"host":"localhost", "port":5432, "maxPoolSize":50,
@@ -339,14 +341,6 @@ or `org.folio.rest.RestVerticle` for a specific class.
339
341
340
342
- if file not found or path is relative tries to read a class path resource with that path
341
343
342
-
- Other module-specific arguments can be passed via the command line in the format key=value. These will be accessible to implementing modules via `RestVerticle.MODULE_SPECIFIC_ARGS` map.
343
-
344
-
- Optional JVM arguments can be passed before the `-jar` argument, e.g.
345
-
`-XX:+HeapDumpOnOutOfMemoryError`
346
-
`-XX:+PrintGCDetails`
347
-
`-XX:+PrintGCTimeStamps`
348
-
`-Xloggc:C:\Git\circulation\gc.log`
349
-
350
344
## Environment Variables
351
345
352
346
RMB implementing modules expect a set of environment variables to be passed in at module startup. The environment variables expected by RMB modules are:
@@ -385,7 +379,7 @@ Use `DB_SERVER_PEM` (or `server_pem` in the JSON config) to set SSL/TLS certific
385
379
386
380
The environment variable `DB_CONNECTIONRELEASEDELAY` sets the delay in milliseconds after which an idle connection is closed. A connection becomes idle if the query ends, it is not idle if it is waiting for a response. Use 0 to keep idle connections open forever. RMB's default is one minute (60000 ms).
387
381
388
-
`DB_MAX_LIFETIME`limits the lifetime (non-idle time plus idle time) of a database connection in milliseconds. If exceeded the connection is closed if it is or becomes idle. 0 means unlimited lifetime. It defaults to 30000. This options exists since RMB 36.0.0 (Trillium).
382
+
`DB_MAX_LIFETIME`limits the lifetime (non-idle time plus idle time) of a database connection in milliseconds. If exceeded the connection is closed if it is or becomes idle. 0 means unlimited lifetime. It defaults to 1800000 (30 minutes). This options exists since RMB 36.0.0 (Trillium).
389
383
390
384
`DB_RECONNECTATTEMPTS`and `DB_RECONNECTINTERVAL` set the maximum number of retries after a connect to the database fails, and how many milliseconds to wait before the next reconnect. Reconnecting is disabled by default.
0 commit comments