Identification of Java lock contention anti-patterns based on run-time performance data using machine learning algorithms

dc.contributor.advisorLiscano, Ramiro
dc.contributor.advisorAzim, Akramul
dc.contributor.authorAhmed, Aritra
dc.date.accessioned2024-06-11T18:51:28Z
dc.date.available2024-06-11T18:51:28Z
dc.date.issued2024-02-01
dc.degree.disciplineElectrical and Computer Engineering
dc.degree.levelMaster of Applied Science (MASc)
dc.description.abstractLocks are critical in concurrent Java applications, ensuring synchronized access to shared resources. Mismanagement of locks and threads can result in contention, affecting performance and scalability. Eight Java lock contention anti-patterns have been identified, representing various scenarios of lock contention within intrinsic locks. Traditional methods for identifying these faults rely on legacy tools and experience. This study evaluates machine learning algorithms’ effectiveness in detecting lock contention anti-patterns. When the algorithms were trained and tested with a 70-30 split we obtained an accuracy above 90%. To validate the findings we used the Dacapo benchmark as the testing set and found XGBoost performing well among the rest with an overall accuracy of 87%. Logistic Regression, Random Forest and Support Vector Machine were the best performing models in terms of precision and recall values. We also validated our recommendations provided by comparing three important performance metrics between the original and refactored version of the anti-patterns.
dc.description.sponsorshipUniversity of Ontario Institute of Technology
dc.identifier.urihttps://ontariotechu.scholaris.ca/handle/10155/1767
dc.language.isoen
dc.subject.otherJava
dc.subject.otherLock contention
dc.subject.otherRun-time faults
dc.subject.otherAnti-patterns
dc.subject.otherPerformance metrics
dc.titleIdentification of Java lock contention anti-patterns based on run-time performance data using machine learning algorithms
dc.typeThesis
dc.typeThesisen
thesis.degree.disciplineElectrical and Computer Engineering
thesis.degree.grantorUniversity of Ontario Institute of Technology
thesis.degree.nameMaster of Applied Science (MASc)

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Ahmed_Aritra.pdf
Size:
1.6 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
1.92 KB
Format:
Item-specific license agreed upon to submission
Description: