我如何找到哪个进程正在泄漏内存 [英] how do i find which process is leaking memory

查看:155
本文介绍了我如何找到哪个进程正在泄漏内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统(Ubuntu)具有许多进程,并且一个(或多个)内存泄漏.有没有找到找到泄漏过程的好方法?有些过程是JVM,有些则不是.有些是自家种植的,有些是开源的.

I have a system (Ubuntu) with many processes and one (or more) have a memory leak. Is there a good way to find the process that has the leak? Some of the process are JVMs, some are not. Some are home grown some are open source.

推荐答案

您可以运行top命令(要以非交互方式运行,请键入top -b -n 1).要查看正在泄漏内存的应用程序,请查看以下列:

You can run the top command (to run non-interactively, type top -b -n 1). To see applications which are leaking memory, look at the following columns:

  • RPRVT-居民专用地址空间大小
  • RSHRD-居民共享地址空间大小
  • RSIZE-驻留内存大小
  • VPRVT-专用地址空间大小
  • VSIZE-总内存大小

这篇关于我如何找到哪个进程正在泄漏内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆