Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataChannel and PeerConnection already close, but the memory not erase #1951

Closed
leeliliang opened this issue Sep 9, 2021 · 3 comments
Closed

Comments

@leeliliang
Copy link

leeliliang commented Sep 9, 2021

No description provided.

@wargebitebane
Copy link

How did you fix it? I'm getting same problem.

@Sean-Der
Copy link
Member

Sean-Der commented Nov 4, 2021

Hi @wargebitebane

Are you making sure to call PeerConnection.Close()? If you do that all memory/goroutines should be freed.

Can you share a memory profile if that doesn't help?

@leeliliang
Copy link
Author

leeliliang commented Nov 9, 2021

@wargebitebane

How did you fix it? I'm getting same problem.
func DCRelease() {
logger.Logger.Warn("DCRelease start FreeOSMemory")
debug.FreeOSMemory()
//runtime.GC()
//TraceMemStats()
}
Try this every minutes

@Sean-Der
By the way i have another issue. Do you have any idea about this ?
pion/sctp#206 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants