[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-2477) Time spent in org.mvel2.integration.impl.ClassImportResolverFactory constructor causing transaction timeouts

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Tue Jun 15 21:11:46 EDT 2010


     [ https://jira.jboss.org/browse/JBRULES-2477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edson Tirelli resolved JBRULES-2477.
------------------------------------

    Resolution: Duplicate Issue


> Time spent in org.mvel2.integration.impl.ClassImportResolverFactory constructor causing transaction timeouts
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-2477
>                 URL: https://jira.jboss.org/browse/JBRULES-2477
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core
>    Affects Versions: 5.0.0.FINAL
>            Reporter: Sam Doyle
>            Assignee: Edson Tirelli
>            Priority: Critical
>
> We have hit a critical bottleneck in our application as a result of attempting to execute rules on more facts then we have in the past.
> I didn't think it was Drools at first but after profiling it is pretty evident that it is.
> The callgraph is showing 560s in org.mvel2.integration.impl.ClassImportResolverFactory constructor and 152530 calls.
> This also translates into org.mvel2.integration.impl.SimpleValueResolver constructor 18,454,778 calls for my present case.
> This is being invoked from the following in CompiledExpression:
>  public Object getValue(Object staticContext, VariableResolverFactory factory) {
>         if (!optimized) setupOptimizers();
>         if (importInjectionRequired) {
>             return execute(false, this, staticContext, new ClassImportResolverFactory(parserContext.getParserConfiguration(), factory));
>         }
> Where importInjectionRequired is almost always going to be true because of:
>  public void setParserContext(ParserContext parserContext) {
>         if ((this.parserContext = parserContext) != null) {
>             this.importInjectionRequired =
>                     parserContext.getImports() != null && parserContext.getImports().size() != 0;
>         }
>     }
> The parsercontext.imports seems to be always greater then 0 and to make matters worse I'm seeing a new Factory not only being created per rule but for the same rule multiple times.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list