Skip to content
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

Slow screen loading and high CPU usage in case of many components #3053

Closed
Ilya-c opened this issue Oct 5, 2020 · 1 comment
Closed

Slow screen loading and high CPU usage in case of many components #3053

Ilya-c opened this issue Oct 5, 2020 · 1 comment
Assignees
Labels
state: fixed Fixed by the developer type: performance ver: 7.2.9 Fixed in version ver: 7.3.0 Fixed in version
Milestone

Comments

@Ilya-c
Copy link
Contributor

Ilya-c commented Oct 5, 2020

Environment

  • Platform version: 7.2-SNAPSHOT

Description of the bug or enhancement

Our project has editor screens with many components: labels, text fields etc. Currently we have big performance problems with opening such screens.
Root of the problem is autowiring web components to the spring context, introduced in the ticket #1351

For example in our case method WebUiComponents#create() is executed approx. 300 times (which leads to the autowiring 300 beans - WebUiComponents#autowireContext) during the screen components loading, increasing time by 714 ms according to the perfstat logs and visualVm:
image

Also to prove that this is a huge problem for us, i've attached a .nps snapshot (autowireProblem.zip captured using jvisualvm) from the test environment during performance test execution (opening main window and editor multiple times with several threads were performed).

In this snapshot you can see that the 6 sec from the 12 (snapshot time) cpu is spend executing create() method
image

@knstvk knstvk added this to the Release 7.2 milestone Oct 5, 2020
@glebfox glebfox assigned glebfox and unassigned t1-cuba Oct 5, 2020
@andreysubbotin
Copy link
Contributor

andreysubbotin commented Oct 7, 2020

Performance bug in spring framework:

spring-projects/spring-framework#24485
spring-projects/spring-framework#23905
spring-projects/spring-framework#24980

Update Spring version to 5.2.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: fixed Fixed by the developer type: performance ver: 7.2.9 Fixed in version ver: 7.3.0 Fixed in version
Projects
None yet
Development

No branches or pull requests

6 participants