Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-239

Consider removing `go` based pprof runs from sgcollect_info

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • 2.6.0
    • None
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 13, CBG Sprint 14, CBG Sprint 15
    • 3

    Description

      Anecdotally, I've never seen these run successfully as it's generally not the norm to have go installed directly on prod deployments.

      $ cat heap.*
      ==============================================================================
      Running go tool pprof -- which can take several seconds: heap format: dot
      go tool pprof -dot -seconds=5 "/opt/couchbase-sync-gateway/bin/sync_gateway" http://127.0.0.1:4985/_debug/pprof/heap
      ==============================================================================
      /bin/sh: go: command not found
      ==============================================================================
      Running go tool pprof -- which can take several seconds: heap format: pdf
      go tool pprof -pdf -seconds=5 "/opt/couchbase-sync-gateway/bin/sync_gateway" http://127.0.0.1:4985/_debug/pprof/heap
      ==============================================================================
      /bin/sh: go: command not found
      ==============================================================================
      Running go tool pprof -- which can take several seconds: heap format: raw
      go tool pprof -raw -seconds=5 "/opt/couchbase-sync-gateway/bin/sync_gateway" http://127.0.0.1:4985/_debug/pprof/heap
      ==============================================================================
      /bin/sh: go: command not found
      ==============================================================================
      Running go tool pprof -- which can take several seconds: heap format: text
      go tool pprof -text -seconds=5 "/opt/couchbase-sync-gateway/bin/sync_gateway" http://127.0.0.1:4985/_debug/pprof/heap
      ==============================================================================
      /bin/sh: go: command not found
      

      There's also the matter of duplication - rather than outputting multiple formats, we can just generate what's needed after the fact.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jacques.rascagneres Jacques Rascagneres
            James Flather James Flather (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty