C
C B
On our IBM 1.4.1 JVM we sometimes get an out of memory error.
According the IBM heapdump and heaproots, it is a large
NullPointerException being thrown from a finalize(). In our
application, should we catch all exceptions in our finalize() methods
and prevent them from being thrown further? What does the
"Finalizer" thread do with the exceptions that it gets from finalize()
methods? Why does this 73megabyte null pointer happen in the first
place??
Any suggestions?
Showing objects whose type is in 'A,R', sorted by total-size.
Addr Size Root-owner Parent Total-size Name
-------------------------------------------------------------------------------
R 0x10143330 32 - - 73,254,488
java/lang/NullPointerException
<0> [73,254,488] 0x10143330 [32] java/lang/NullPointerException
<1> [73,254,456] 0x10143308 [40] array of java/lang/Object
<2> [73,254,056] 0x4043b6f8 [304] class java/lang/ref/Finalizer
<3> [73,253,488] 0x1a450358 [32] java/lang/ref/Finalizer
<4> [73,253,416] 0x1a419818 [32] java/lang/ref/Finalizer
<5> [73,253,344] 0x14bfc2e0 [32] java/lang/ref/Finalizer
<6> [73,253,080] 0x1a3cce70 [32] java/lang/ref/Finalizer
<7> [73,216,312] 0x1a3b3a80 [32] java/lang/ref/Finalizer
<8> [73,216,280] 0x1a3a9938 [32]
java/lang/ref/Finalizer
<9> [73,216,136] 0x1a3858b8 [32]
java/lang/ref/Finalizer
<10> [73,216,064] 0x1a352f00 [32]
java/lang/ref/Finalizer
<11> [73,215,992] 0x1a344b60 [32]
java/lang/ref/Finalizer
<12> [72,964,856] 0x1a344b80 [16]
java/lang/ClassLoader$Finalizer
According the IBM heapdump and heaproots, it is a large
NullPointerException being thrown from a finalize(). In our
application, should we catch all exceptions in our finalize() methods
and prevent them from being thrown further? What does the
"Finalizer" thread do with the exceptions that it gets from finalize()
methods? Why does this 73megabyte null pointer happen in the first
place??
Any suggestions?
Showing objects whose type is in 'A,R', sorted by total-size.
Addr Size Root-owner Parent Total-size Name
-------------------------------------------------------------------------------
R 0x10143330 32 - - 73,254,488
java/lang/NullPointerException
<0> [73,254,488] 0x10143330 [32] java/lang/NullPointerException
<1> [73,254,456] 0x10143308 [40] array of java/lang/Object
<2> [73,254,056] 0x4043b6f8 [304] class java/lang/ref/Finalizer
<3> [73,253,488] 0x1a450358 [32] java/lang/ref/Finalizer
<4> [73,253,416] 0x1a419818 [32] java/lang/ref/Finalizer
<5> [73,253,344] 0x14bfc2e0 [32] java/lang/ref/Finalizer
<6> [73,253,080] 0x1a3cce70 [32] java/lang/ref/Finalizer
<7> [73,216,312] 0x1a3b3a80 [32] java/lang/ref/Finalizer
<8> [73,216,280] 0x1a3a9938 [32]
java/lang/ref/Finalizer
<9> [73,216,136] 0x1a3858b8 [32]
java/lang/ref/Finalizer
<10> [73,216,064] 0x1a352f00 [32]
java/lang/ref/Finalizer
<11> [73,215,992] 0x1a344b60 [32]
java/lang/ref/Finalizer
<12> [72,964,856] 0x1a344b80 [16]
java/lang/ClassLoader$Finalizer