Java Lock Contention Anti-Patterns and Their Associated Recommendations
Locks play a crucial role in Java-based multi-threaded applications, offering an effective solution for synchronizing shared resources. Yet, mishandling locks and threads can result in contention, leading to performance deterioration and compromising the scalability of Java applications. After conducting a thorough background study from various sources, we have identified and defined eight Java lock contention antipatterns. These antipatterns comprehensively represent the diverse scenarios of lock contention within intrinsic locks. Currently, performance engineers use legacy tools and their experience to identify and locate the source of these lock contention faults. In this study, several machine learning algorithms were evaluated based on their capability to identify the lock contention anti-pattern as the source of the lock contention. When the algorithms were trained and tested with a 70-30 split we got 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 antipatterns.
Mon 27 MayDisplayed time zone: Eastern Time (US & Canada) change
14:00 - 15:30 | |||
14:00 30mFull-paper | A Survey on the Verification and Validation of Artificial Pancreas Software Systems ITEQS Bara' Nazzal Queen's University, Canada, Manar Alalfi Toronto Metropolitan University, James Cordy Queen's University, Canada | ||
14:30 30mFull-paper | ConDU: Method for On-the-fly Detection of Non-deadlock Concurrency Errors in UAV Software ITEQS Jinseok Park Gyeongsang National University, Changhui Bae Gyeongsang National University, Seongjin Lee Gyeongsang National Unviersity | ||
15:00 30mFull-paper | Java Lock Contention Anti-Patterns and Their Associated Recommendations ITEQS Aritra Ahmed Ontario Tech University, Ramiro Liscano Ontario Tech University, Akramul Azim Ontario Tech University, Yee-Kang Chang International Business Machines Corporation (IBM), Vijay Sundaresan IBM Canada |