All Projects → parca-dev → parca

parca-dev / parca

Licence: Apache-2.0 license
Continuous profiling for analysis of CPU and memory usage, down to the line number and throughout time. Saving infrastructure cost, improving performance, and increasing reliability.

Programming Languages

typescript
32286 projects
go
31211 projects - #10 most used programming language
javascript
184084 projects - #8 most used programming language
Jsonnet
166 projects
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to parca

parca-agent
eBPF based always-on profiler auto-discovering targets in Kubernetes and systemd, zero code changes or restarts needed!
Stars: ✭ 250 (-91.18%)
Mutual labels:  systemd, profiling, observability, pprof, continuous-profiling
Pyroscope
Continuous Profiling Platform! Debug performance issues down to a single line of code
Stars: ✭ 4,816 (+69.94%)
Mutual labels:  profiling, observability, continuous-profiling
profiler
Continuous profiling based on pprof
Stars: ✭ 221 (-92.2%)
Mutual labels:  profiling, pprof, continuous-profiling
Conprof
Continuous profiling for performance analysis of CPU, memory over time.
Stars: ✭ 571 (-79.85%)
Mutual labels:  profiling, observability
Myperf4j
High performance Java APM. Powered by ASM. Try it. Test it. If you feel its better, use it.
Stars: ✭ 2,281 (-19.51%)
Mutual labels:  profiling, observability
modern-linux.info
Learning Modern Linux book website
Stars: ✭ 35 (-98.76%)
Mutual labels:  systemd, observability
sicherboot
Unmaintained systemd-boot integration with secure boot support; consider https://github.com/Foxboron/sbctl instead.
Stars: ✭ 31 (-98.91%)
Mutual labels:  systemd
nspawn
Containers with systemd-nspawn
Stars: ✭ 19 (-99.33%)
Mutual labels:  systemd
squashmount
Init and management script for mounting rewritable squashfs-compressed data
Stars: ✭ 40 (-98.59%)
Mutual labels:  systemd
golden
a benchmark for compile-time and/or runtime Nim 🏆
Stars: ✭ 28 (-99.01%)
Mutual labels:  profiling
ocaml-tracy
Bindings to the Tracy profiler
Stars: ✭ 21 (-99.26%)
Mutual labels:  profiling
ruby-sdnotify
A pure-Ruby implementation of systemd's sd_notify(3)
Stars: ✭ 46 (-98.38%)
Mutual labels:  systemd
PHPench
Realtime benchmarks for PHP code
Stars: ✭ 53 (-98.13%)
Mutual labels:  profiling
ansible-role-systemd-service
No description or website provided.
Stars: ✭ 37 (-98.69%)
Mutual labels:  systemd
aws-codeguru-profiler-demo-application
Example application demonstrating the features of Amazon CodeGuru Profiler
Stars: ✭ 21 (-99.26%)
Mutual labels:  profiling
mpv-scripts
A collection of scripts for mpv player
Stars: ✭ 138 (-95.13%)
Mutual labels:  profiles
kube-profefe
continuous profiling made easy in Kubernetes with profefe
Stars: ✭ 78 (-97.25%)
Mutual labels:  pprof
KubeCube
KubeCube is an open source enterprise-level container platform
Stars: ✭ 355 (-87.47%)
Mutual labels:  observability
observable-profiler
Tracks new & disposed Observable subscriptions
Stars: ✭ 41 (-98.55%)
Mutual labels:  profiling
cov
An emacs extension for displaying coverage data on your code
Stars: ✭ 65 (-97.71%)
Mutual labels:  profiling

contributors Discord

Parca: Continuous profiling for analysis of CPU, memory usage over time, and down to the line number.

Continuous profiling for analysis of CPU, memory usage over time, and down to the line number. Saving infrastructure cost, improving performance, and increasing reliability.

Screenshot of Parca

Features

  • eBPF Profiler: A single profiler, using eBPF, automatically discovering targets from Kubernetes or systemd across the entire infrastructure with very low overhead. Supports C, C++, Rust, Go, and more!

  • Open Standards: Both producing pprof formatted profiles with the eBPF based profiler, and ingesting any pprof formatted profiles allowing for wide language adoption and interoperability with existing tooling.

  • Optimized Storage & Querying: Efficiently storing profiling data while retaining raw data and allowing slicing and dicing of data through a label-based search. Aggregate profiling data infrastructure wide, view single profiles in time or compare on any dimension.

Why?

  • Save Money: Many organizations have 20-30% of resources wasted with easily optimized code paths. The Parca Agent aims to lower the entry bar by requiring 0 instrumentation for the whole infrastructure. Deploy in your infrastructure and get started!
  • Improve Performance: Using profiling data collected over time, Parca can with confidence and statistical significance determine hot paths to optimize. Additionally it can show differences between any label dimension, such as deploys, versions, and regions.
  • Understand Incidents: Profiling data provides unique insight and depth into what a process executed over time. Memory leaks, but also momentary spikes in CPU or I/O causing unexpected behavior, is traditionally difficult to troubleshoot are a breeze with continuous profiling.

Feedback & Support

If you have any feedback, please open a discussion in the GitHub Discussions of this project. We would love to learn what you think!

Installation & Documentation

Check Parca's website for updated and in-depth installation guides and documentation!

parca.dev

Development

You need to have Go, Node and Yarn installed.

Clone the project

git clone https://github.com/parca-dev/parca.git

Go to the project directory

cd parca

Build the UI and compile the Go binaries

make build

Running the compiled Parca binary

The binary was compiled to bin/parca .

./bin/parca

Now Parca is running locally and its web UI is available on http://localhost:7070/.

By default Parca is scraping it's own pprof endpoints and you should see profiles show up over time. The scrape configuration can be changed in the parca.yaml in the root of the repository.

Configuration

Flags:

Usage: parca

Flags:
  -h, --help                    Show context-sensitive help.
      --config-path="parca.yaml"
                                Path to config file.
      --mode="all"              Scraper only runs a scraper that sends to a
                                remote gRPC endpoint. All runs all components.
      --http-address=":7070"    Address to bind HTTP server to.
      --port=""                 (DEPRECATED) Use http-address instead.
      --log-level="info"        Log level.
      --log-format="logfmt"     Configure if structured logging as JSON or as
                                logfmt
      --cors-allowed-origins=CORS-ALLOWED-ORIGINS,...
                                Allowed CORS origins.
      --otlp-address=STRING     OpenTelemetry collector address to send traces
                                to.
      --version                 Show application version.
      --path-prefix=""          Path prefix for the UI
      --mutex-profile-fraction=0
                                Fraction of mutex profile samples to collect.
      --block-profile-rate=0    Sample rate for block profile.
      --enable-persistence      Turn on persistent storage for the metastore and
                                profile storage.
      --storage-granule-size=26265625
                                Granule size in bytes for storage.
      --storage-active-memory=536870912
                                Amount of memory to use for active storage.
                                Defaults to 512MB.
      --storage-path="data"     Path to storage directory.
      --storage-enable-wal      Enables write ahead log for profile storage.
      --storage-row-group-size=8192
                                Number of rows in each row group during
                                compaction and persistence. Setting to <= 0
                                results in a single row group per file.
      --symbolizer-demangle-mode="simple"
                                Mode to demangle C++ symbols. Default mode
                                is simplified: no parameters, no templates,
                                no return type
      --symbolizer-number-of-tries=3
                                Number of tries to attempt to symbolize an
                                unsybolized location
      --debuginfo-cache-dir="/tmp"
                                Path to directory where debuginfo is cached.
      --debuginfo-upload-max-size=1000000000
                                Maximum size of debuginfo upload in bytes.
      --debuginfo-upload-max-duration=15m
                                Maximum duration of debuginfo upload.
      --debuginfo-uploads-signed-url
                                Whether to use signed URLs for debuginfo
                                uploads.
      --debuginfod-upstream-servers=https://debuginfod.elfutils.org,...
                                Upstream debuginfod servers. Defaults to
                                https://debuginfod.elfutils.org. It is an
                                ordered list of servers to try. Learn more at
                                https://sourceware.org/elfutils/Debuginfod.html
      --debuginfod-http-request-timeout=5m
                                Timeout duration for HTTP request to upstream
                                debuginfod server. Defaults to 5m
      --metastore="badger"      Which metastore implementation to use
      --profile-share-server="api.pprof.me:443"
                                gRPC address to send share profile requests to.
      --store-address=STRING    gRPC address to send profiles and symbols to.
      --bearer-token=STRING     Bearer token to authenticate with store.
      --bearer-token-file=STRING
                                File to read bearer token from to authenticate
                                with store.
      --insecure                Send gRPC requests via plaintext instead of TLS.
      --insecure-skip-verify    Skip TLS certificate verification.
      --external-label=KEY=VALUE;...
                                Label(s) to attach to all profiles in
                                scraper-only mode.

Credits

Parca was originally developed by Polar Signals. Read the announcement blog post: https://www.polarsignals.com/blog/posts/2021/10/08/introducing-parca-we-got-funded/

Contributing

Check out our Contributing Guide to get started! It explains how compile Parca, run it with Tilt as container in Kubernetes and send a Pull Request.

Contributors

Thanks goes to these wonderful people (emoji key):

Frederic Branczyk
Frederic Branczyk

💻 📖 🚇
Thor
Thor

💻 📖 🚇
Matthias Loibl
Matthias Loibl

💻 📖 🚇
Kemal Akkoyun
Kemal Akkoyun

💻 📖
Sumera Priyadarsini
Sumera Priyadarsini

💻 📖
Jéssica Lins
Jéssica Lins

📖
Holger Freyther
Holger Freyther

💻
Sergiusz Urbaniak
Sergiusz Urbaniak

🚇
Paweł Krupa
Paweł Krupa

🚇
Ben Ye
Ben Ye

💻 🚇
Felix
Felix

💻 📖 🚇
Christian Bargmann
Christian Bargmann

💻
Yomi Eluwande
Yomi Eluwande

💻 📖
Manoj Vivek
Manoj Vivek

💻 📖
Monica Wojciechowska
Monica Wojciechowska

💻 📖
Manuel Rüger
Manuel Rüger

🚇
Avinash Upadhyaya K R
Avinash Upadhyaya K R

💻
Ikko Ashimine
Ikko Ashimine

💻
Maxime Brunet
Maxime Brunet

💻 🚇
rohit
rohit

💻
Ujjwal Goyal
Ujjwal Goyal

📖
Javier Honduvilla Coto
Javier Honduvilla Coto

💻
Marsel Mavletkulov
Marsel Mavletkulov

💻
Kautilya Tripathi
Kautilya Tripathi

💻
Jon Seager
Jon Seager

💻
Philip Gough
Philip Gough

💻
Boran Seref
Boran Seref

💻
Wen Long
Wen Long

💻
cui fliter
cui fliter

📖
Alfonso Subiotto Marqués
Alfonso Subiotto Marqués

💻
TomHellier
TomHellier

💻
Stefan VanBuren
Stefan VanBuren

💻
Carlos Tadeu Panato Junior
Carlos Tadeu Panato Junior

🚇
Daniel (Shijun) Qian
Daniel (Shijun) Qian

💻
Alex Vest
Alex Vest

📖
Shubham Palriwala
Shubham Palriwala

💻
Fabian Reinartz
Fabian Reinartz

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].