[
https://issues.apache.org/jira/browse/AMQ-9471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17834705#comment-17834705
]
Jean-Baptiste Onofré commented on AMQ-9471:
-------------------------------------------
That's fixed in 6.1.1. I will republish the Docker images with the fix.
> 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, 6.0.1
> 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
> 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)