Out of memory in java application

Hi,

I am continously getting out of memory in my java application. I collected the java heap dump and found major memory chunk ( >90%) of total java heap is taken by some "class [I", which is array of 'Inetger' objects and sometimes by "class [S", which is array of 'Short' objects.

Elements of these arrays are referred by:

java.awt.image.DataBufferUShort and

sun.awt.image.ShortInterleavedRaster

and these are consuming major memory chunks.

Has anyone observed this kind of problem?

I am not able to proceed in my analysis and kind of struck at these Integer and Short arrays. Please help.

Thanks

Charanjeet

[678 byte] By [jannyguya] at [2007-11-26 17:52:36]
# 1
Charanjeet,Not very sure about ur problem solution but can ou tell me how to take a java head dump?Thanks.
Thotaa at 2007-7-9 5:05:31 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 2

Charanjeet,

tThese are the steps for identifying java leaks:

1) . enable verbosegc (this gives an idea about java heap usage and helps us determine if there is unbounded growth in the java heap)

2). get heapdumps over times of the application run (export IBM_HEAPDUMP=true before the app starts and then get heapdumps at the periodic intervals by sending kill -3 to the java process

3). analyze the dumps and identify whcih are the candidates/suspects that are creating the problem and fix.

Bharat

Cincinnati, USA (Lenz)

bharatvaa at 2007-7-9 5:05:31 > top of Java-index,Archived Forums,Debugging Tools and Techniques...