Hi Den.
The heap allocation is done dynamically. When the image starts it runs
/opt/webserver/bin/launch.sh. In this file you will find
MAX_HEAP=`get_heap_size`
if [ -n "$MAX_HEAP" ]; then
CATALINA_OPTS="$CATALINA_OPTS -Xms${MAX_HEAP}m -Xmx${MAX_HEAP}m"
fi
The function "get_heap_size" is sourced from
/usr/local/dynamic-resources/dynamic_resources.sh. What I *think* it does
is checking if any resource quotas are set, and if so allocates 50% of the
available memory as heap. The percentage can be changed by setting the
environment variable CONTAINER_HEAP_PERCENT to e.g 0.10 (to get 10%).
On 28 November 2016 at 13:02, Den Cowboy <[email protected]> wrote:
> Hi, we're using the tomcat of this image:
>
> registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift:1.2-12
>
> The problem is were not able to increase the heapsize. It's different on
> our servers than on our local machines.
> What's the best way to set this parameter? (e.g. in the dockerfile)
>
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
--
Pelle
Research is what I'm doing when I don't know what I'm doing.
- Wernher von Braun
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users