Project

General

Profile

Actions

Feature #16120

closed

[arvados-server] Add profiling flag to service components

Added by Tom Clegg about 6 years ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
-
Release:
Release relationship:
Auto

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

Actions #1

Updated by Tom Clegg about 6 years ago

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

Updated by Peter Amstutz about 3 years ago

  • Release set to 60
Actions #3

Updated by Peter Amstutz about 2 years ago

  • Target version set to Future
Actions #4

Updated by Tom Clegg 5 months ago

  • Assigned To set to Tom Clegg
  • Status changed from New to In Progress
Actions #5

Updated by Tom Clegg 5 months ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF