[
https://issues.apache.org/jira/browse/AMQ-9471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Hierlmeier updated AMQ-9471:
------------------------------------
Description:
I started the apache/activemq-classic with this docker-compose file:
{code:yaml}
version: "3.8"
services:
activemq:
image: apache/activemq-classic:5.18.3
container_name: activemq
...
environment:
ACTIVEMQ_OPTS_MEMORY: "-Xms64M -Xmx2G"
{code}
However the ACTIVEMQ_OPTS_MEMORY env variable is not considered. The max heap
size is still at the default value 1G:
{noformat}
$ docker-compose logs -f activemq
...
activemq | Java Runtime: Eclipse Adoptium 11.0.21 /opt/java/openjdk
activemq | Heap sizes: current=65536k free=58725k max=1003520k
...
{noformat}
was:
I started the apache/activemq-classic with this docker-compose file:
{code:yaml}
version: "3.8"
services:
activemq:
image: apache/activemq-classic:5.18.3
container_name: activemq
expose:
- "61616"
- "5672"
- "61613"
- "1883"
- "61614"
- "8161"
- "1099"
ports:
- "8161:8161"
- "61616:61616"
- "5672:5672"
- "61613:61613"
- "1883:1883"
- "61614:61614"
- "1099:1099"
volumes:
- activemq_conf:/opt/apache-activemq/conf/
environment:
ACTIVEMQ_OPTS_MEMORY: "-Xms64M -Xmx2G"
command: activemq console
stdin_open: true
tty: true
volumes:
activemq_conf:
external: true
{code}
However the ACTIVEMQ_OPTS_MEMORY env variable is not considered. The max heap
size is still at the default value 1G:
{noformat}
$ docker-compose logs -f activemq
...
activemq | Java Runtime: Eclipse Adoptium 11.0.21 /opt/java/openjdk
activemq | Heap sizes: current=65536k free=58725k max=1003520k
...
{noformat}
> Cannot change max heapsize in apache/activemq-classic docker container
> ----------------------------------------------------------------------
>
> Key: AMQ-9471
> URL: https://issues.apache.org/jira/browse/AMQ-9471
> Project: ActiveMQ Classic
> Issue Type: Bug
> Components: Docker
> Affects Versions: 5.18.3
> Reporter: Richard Hierlmeier
> Priority: Major
>
> I started the apache/activemq-classic with this docker-compose file:
> {code:yaml}
> version: "3.8"
> services:
> activemq:
> image: apache/activemq-classic:5.18.3
> container_name: activemq
> ...
> environment:
> ACTIVEMQ_OPTS_MEMORY: "-Xms64M -Xmx2G"
> {code}
> However the ACTIVEMQ_OPTS_MEMORY env variable is not considered. The max heap
> size is still at the default value 1G:
> {noformat}
> $ docker-compose logs -f activemq
> ...
> activemq | Java Runtime: Eclipse Adoptium 11.0.21 /opt/java/openjdk
> activemq | Heap sizes: current=65536k free=58725k max=1003520k
> ...
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)