Hi Ravi,

I think I'd treat this like any other OutOfMemoryError and take a look at
the heap dump. I'm not sure where Geronimo places the heapdump, but it
should be in the Geronimo tree somewhere. Once you find the heapdump I'd
load it up in a heap analyzer like this one [1] (I'm sure there are plenty
of other ones available) and see if there are any classes that are taking up
too much memory.

Once you know which classes are taking up the most memory you can contact
their owners for help on why that's happening. If they're OpenJPA classes
this is a good place to ask the question. It might be the same issue
reported at [2] but we really don't have enough information to say.

[1] http://www.alphaworks.ibm.com/tech/heapanalyzer
[2] http://n2.nabble.com/Memory-Usage-td3166851.html

Good luck,
-mike

On Sat, Jun 27, 2009 at 1:58 AM, <[email protected]> wrote:

> Hi,
> I am using WAS CE as my application server and I am trying to enhance my
> entities at build time by using Pinaki Podar's method of enhancing with
> eclipse. My working env is :
> Java: 1.6
> OpenJPA 1.2
> Eclipse Europa 3.3.1
>
> When I am trying to invoke a service bean I am getting following error :-
> 2009-06-27 12:21:33,750 WARN [Enhance] An exception was thrown while
> attempting
> to perform class file transformation on
> "com/pril/rxl/entities/SaleReturnLineIt
> em":
> java.lang.OutOfMemoryError: Java heap space
> at java.util.Arrays.copyOf(Arrays.java:2760)
> at java.util.Arrays.copyOf(Arrays.java:2734)
> at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
> at java.util.ArrayList.add(ArrayList.java:351)
> at org.apache.openjpa.meta.MetaDataRepository.processBuffer(MetaDataRepo
> sitory.java:676)
> at org.apache.openjpa.meta.MetaDataRepository.resolveMeta(MetaDataReposi
> tory.java:575)
> at org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository
> .java:500)
> at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataReposi
>
>
> Kindly help me.
> I can not move futher towards completion of my task untill this problem is
> resolved.
> I would be really thankful to you for the help.
>
>
> Thanks in advance.
>
> With Regds,
> Ravi Kant
>

Reply via email to