Hi Lakmal,

All of the container related images will use the default startup script
shipped in the product to boot the image up, ex [1]. And, we are
setting -Xms256m -Xmx1024m for all the products.

-XX:MaxHeapSize option is equivalent to -Xmx. [2]

[1]:
https://github.com/wso2/kubernetes-apim/blob/2.1.0-nfs/base/apim/init_carbon.sh
[2]: https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html

On Fri, Oct 20, 2017 at 2:21 PM, Lakmal Warusawithana <[email protected]>
wrote:

> Hi All,
>
> If we do not set MaxHeapSize in JVM which runs inside docker it will set
> it as 1/4 of the physical memory. But issue is, inside the docker it will
> read as total physical memory of the HOST machine rather taking allocated
> memory to that docker container. So if we do not properly set MaxHeapSize
> it will cause to many issues. [1]
>
> As a quick action, shall we properly document this in our all docker
> repositories? Also it should go to doc site as well.
>
> Going forward we should allow users to pass this as env variable and set
> it up.
>
> [1] https://developers.redhat.com/blog/2017/03/14/java-inside-docker/
>
> thanks
>
> --
> Lakmal Warusawithana
> Senior Director - Cloud Architecture; WSO2 Inc.
> Mobile : +94714289692 <+94%2071%20428%209692>
> Blogs : https://medium.com/@lakwarus/
>             http://lakmalsview.blogspot.com/
>
>
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : [email protected]
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to