mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-25 13:43:01 +00:00
Revert "Revert "Bring back debug.FreeOSMemory()
call""
This reverts commit 69538cb7e3
.
This commit is contained in:
parent
684c51686f
commit
d7e22ab788
@ -2,6 +2,7 @@ package tap
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"runtime"
|
"runtime"
|
||||||
|
_debug "runtime/debug"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -47,6 +48,7 @@ func (streamMap *tcpStreamMap) CloseTimedoutTcpStreamChannels() {
|
|||||||
for {
|
for {
|
||||||
<-ticker.C
|
<-ticker.C
|
||||||
|
|
||||||
|
_debug.FreeOSMemory()
|
||||||
streamMap.streams.Range(func(key interface{}, value interface{}) bool {
|
streamMap.streams.Range(func(key interface{}, value interface{}) bool {
|
||||||
// `*tlsStream` is not yet applicable to this routine.
|
// `*tlsStream` is not yet applicable to this routine.
|
||||||
// So, we cast into `(*tcpStream)` and ignore `*tlsStream`
|
// So, we cast into `(*tcpStream)` and ignore `*tlsStream`
|
||||||
|
Loading…
Reference in New Issue
Block a user