免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1691 | 回复: 3
打印 上一主题 下一主题

linux内存经常被用掉90%多,只有一个java程序 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-05-11 09:25 |只看该作者 |倒序浏览
4个AMD大锤,4G内存
只有一个java程序在跑,top显示jvm使用了400M,但是整个系统的内存已经用了3G多,请高手指点

论坛徽章:
0
2 [报告]
发表于 2005-05-11 12:47 |只看该作者

linux内存经常被用掉90%多,只有一个java程序

原帖由 "shailq" 发表:
4个AMD大锤,4G内存
只有一个java程序在跑,top显示jvm使用了400M,但是整个系统的内存已经用了3G多,请高手指点

巨型 JVM ? 玩笑, 是否 有很多 线程? 有 1500左右?

论坛徽章:
0
3 [报告]
发表于 2005-05-11 13:08 |只看该作者

linux内存经常被用掉90%多,只有一个java程序

同时跑的最多40-50个线程

论坛徽章:
0
4 [报告]
发表于 2005-05-12 08:41 |只看该作者

linux内存经常被用掉90%多,只有一个java程序

Q: Why is Linux using up all my memory?

A: You may notice as you use Linux that a lot of RAM is in use, even when you're not running very many programs. You may be thinking that there are problems with memory leaks, or that your available RAM is being used inefficiently.


One quick and easy way to find out how much RAM you really have available, though, is to use the command-line utility 'free.' If you are running Gnome, KDE, or another graphical interface, open up a terminal window and type 'free' (without the quotes). Its output looks something like this (edited for brevity):

                    total          used           free
Mem:                515364         497208         18156
-/+ buffers/cache:  352512         162852
Swap:               497972         176            497796

The significant row in this output is the one labelled -/+ buffers/cache. Notice that out of 512MB of RAM, only 352MB is in use---even though it appears from the first line that 497MB is in use.

Unless you experience significant slowdowns and hard drive activity, it's unlikely that you are experiencing any problems with memory usage. Besides, if you paid good money for all the RAM you have, you might as well be using it---it's no good to you sitting around doing nothing.

Another tool that you may find useful, if you find that a lot of your RAM is being used, is 'top.' Again, from a terminal window or console, type 'top' (without the quotes). You will see a dynamically-updated list of the currently-running programs on your computer. The name of each program is shown on the far right, along with information about how much CPU and memory each program is using. If you press 'M' while 'top' is running, the programs will be shown in decreasing order of memory usage. This may help you to pinpoint what programs are using the most memory. In some cases, those programs can be shut down (if you do not need them running), or configured to use less memory.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP