diff --git a/cmd/ingestor/main.go b/cmd/ingestor/main.go index af08e2db..a16e2b3d 100644 --- a/cmd/ingestor/main.go +++ b/cmd/ingestor/main.go @@ -30,7 +30,9 @@ func main() { } go func() { log.Printf("[pprof] ingestor profiling at http://localhost:%s/debug/pprof/", pprofPort) - log.Fatal(http.ListenAndServe(":"+pprofPort, nil)) + if err := http.ListenAndServe(":"+pprofPort, nil); err != nil { + log.Printf("[pprof] failed to start: %v (non-fatal)", err) + } }() } diff --git a/cmd/server/main.go b/cmd/server/main.go index 7c14a0f4..e8d2d8b4 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -63,7 +63,9 @@ func main() { } go func() { log.Printf("[pprof] profiling UI at http://localhost:%s/debug/pprof/", pprofPort) - log.Fatal(http.ListenAndServe(":"+pprofPort, nil)) + if err := http.ListenAndServe(":"+pprofPort, nil); err != nil { + log.Printf("[pprof] failed to start: %v (non-fatal)", err) + } }() } diff --git a/docker-compose.yml b/docker-compose.yml index 9136d67c..8a474c58 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -67,7 +67,6 @@ services: environment: - NODE_ENV=staging - ENABLE_PPROF=true - - PPROF_PORT=6060 healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/stats"] interval: 30s