Skip to content

Commit

Permalink
Merge pull request #939 from jimmidyson/disable-tcp-stats
Browse files Browse the repository at this point in the history
Disable tcp stats collection
  • Loading branch information
jimmidyson committed Oct 22, 2015
2 parents 4a20353 + 8b6e002 commit 81aa0d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions container/libcontainer/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ func GetStats(cgroupManager cgroups.Manager, rootFs string, pid int) (*info.Cont
stats.Network.Interfaces = append(stats.Network.Interfaces, netStats...)
}

t, err := tcpStatsFromProc(rootFs, pid, "net/tcp")
// Commenting out to disable: too CPU intensive
/*t, err := tcpStatsFromProc(rootFs, pid, "net/tcp")
if err != nil {
glog.V(2).Infof("Unable to get tcp stats from pid %d: %v", pid, err)
} else {
Expand All @@ -110,7 +111,7 @@ func GetStats(cgroupManager cgroups.Manager, rootFs string, pid int) (*info.Cont
glog.V(2).Infof("Unable to get tcp6 stats from pid %d: %v", pid, err)
} else {
stats.Network.Tcp6 = t6
}
}*/
}

// For backwards compatibility.
Expand Down

0 comments on commit 81aa0d7

Please sign in to comment.