Hi Malaka,

Tenant configuration was introduced to carbon xml with the tenant eager
loading feature. It was intended to allow tenant idle time configuration in
the case of tenant lazy loading as well.

The issue is that MultitenantServerManager reads the system property
tenant.idle.time before TenantLoadingConfig reads the carbon xml and set
the tenant idle time as the system property. Hence the IdleTime
configuration in carbon xml is not effective ATM. Tenants will be unloaded
after the time specified with -Dtenant.idle.time, else, after the default
of 30 minutes. Created a public jira [1].

[1] https://wso2.org/jira/browse/CARBON-15253

On Sat, May 23, 2015 at 8:15 AM, Malaka Silva <mal...@wso2.com> wrote:

> Thx guys.
>
> So the entry in carbon.xml does not work. If so should we remove it?
>
> On Fri, May 22, 2015 at 12:04 PM, Shashika Karunatilaka <
> shashi...@wso2.com> wrote:
>
>> Hi Bathiya,
>>
>> Its also the same as in latest kernel versions.
>>
>> Thank you.
>>
>> On Fri, May 22, 2015 at 12:00 PM, Bhathiya Jayasekara <bhath...@wso2.com>
>> wrote:
>>
>>> Hi Malaka,
>>>
>>> In carbon 4.2.0, it can be done with below argument in wso2server.sh.
>>> Not sure about latest kernels.
>>>
>>>     -Dtenant.idle.time=1 \
>>>
>>> Thanks,
>>> Bhathiya
>>>
>>> On Fri, May 22, 2015 at 11:31 AM, Malaka Silva <mal...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Can we change the default value for $subject.
>>>>
>>>> I tried setting following in carbon.xml. It does not seem to be working.
>>>>
>>>>     <Tenant>
>>>>         <LoadingPolicy>
>>>>             <LazyLoading>
>>>>                 <IdleTime>1</IdleTime>
>>>>             </LazyLoading>
>>>>             <!-- <EagerLoading>
>>>>                    <Include>*,!foo.com,!bar.com</Include>
>>>>             </EagerLoading>-->
>>>>         </LoadingPolicy>
>>>>     </Tenant>
>>>>
>>>> --
>>>>
>>>> Best Regards,
>>>>
>>>> Malaka Silva
>>>> Senior Tech Lead
>>>> M: +94 777 219 791
>>>> Tel : 94 11 214 5345
>>>> Fax :94 11 2145300
>>>> Skype : malaka.sampath.silva
>>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>>> Blog : http://mrmalakasilva.blogspot.com/
>>>>
>>>> WSO2, Inc.
>>>> lean . enterprise . middleware
>>>> http://www.wso2.com/
>>>> http://www.wso2.com/about/team/malaka-silva/
>>>> <http://wso2.com/about/team/malaka-silva/>
>>>>
>>>> Save a tree -Conserve nature & Save the world for your future. Print
>>>> this email only if it is absolutely necessary.
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Senior Software Engineer,*
>>> *WSO2 inc., http://wso2.com <http://wso2.com>*
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> <http://www.linkedin.com/in/bhathiyaj>*
>>> *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
>>> *Blog: http://movingaheadblog.blogspot.com
>>> <http://movingaheadblog.blogspot.com/>*
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> <http://wso2.com/about/team/malaka-silva/>
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to