Skip to content

Commit e492dfd

Browse files
committed
server/profiler: bump heap profiler size limit from 256MiB to 512MiB
I've seen a couple of cases where the heap profiles I was interested in were just rotated, so let's bump the limit by 2x. Release note (ops change): The default value of `server.mem_profile.total_dump_size_limit` (which controls how much space can be used by automatically collected heap profiles) has been increased from 256MiB to 512MiB.
1 parent 3145ed0 commit e492dfd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/server/profiler/heapprofiler.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,17 @@ var maxCombinedFileSize = settings.RegisterByteSizeSetting(
3939
settings.ApplicationLevel,
4040
"server.mem_profile.total_dump_size_limit",
4141
"maximum combined disk size of preserved memory profiles",
42-
256<<20, // 256MiB
42+
512<<20, // 512MiB
4343
)
4444

4545
func init() {
46+
// This setting definition still exists so as to not break deployment
47+
// scripts that set it unconditionally.
4648
_ = settings.RegisterByteSizeSetting(
4749
settings.ApplicationLevel,
4850
"server.heap_profile.total_dump_size_limit",
4951
"use server.mem_profile.total_dump_size_limit instead",
50-
256<<20, // 256MiB
52+
512<<20, // 512MiB
5153
settings.Retired,
5254
)
5355
}

0 commit comments

Comments
 (0)