mabye @bradfitz can give you some advise
On Friday, 4 June 2021 at 23:09:08 UTC+8 hang zhou wrote: > Hi, > I was use gomobile with go1.16.3 to build a framework for iOS > NetworkExtension, but when the extension start, I found the memory it > occupied is about 13M, and when we run some goroutine in go, the memory > increase and do not decrease, and finally, the system kill my extension > with the lmemory imit 15M. > So, I have two questions: > First, if we start the NetworkExtension without our framework, the > extension process memory occupation is about 2M, so, is there any way to > decrease memory occupation when we generate the framework by gomobile? > Second, once we start goroutine, the memory increase all the time, what > should I do to release the memory and when? > > does anyone can give me some advice or tell me the way to sove these > problems? > thanks a lot! > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/b23479bd-178c-469a-8d4e-b114dcb726a8n%40googlegroups.com.