linux下如何查看某进程占用内存情况?

david19800108 2010-12-18 12:25:08
RT,

另外,如果这个进程存在内存泄露?这些泄露的内存是不是还是显示为该进程占用?
...全文
2894 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
cr4315 2010-12-21
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 lgxwqq111 的回复:]
ps aux|grep 进程名
[/Quote]
+1
freetstar 2010-12-18
  • 打赏
  • 举报
回复
ps aux|grep 进程名
wangdbeyond 2010-12-18
  • 打赏
  • 举报
回复
能查看内存端命令我就只知道top 内存泄漏我就不知道了 学习
wesleyluo 2010-12-18
  • 打赏
  • 举报
回复
我这个保证你满意,用leaky.
Once your program has completed execution you can use leaky to look for memory leaks, or at least use it to dump the log. For memory leaks, you use leaky like this:

leaky -d <program-name-goes-here> malloc-logLeaky will then display all of the call sites where memory was leaked. To look at the entire log file contents, not just the leaks add "-a" to the arguments:
leaky -d -a <program-name-goes-here> malloc-log
yui 2010-12-18
  • 打赏
  • 举报
回复
pmap -x <pid>
mfqq521 2010-12-18
  • 打赏
  • 举报
回复
和XP不一样吗?
david19800108 2010-12-18
  • 打赏
  • 举报
回复
谢谢楼上各位,感觉答复还是不满意。
yuanzhenhai 2010-12-18
  • 打赏
  • 举报
回复
top 动态显示
Linux-Torvalds 2010-12-18
  • 打赏
  • 举报
回复
cat /proc/pid/maps

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧