我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在运行时转储Go进程堆

We have a go process in production using Gigabytes more memory than usual. It's suffered from an unusual memory leak. We stopped input to this process to allow the GC to settle. It is still running with a RES of multiple Gigabytes. Is there a way to attach to this process and dump heap in a way that can be analyzed using hprof visualization tools?

for now, you can use runtime package to write heap profile to a file, and analyze it with gpreftools visualization tool.

近期文章

  • 将日志或配置引用传递给自定义Go程序包
  • 使用nullString的golang gorp select失败
  • GCC 5.2安装/更新(OS X 10.10)
  • net / context的cancel()函数做什么?
  • 带-linkshared选项的v 1.5版产生链接错误
  • CircleCI和Golang-无法导入AWS开发工具包
  • Golang中的GoProxy SSL拦截
  • Golang:检索大猩猩/会话Cookie
  • 在Swig生成的Go代码中获取空指针取消引用
  • 在Go中迷失于Dijkstra
  • 在Heroku上“呈现”吗?
  • 需要在Ubuntu 14.04(trusty64)上将Go 1.2.1升级到1.3+
  • Windows系统调用
  • 有什么方法可以使用Go执行跟踪器在多服务基础架构中收集全局跟踪?
  • 将相同的关键字分配给多个goroutine
  • 开始,尝试循环日期正则表达式结果
  • 使用自定义解组器处理嵌套的JSON结构
  • 限制Json模式中返回的字段
  • Google Cloud Storage go客户端中的重试逻辑在哪里?
  • Go-无法使用s3manager从s3下载

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华