Opened 8 years ago
Closed 8 years ago
#1530 closed enhancement (fixed)
Support gperftools in rasserver
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 (last modified by )
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
Change History (2)
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.