Feature #16120

[arvados-server] Add profiling flag to service components

Added by Tom Clegg over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

All Go services should support profiling mode, in which go tool pprof -top $host:$port/debug/pprof/heap snapshots/displays the process's current memory usage.

This will make it much easier to investigate memory and performance issues (e.g., there might be easy ways to make keep-balance use less memory).

Profiling should be enabled with environment variable (this is easy to set with systemctl edit), so

ARVADOS_PPROF=:6060 keepstore

will cause keepstore to serve profile data on port 6060.

Example (but implemented as a command line flag) in arvados-client mount: 315e9b521f97a408e3bc079d6f7e5f110cbf70a9

History

#1 Updated by Tom Clegg over 2 years ago

  • Subject changed from [arvados-server] Add -pprof flag to service components to [arvados-server] Add profiling flag to service components

Also available in: Atom PDF