Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laysakura/springql-mem-leak
https://github.com/laysakura/springql-mem-leak
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/laysakura/springql-mem-leak
- Owner: laysakura
- Created: 2022-07-11T04:50:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-11T23:53:05.000Z (over 2 years ago)
- Last Synced: 2024-04-15T12:50:13.912Z (7 months ago)
- Language: C
- Size: 18.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fix high CPU usage
## Visualize in a frame graph
```console
./update-libspringql_client.sh 'v0.16.0+3'
``````console
./build-run.sh # run main.c
``````console
top # check CPU usage
```See:
```console
perf record -g -F100000 -p $(pidof a.out)
perf script > perf_data.txt
perl stackcollapse-perf.pl perf_data.txt|perl flamegraph.pl --width 5000 --title "Flame Graphs - ./a.out" > flamegraph_aout.svg
```## Thoughts
- SourceWorker consumes about 70% of CPU when no source row is incoming.