1.打开一个窗口,内存用了1M
2.关闭窗口,内存的使用不见下降;有时甚至上升?
3.连续打开关闭之后,内存冲到95,之后由Memory异常抛出?:窗口用dispose()不能释放程序占用的内存吗?(是不是Swing控件的问题)
:有什么工具可以检测的?
ps:我用的是eclipse
2.关闭窗口,内存的使用不见下降;有时甚至上升?
3.连续打开关闭之后,内存冲到95,之后由Memory异常抛出?:窗口用dispose()不能释放程序占用的内存吗?(是不是Swing控件的问题)
:有什么工具可以检测的?
ps:我用的是eclipse
解决方案 »
- 菜鸟求助!
- 请教jvm类加载一个问题
- 求最简单的单点登录!!分不是问题!
- 请问大家如何用正则表达式来匹配我需要的字符集
- 逆波兰式求值.请求高手帮助!!!!!!!!!!!!!!!!
- java里面有调用文本文件(就是类似记事本)的页面设置的方法吗
- 如何判断当前字符串是否UFT8编码?
- 使用commons.logging + Log4j, 如何配置可以使多线程中的每个线程的log输出到不同的文件中。
- 高手帮忙{注:非对象回收问题}
- client/server 模型??
- 环境变量到底该如何配置,查了不少资料,看了不少的网站,到自已做时,总是有问,搞后后,别给100分。版主能帮帮吗?
- 如何读取到gif文件的pix和offset
--------------------------------------------------------
dispose
public void dispose()
Releases all of the native screen resources used by this Window, its subcomponents, and all of its owned children. That is, the resources for these Components will be destroyed, any memory they consume will be returned to the OS, and they will be ed as undisplayable.
The Window and its subcomponents can be made displayable again by rebuilding the native resources with a subsequent call to pack or show. The states of the recreated Window and its subcomponents will be identical to the states of these objects at the point where the Window was disposed (not accounting for additional modifications between those actions). Note: When the last displayable window within the Java virtual machine (VM) is disposed of, the VM may terminate. See AWT Threading Issues for more information.
是不是JVM的问题;程序间的相互引用能不能被GC回收?