freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dekany (JIRA)" <>
Subject [jira] [Resolved] (FREEMARKER-80) Performance bottleneck (from profiling)
Date Thu, 05 Apr 2018 11:51:00 GMT


Daniel Dekany resolved FREEMARKER-80.
    Resolution: Fixed

The concrete bottleneck that was reported was fixed. As there was no feedback about later
performance issues, I close this.

> Performance bottleneck (from profiling)
> ---------------------------------------
>                 Key: FREEMARKER-80
>                 URL:
>             Project: Apache Freemarker
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 2.3.26-incubating
>         Environment: Linux, Java 8
>            Reporter: Shevek
>            Priority: Major
> Major performance bottleneck running on a 32-core system, limits effective number of
threads to about 6: PropertyDescriptor.getReadMethod() is synchronized, and blocks other threads.
Partial stack follows:
> java.beans.PropertyDescriptor.getReadMethod()
> BeanModel.invokeThroughDescriptor()
> BeanModel.get()
> Dot._eval()
> I suspect there's a workaround with using a method call directly in the FTL template,
but I haven't figured it out yet. However, this is killing our performance. With Velocity,
at the cost of a slower renderer, we can run all 32 cores, and get the job done faster.
> I'm not entirely sure how to figure out which piece of FTL is causing this stack.

This message was sent by Atlassian JIRA

View raw message