[MGNLLIC-87] Reduce calls of synchronized methods in LicenceManager (backport for Magnolia 5.7.x) Created: 10/Feb/22 Updated: 10/Feb/22 Resolved: 10/Feb/22 |
|
| Status: | Closed |
| Project: | Magnolia License |
| Component/s: | Checker |
| Affects Version/s: | 1.5.1, 1.6 |
| Fix Version/s: | 1.6.3 |
| Type: | Task | Priority: | Neutral |
| Reporter: | Federico Grilli | Assignee: | Federico Grilli |
| Resolution: | Done | Votes: | 0 |
| Labels: | maintenance, performance | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Template: |
|
||||
| Acceptance criteria: |
Empty
|
||||
| Task DoR: |
Empty
|
||||
| Description |
|
We found that under heavy load threads get blocked through LicenseManager.getLicenseStatus() callĀ as it is a synchronized method. It was also found that this method is called: 1. once per request in the RegistrationFilter Additionally the synchronized method calls System.getTimeMillis(), which also is expensive. |