Skip to content

Commit

Permalink
roachtest: heap profile tpccbench every 15s
Browse files Browse the repository at this point in the history
Can hopefully help understand
#75071.

Release note: None
  • Loading branch information
tbg committed Jan 20, 2022
1 parent e8a0b75 commit 9d91861
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cmd/roachtest/tests/tpcc.go
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,9 @@ func (s tpccBenchSpec) startOpts() (option.StartOpts, install.ClusterSettings) {
startOpts := option.DefaultStartOpts()
startOpts.RoachtestOpts.DontEncrypt = true
settings := install.MakeClusterSettings()
// Facilitate diagnosing out-of-memory conditions in tpccbench runs.
// See https://github.com/cockroachdb/cockroach/issues/75071.
settings.Env = append(settings.Env, "COCKROACH_MEMPROF_INTERVAL=15s")
if s.LoadConfig == singlePartitionedLoadgen {
settings.NumRacks = s.partitions()
}
Expand Down

0 comments on commit 9d91861

Please sign in to comment.