由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Integer in heap
相关主题
java 的内存分布?[转载] Re: question on integer editing in C or C++
Alternative way to swap Integer问一个generic的问题吧
a fun coding question[转载] Java 1.5 Generic 问题
出个简单题,看你Java APi熟悉到什么程度Generic type cast warning
关于Vector的土问题再请教一个 编译错误
how to run java program in dos?请问一个定义类型的问题
using SQL in JavaWhat does this mean?
问一个题is access to int[] faster than List?
相关话题的讨论汇总
话题: heap话题: integers话题: integer话题: gc话题: memory
进入Java版参与讨论
1 (共1页)
m****n
发帖数: 886
1
I'm running an application on Weblogic. I did a profile of the heap, and
find out 43% of all objects in heap are Integers and they can't be cleaned up
by GC. Why these integers stay in heap? Does that indicate a memory leak?
m****r
发帖数: 11
2
If the heap keeps increasing, it is a memory leak. You need to check who
references
those Integers. java profilers shall provide reference graph. which profiler
are you using?

up

【在 m****n 的大作中提到】
: I'm running an application on Weblogic. I did a profile of the heap, and
: find out 43% of all objects in heap are Integers and they can't be cleaned up
: by GC. Why these integers stay in heap? Does that indicate a memory leak?

m******t
发帖数: 2416
3

up
Note that unless you have -incgc turned on, the GC may not kick in until
there isn't any free memory left, i.e., you might not see these Integers
GCed even though they are not in use any more.

【在 m****n 的大作中提到】
: I'm running an application on Weblogic. I did a profile of the heap, and
: find out 43% of all objects in heap are Integers and they can't be cleaned up
: by GC. Why these integers stay in heap? Does that indicate a memory leak?

1 (共1页)
进入Java版参与讨论
相关主题
is access to int[] faster than List?关于Vector的土问题
How to check if an element is in an array?how to run java program in dos?
Java6里面int跟Integer已经实现了自动转换?using SQL in Java
Sort TreeMap by value?问一个题
java 的内存分布?[转载] Re: question on integer editing in C or C++
Alternative way to swap Integer问一个generic的问题吧
a fun coding question[转载] Java 1.5 Generic 问题
出个简单题,看你Java APi熟悉到什么程度Generic type cast warning
相关话题的讨论汇总
话题: heap话题: integers话题: integer话题: gc话题: memory