mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-24 15:24:17 +00:00
Bring back debug.FreeOSMemory()
call
This commit is contained in:
parent
0e88584227
commit
1cce863bbb
@ -2,6 +2,7 @@ package api
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
"runtime/debug"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@ -42,6 +43,7 @@ func (streamMap *TcpStreamMap) CloseTimedoutTcpStreamChannels() {
|
||||
for {
|
||||
<-ticker.C
|
||||
|
||||
debug.FreeOSMemory()
|
||||
streamMap.Streams.Range(func(key interface{}, value interface{}) bool {
|
||||
stream := value.(*TcpStream)
|
||||
if stream.ProtoIdentifier.Protocol == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user