Opened 8 years ago
Last modified 8 years ago
#1530 closed enhancement
Support gperftools in rasserver — at Initial Version
Reported by: | Dimitar Misev | Owned by: | Dimitar Misev |
---|---|---|---|
Priority: | major | Milestone: | 9.4 |
Component: | rasserver | Version: | development |
Keywords: | Cc: | bbell, Vlad Merticariu | |
Complexity: | Medium |
Description
gperftools provide CPU and HEAP use/check profilers. It would be good to make them optionally active in rasserver.
To turn on use cmake option -DENABLE_PROFILING=ON
This will link in the tcmalloc and profiler libs, and activate code in source:servercomm/servercomm2.cc that on SELECT / INSERT / UPDATE queries produces the following files (XXXXXX is a random string):
- /tmp/rasdaman_query_select.XXXXXX.pprof
- /tmp/rasdaman_query_select.XXXXXX.pprof.000n.heap
- /tmp/rasdaman_query_insert.XXXXXX.pprof
- /tmp/rasdaman_query_insert.XXXXXX.pprof.000n.heap
- /tmp/rasdaman_query_update.XXXXXX.pprof
- /tmp/rasdaman_query_update.XXXXXX.pprof.000n.heap
.pprof
files are CPU profiling results, and .heap
are the HEAP memory profiling results. These files can be analyzed with pprof
, e.g:
`
pprof —gv $RMANHOME/bin/rasserver /tmp/rasdaman_query_select.XXXXXX.0022.heap
`