I
I
Inter Carpenter2017-09-21 15:47:22
go
Inter Carpenter, 2017-09-21 15:47:22

How to find out what is causing the memory to overflow?

Hello
I am writing a project in Golang and it has become quite large.
Unfortunately, I didn’t notice right away and I can’t understand after what edit, the program began to fill the RAM and not release it. Approximately 1GB in 2 hours.
How to determine the exact place in which the jamb?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
danforth, 2017-09-21
@danforth

Go has a goroutine leak when a goroutine writes to a pipe that no one is reading from. Perhaps you have some kind of return in your code that exits the function by mistake? Try for depreciation, put buffers near the channels.
Try reading here: https://groups.google.com/forum/#!topic/golang-nut...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question