golang vnc连接错误-内存不足

标签 go vnc

我在 go 中安装了 vnc 应用程序,问题是在同时执行崩溃后,出现内存不足的消息。

完整的日志在这里:https://ghostbin.com/paste/3wpcm

client.go完整代码哪里有这个错误是这样的:https://ghostbin.com/paste/bgn7s

有谁知道为什么这个应用程序内存不足?我的 Linux 机器有 16gb 内存。

最佳答案

Profile memory usage你的程序:

Memory profiler shows what functions allocate heap memory. You can collect it in similar ways as CPU profile: with go test --memprofile (http://golang.org/cmd/go/#hdr-Description_of_testing_flags), with net/http/pprof via http://myserver:6060:/debug/pprof/heap or by calling runtime/pprof.WriteHeapProfile.

<…>

关于golang vnc连接错误-内存不足,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50718652/

相关文章:

pointers - 如果它作为接口(interface)传递,则访问指针值{}

windows - 浏览器中的 RDP 或 VNC

variables - 为什么 Go 中有两种声明变量的方式,有什么区别,用哪一种?

string - 将工作日字符串解析为 time.Weekday

php - 坚持使用 PHP 还是学习 Go-lang?

linux - "vino-preferences"在哪里存储其配置属性

delphi - 通过 VNC 和远程桌面使用 FireMonkey 的问题

linux - 从 linux 主机捕获远程控制 session

java - Guacamole vnc 查看器 - 如何使用?

linux - 如何优雅地关闭在 Kubernetes 上运行的 Go 服务