Continuously Measuring Critical Section Pressure with the Free Lunch Profiler

Today, Java is regularly used to implement large multi-threaded server-class ap- plications, whose scalability could be hampered by the execution of critical sections. Profiling is needed to identify critical sections that are problematic. However, profiling such applications is challenging, due to their long running times and the range of possible runtime conditions. We propose Free Lunch, a new profiler designed to identify locks and critical sections that hamper scalability. Free Lunch is designed around a new metric, critical section pressure, and can be used in-vivo, while the application is run by end-users. Using Free Lunch, we have identified a contention phase in the distributed Cassandra NoSQL database and in several applications from the DaCapo benchmark suite. On the latter, we were able to improve the performance of the Xalan benchmark by 15%. In an evaluation on over thirty applications, we found that the overhead of Free Lunch is never greater than 6%.

Data and Resources

Additional Info

Field Value
Source https://inria.hal.science/hal-00957154
Author David, Florian, Thomas, Gaël, Lawall, Julia, Muller, Gilles
Maintainer CCSD
Last Updated May 6, 2026, 02:36 (UTC)
Created May 6, 2026, 02:36 (UTC)
Identifier Report N°: RR-8486
Language en
Rights https://about.hal.science/hal-authorisation-v1/
contributor Well Honed Infrastructure Software for Programming Environments and Runtimes (Whisper) ; Laboratoire d'Informatique de Paris 6 (LIP6) ; Université Pierre et Marie Curie - Paris 6 (UPMC)-Centre National de la Recherche Scientifique (CNRS)-Université Pierre et Marie Curie - Paris 6 (UPMC)-Centre National de la Recherche Scientifique (CNRS)-Inria Paris-Rocquencourt ; Institut National de Recherche en Informatique et en Automatique (Inria)-Institut National de Recherche en Informatique et en Automatique (Inria)
creator David, Florian
date 2014-03-09T00:00:00
harvest_object_id 1334961a-c9be-4968-b51a-0b18febcb191
harvest_source_id 3374d638-d20b-4672-ba96-a23232d55657
harvest_source_title test moissonnage SELUNE
metadata_modified 2025-10-27T00:00:00
set_spec type:REPORT