On Sat, Dec 15, 2012 at 4:40 PM, Anjana Fernando <[email protected]> wrote:

> Hi,
>
> I was doing a load test on DSS, and noticed that there is a constant
> memory growth in it, and it keeps growing with the request count. And when
> stopped, after some time, a considerable amount of memory is being freed at
> once. I profiled the code and checked by running echo service (just to make
> sure it is not a data services issue), and saw that, an HTTP session is
> created for each of the calls coming into the Carbon server. Basically this
> is happening in the "CarbonContextCreatorValve" (v4.0.5),
> "initCarbonContext" method, line 80. Basically it does a
> request.getSession(), where it will create an HTTP session, if there isn't
> one already there.


Most probably this is a new bug introduced by Shariq's recent fix to set
the username in the CarbonContext. Code should not unnecessarily call
request.getSession()


> Please fix this ASAP, where this will affect all of the service calls that
> will happen, one possible fix would be to use "getSession(false)" and check
> the existent of the session. I've attached a screenshot of the sample
> jprofiler session I did, where it can be seen that, this code is hit for
> each service call.
>
> Cheers,
> Anjana.
>
> --
> *Anjana Fernando*
> Associate Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **[email protected]* <[email protected]>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to