jbonofre opened a new pull request, #2044: URL: https://github.com/apache/activemq/pull/2044
## Summary - Raise the shipped default heap from `-Xms64M -Xmx1G` to `-Xms512M -Xmx2G` in `assembly/src/release/bin/setenv`. The previous default is undersized for a production broker; the new value is still modest and remains overridable via `ACTIVEMQ_OPTS_MEMORY`. - Add a new `ACTIVEMQ_OOM_OPTS` variable defaulting to `-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$ACTIVEMQ_DATA -XX:+ExitOnOutOfMemoryError` so that an `OutOfMemoryError` produces a heap dump under the broker data directory and the JVM terminates rather than continuing in a degraded state. - Mirror the same `ACTIVEMQ_OOM_OPTS` fallback inside `assembly/src/release/bin/activemq` so the diagnostics still apply if `setenv` is absent. Both new variables remain overridable from the environment or from any of the higher-priority configuration files (`/etc/default/activemq`, `~/.activemqrc`, `bin/setenv`). ## Test plan - [ ] Start the broker via `bin/activemq console` and confirm the new heap / OOM JVM arguments are visible in the process command line. - [ ] Override `ACTIVEMQ_OPTS_MEMORY` and `ACTIVEMQ_OOM_OPTS` from `bin/setenv` and verify the overrides take effect. - [ ] Trigger an OOM (e.g. with a deliberately low `-Xmx`) and confirm a heap dump is produced under `$ACTIVEMQ_DATA` and the JVM exits. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information, visit: https://activemq.apache.org/contact
