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