Forum Discussion

FICO's avatar
FICO
Community Manager
16 years ago

Performance issues in Multithreaded environment

Performance issues in Multithreaded environment

We are having a performance problem when we increase the number of threads in our application. The time taken to process a message, increases  when we increase thenumber of threads in our java application and increase in time is mainly in the Blaze component (roughly from 5 sec to 40 secs).Does anyone know if we need to set up any specific configuration in Blaze for multi threading. We are using Blaze Advisor 5.1and Java 1.5.

1 Reply

  • FICO's avatar
    FICO
    Community Manager

    Have you measured wall clock time or processing time for the rules service? A 5 to 40 seconds increase suggests latency/context switching in your service invocation... 

    Does your rule service communicate with other resources as part of the rules processing? I.e. is your rule service a standalone component, or does it depend on/communicate with a database/web service/some other external component?

    How many agents are configured/how do you deploy your rule services? 

    I don't think there is any magic to making Blaze Advisor perform well in a multi threaded environment, other than the same principles you would use for other components. To reduce contention is probably the most important one. Also, one rule of thumb for non-ejb, asynchronous, non-latency services is that the number of configured rule agents should equal (number of CPUs or cores) + 2.

    Regards, 

    Jostein