diff --git a/cmd/geth/main.go b/cmd/geth/main.go index ac7fc4b0648..46e7e986956 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -42,10 +42,6 @@ import ( "github.com/ledgerwatch/turbo-geth/log" "github.com/ledgerwatch/turbo-geth/metrics" "github.com/ledgerwatch/turbo-geth/node" - - "net/http" - //nolint:gosec - _ "net/http/pprof" ) const ( @@ -263,9 +259,6 @@ func init() { } func main() { - go func() { - log.Info("HTTP", "error", http.ListenAndServe("localhost:6060", nil)) - }() if err := app.Run(os.Args); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) diff --git a/eth/stagedsync/stage_execute.go b/eth/stagedsync/stage_execute.go index d49f36aea4b..ca908eb3fe4 100644 --- a/eth/stagedsync/stage_execute.go +++ b/eth/stagedsync/stage_execute.go @@ -112,14 +112,6 @@ func SpawnExecuteBlocksStage(s *StageState, stateDB ethdb.Database, chainConfig if blockNum-s.BlockNumber == 100000 { // Flush the CPU profiler pprof.StopCPUProfile() - - // And the memory profiler - f, _ := os.Create(fmt.Sprintf("mem-%d.prof", s.BlockNumber)) - runtime.GC() - if err = pprof.WriteHeapProfile(f); err != nil { - log.Error("could not save memory profile", "error", err) - } - f.Close() } }