Java内存使用 [英] Java memory usages

查看:140
本文介绍了Java内存使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法理解Java内存的使用情况。我有一个应用程序,最大内存大小设置为256M。然而,在某个时间点,我可以看到,根据任务管理器,它需要高达700MB!

I cannot understand the Java memory usage. I have an application which is executed with maximum memory size set to 256M. Yet, at some point in time I can see that according to the task manager it takes up to 700MB!

不用说,所有其他应用程序都有点这种情况发生时没有反应,因为它们可能被换掉了。

Needless to say, all the rest of the applications are a bit unresponsive when this happens as they are probably swapped out.

在WinXP上它是JDK 1.6。有什么想法?

It's JDK 1.6 on WinXP. Any ideas ?

推荐答案

配置的内存可供应用程序使用。它不包括

The memory configured is available to the application. It won't include


  1. JVM大小

  2. 加载的jars / libs

  3. 本地库和相关的已分配内存

这会产生更大的图像。请注意,由于操作系统和JVM如何工作,700Mb可以在多个JVM之间共享(由于共享二进制映像,共享库等)。

which will result in a much bigger image. Note that due to how the OS and the JVM work that 700Mb may be shared between multiple JVMs (due to shared binary images, shared libraries etc.)

这篇关于Java内存使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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