2019 · IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW)
Automatic Cause Detection of Performance Problems in Web Applications
Evidence basis: full-text-reviewed · Review status: catalog-reviewed; paper-author approval pending
kernel-tracing web-performance anomaly-detection root-cause-analysis
web requests user-space tracing kernel-space tracing outlier detection behavior clustering PHP cache contention
Core contribution: The paper presents a tracing and analysis pipeline that detects slow web requests and groups them by internal execution behavior to expose likely causes.
Abstract
The execution of similar units can be compared by their internal behaviors to determine the causes of their potential performance issues. For instance, by examining the internal behaviors of different fast or slow web requests more closely and by clustering and comparing their internal executions, one can determine what causes some requests to run slowly or behave in unexpected ways. In this paper, we propose a method of extracting the internal behavior of web requests as well as introduce a pipeline that detects performance issues in web requests and provides insights into their root causes. First, low-level and fine-grained information regarding each request is gathered by tracing both the user space and the kernel space. Second, further information is extracted and fed into an outlier detector. Finally, these outliers are then clustered by their behavior, and each group is analyzed separately. Experiments revealed that this pipeline is indeed able to detect slow web requests and provide additional insights into their true root causes. Notably, we were able to identify a real PHP cache contention using the proposed approach.
Source: arXiv:2103.04954 abstract; public preprint version
Problem and motivation
Aggregate response time and conventional profilers do not distinguish the different internal causes of anomalous web requests.
Method and contribution
Follow interacting request threads with PHP and kernel LTTng traces, derive sequence/count/duration state features, detect outliers with DBSCAN or Isolation Forest, cluster outliers with K-means, and inspect clusters with Isomap and n-grams.
Findings and evidence
Duration-oriented features expose materially slower request groups; cluster analysis links groups to repeated connect behavior and OPcache shared-memory cache contention. Minimal tracing reduces overhead substantially relative to full user/kernel tracing.
Limitations and future directions
Limitations: DBSCAN parameters are manually selected; non-outliers are treated as normal even though they may contain anomalies; evaluation is one WordPress/PHP setup; full tracing is costly; the analysis pipeline is not fully parallelized except where the cited sklearn implementations support it.
Future work: Compare sequence-specific methods such as HMM and SEQDBSCAN, and extend cluster analysis to CCT/ECCT representations.
Sources and identifiers
- Published version published
- Public preprint · PDF public_full_text
- arXiv version arXiv 2103.04954
When to cite this paper
Cite this paper when your work uses or compares request-level causal anomaly detection using LTTng state/sequence/duration features rather than response time alone.
- For request-level causal anomaly detection using LTTng state/sequence/duration features rather than response time alone.
- For the DBSCAN-to-K-means analysis that separates anomalous WordPress/PHP request groups and connects them to concrete syscall/OPcache behavior.
- For the reported 29.6% full-tracing versus 5.1% minimal-tracing slowdown tradeoff.
- For an ApacheBench/WordPress workload with approximately 50,000 requests and 1-1,000 clients used to validate trace-derived web-performance diagnosis.
Citation
@inproceedings{ezzatiJivan2019automaticcause,
author = {Quentin Fournier and Naser Ezzati-Jivan and Daniel Aloise and Michel R. Dagenais},
title = {Automatic Cause Detection of Performance Problems in Web Applications},
year = {2019},
booktitle = {IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW)},
pages = {398-405},
publisher = {IEEE},
doi = {10.1109/ISSREW.2019.00102},
url = {https://doi.org/10.1109/ISSREW.2019.00102}
}Other citation formats for Word and reference managers
Fournier, Q., Ezzati-Jivan, N., Aloise, D., & Dagenais, M. R. (2019). Automatic Cause Detection of Performance Problems in Web Applications. In IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW) (pp. 398-405). https://doi.org/10.1109/ISSREW.2019.00102Q. Fournier, N. Ezzati-Jivan, D. Aloise, and M. R. Dagenais, "Automatic Cause Detection of Performance Problems in Web Applications," in IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW), pp. 398-405, 2019, doi: 10.1109/ISSREW.2019.00102