FAQ
Hi all :
       In my product envourment , As the programe don't free any alloc
memory to operation system, the system was crash. I using the following
command to get the memory usage

go tool pprof -alloc_space http://xxxx/debug/pprof/heap

go tool pprof -inuse_space http://xxxx/debug/pprof/heap

      The memory in use is 2855.98MB . The memory alloc is 5325303.52MB





After that, I invoke the api "debug.FreeOSMemory()" each hour to solve that
problem. In our test envourment ,it seems be solved .But in the product
envourment , The fata error was occur :
runtime stack:
runtime.throw(0xc9adc0, 0x2a)
/usr/local/go/src/runtime/panic.go:527 +0x90 fp=0xc82003fe68 sp=0xc82003fe50
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:12 +0x5a fp=0xc82003feb8
sp=0xc82003fe68
runtime.munmap(0x7f4b74ec9000, 0x198de0, 0x486b9f, 0x7f4b74ec9000,
0x198de0, 0xfaed00, 0x7f4b74ec9000, 0x331bc, 0x33420, 0x4863bc, ...)
/usr/local/go/src/runtime/sys_linux_amd64.s:266 +0x1b fp=0xc82003fec0
sp=0xc82003feb8
runtime.sysFree(0x7f4b74ec9000, 0x198de0, 0xfaed00)
/usr/local/go/src/runtime/mem_linux.go:103 +0x34 fp=0xc82003fed8
sp=0xc82003fec0
runtime.gcCopySpans()
/usr/local/go/src/runtime/mgc.go:1599 +0xdf fp=0xc82003ff10 sp=0xc82003fed8
runtime.gcMark(0x5ff82dcf0871)

I post the detail description on that page
https://github.com/golang/go/issues/14633

Can you give me any advice ?

Thank you in advance!


--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMar 7, '16 at 6:39a
activeMar 7, '16 at 6:39a
posts1
users1
websitegolang.org

1 user in discussion

Figo xu: 1 post

People

Translate

site design / logo © 2021 Grokbase