Thanks for your response Per.

I can confirm it's dynamically. We increased our resources and the heapsize 
increased for our tomcat.

When we want to increase the heap_size with the size of our environment 
variable. Where do I have to set this?
Inside the tomcat container or on our openshift-master or... ?

Thanks!


________________________________
Van: Per Carlson <[email protected]>
Verzonden: maandag 28 november 2016 14:25:25
Aan: Den Cowboy
CC: [email protected]
Onderwerp: Re: Increase HeapSize on 
registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift:1.2-12

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]<mailto:[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<http://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]<mailto:[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

Reply via email to