Change signal for heap dump ( SIGHUP to SIGUSR1 )
@@ -402,7 +402,7 @@ func StartCPUProfile(filename string) error {
func StartMemoryProfile(filename string) error {
if filename != "" {
c := make(chan os.Signal, 1)
- signal.Notify(c, syscall.SIGHUP)
+ signal.Notify(c, syscall.SIGUSR1)
go func(c chan os.Signal) {
var memProfileCnt int32 = 0
for {
