-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance-Analysis of Camunda Process Engine #19
Comments
I analyzed this with inspectIT: https://github.com/inspectIT/inspectIT/releases Starting the process engine takes about 5,5 seconds on my laptop. Of that time MyBatis already needs 3,5 seconds to parse the XML mappings. Camunda needs 53 mappings - some of them need several hundred milliseconds to parse and this then sums up to multiple seconds. Camunda 7.13.0-alpha4 still has the same issue. Here is a good introduction on Camunda and its usage of MyBatis: https://docs.camunda.org/manual/7.7/examples/tutorials/custom-queries/ Here are the invocation sequences as recorded by inspectIT: |
…ving all unneeded mappers. This is not a solution but shows that the mappers are the problem. Note: setting lazyLoadingEnabled=true does not seem to have any influence.
I pushed a commit to the branch https://github.com/tobiasschaefer/micronaut-camunda-bpm/tree/issue19-startup-time
Note: lazyLoadingEnabled is not related to loading of the mappings but to the relations between entities: https://mybatis.org/mybatis-3/configuration.html I think we need to find a way to reduce the number of mappers loaded on startup or initialize them in parallel. |
Here is MyBatis together with GraalVM: mybatis/mybatis-3#1552 |
Starting the Camunda process engine takes a few seconds. Let's analyze what is taking so long using e.g. inspectIT.
The text was updated successfully, but these errors were encountered: