Hi All,

We may need to tune ThreadStackSize [1], before we run Java applications on
K8s. Default  Linux JVM thread stack size is 1MB [1].

[2] http://www.oracle.com/technetwork/articles/java/
vmoptions-jsp-140102.html


On Sat, Oct 28, 2017 at 2:42 PM, Prasanna Dangalla <prasa...@wso2.com>
wrote:

> Hi,
>
> Added a documentation JIRA[1] to track this.
>
> [1] - https://wso2.org/jira/browse/DOCUMENTATION-6243
>
> Thanks
>
> *Prasanna Dangalla*
> Senior Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
>
> *cell: +94 718 11 27 51*
> *twitter: @prasa77*
>
> On Fri, Oct 20, 2017 at 5:26 PM, Pubudu Gunatilaka <pubu...@wso2.com>
> wrote:
>
>> Hi,
>>
>> Yes, this is already there in the wso2server.sh. For Kubernetes and
>> other container management systems, we need to set these values as limits
>> to avoid getting issues in runtime.
>>
>> Thank you!
>>
>> On Fri, Oct 20, 2017 at 4:22 PM, Lakmal Warusawithana <lak...@wso2.com>
>> wrote:
>>
>>> Yes, you are correct. It will use default value come in wso2server.sh.
>>>
>>> On Fri, Oct 20, 2017 at 4:10 PM, Lakmal Warusawithana <lak...@wso2.com>
>>> wrote:
>>>
>>>> Hi Abimaran,
>>>>
>>>> But not in the default docker images. Yes in K8S artifacts we have set
>>>> the Xmx value. But again we need to clearly document it like why to
>>>> change? how to change? ..etc.
>>>>
>>>> On Fri, Oct 20, 2017 at 3:41 PM, Abimaran Kugathasan <abima...@wso2.com
>>>> > wrote:
>>>>
>>>>> 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/w
>>>>> indows/java.html
>>>>>
>>>>> On Fri, Oct 20, 2017 at 2:21 PM, Lakmal Warusawithana <lak...@wso2.com
>>>>> > 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
>>>>>> Architecture@wso2.org
>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thanks
>>>>> Abimaran Kugathasan
>>>>> Senior Software Engineer - API Technologies
>>>>>
>>>>> Email : abima...@wso2.com
>>>>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>>>>
>>>>> <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
>>>>> Architecture@wso2.org
>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Lakmal Warusawithana
>>>> Senior Director - Cloud Architecture; WSO2 Inc.
>>>> Mobile : +94714289692 <+94%2071%20428%209692>
>>>> Blogs : https://medium.com/@lakwarus/
>>>>             http://lakmalsview.blogspot.com/
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> 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
>>> Architecture@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Senior Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774078049 <%2B94772207163>
>>
>>
>> _______________________________________________
>> Architecture mailing list
>> Architecture@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
> _______________________________________________
> Architecture mailing list
> Architecture@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Deependra Ariyadewa
WSO2, Inc. http://wso2.com/ http://wso2.org

email d...@wso2.com; cell +94 71 403 5996 <071%20403%205996> ;
Blog http://risenfall.wordpress.com/
PGP info: KeyID: 'DC627E6F'

*WSO2 - Lean . Enterprise . Middleware*
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to