Profiling Multi-tenant Ofbiz - thread deadlock

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Profiling Multi-tenant Ofbiz - thread deadlock

Justin Robinson-2
Profiling in jprofiler, using jmeter headless test on large test server,
running customized ofbiz 10.4 (no customizations in this area though) ...
200 simultaneous users; 4 on each of 50 tenants that's where problems start
to occur.

Response times for page requests get very slow up to 15 seconds with 100
users, 2 per tenant over 50 tenants.


With 200 users I see 199 threads blocked and 1 running, this results in all
the requests timing out.


I am new to jprofiler but it looks like it is related to on
FreeMarkerWorker.renderTemplate the monitor where the deadlock is named

org.apache.commons.pool.impl.GenericObjectPool
Reply | Threaded
Open this post in threaded view
|

Re: Profiling Multi-tenant Ofbiz - thread deadlock

marcopaul
I recall the version of free marker shipped with that version of Ofbiz isn't multi-thread safe.  Might want to try upgrading that piece if you can't easily get a newer build of Ofbiz up.

--P

> On Jun 21, 2016, at 9:57 AM, Justin Robinson <[hidden email]> wrote:
>
> Profiling in jprofiler, using jmeter headless test on large test server,
> running customized ofbiz 10.4 (no customizations in this area though) ...
> 200 simultaneous users; 4 on each of 50 tenants that's where problems start
> to occur.
>
> Response times for page requests get very slow up to 15 seconds with 100
> users, 2 per tenant over 50 tenants.
>
>
> With 200 users I see 199 threads blocked and 1 running, this results in all
> the requests timing out.
>
>
> I am new to jprofiler but it looks like it is related to on
> FreeMarkerWorker.renderTemplate the monitor where the deadlock is named
>
> org.apache.commons.pool.impl.GenericObjectPool
Reply | Threaded
Open this post in threaded view
|

Re: Profiling Multi-tenant Ofbiz - thread deadlock

Nicolas Malin-2
In reply to this post by Justin Robinson-2
Hi Justin,
OFBiz 10.04 is too old and many improvement for the multi-tenant and
multi-threading in general has been realized.

Like Paul I suggest you to update you project with the branche 14.12 or
15.12 directly from the source:
http://ofbiz.apache.org/source-repositories.html

Nicolas

Le 21/06/2016 16:57, Justin Robinson a écrit :

> Profiling in jprofiler, using jmeter headless test on large test server,
> running customized ofbiz 10.4 (no customizations in this area though) ...
> 200 simultaneous users; 4 on each of 50 tenants that's where problems start
> to occur.
>
> Response times for page requests get very slow up to 15 seconds with 100
> users, 2 per tenant over 50 tenants.
>
>
> With 200 users I see 199 threads blocked and 1 running, this results in all
> the requests timing out.
>
>
> I am new to jprofiler but it looks like it is related to on
> FreeMarkerWorker.renderTemplate the monitor where the deadlock is named
>
> org.apache.commons.pool.impl.GenericObjectPool
>