You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by ra...@gmail.com on 2009/06/27 08:58:39 UTC
Build Time Enhancement
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
Re: Build Time Enhancement
Posted by Michael Dick <mi...@gmail.com>.
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, <ra...@gmail.com> 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
>
Re: Build Time Enhancement
Posted by Donald Woods <dw...@apache.org>.
Ravi, are you seeing this while building in Eclipse or after deploying
to a WASCE/Geronimo server?
If during build time, then you probably need to modify your Eclipse JVM
settings [1] in the eclipse.ini file (which we have to tell people to do
sometimes when building/deploying to WASCE).
If during application deployment/runtime on WASCE, then you probably
need to modify the server JVM settings [2].
[1]http://publib.boulder.ibm.com/wasce/V2.1.1/en/development-troubleshooting.html
[2]http://publib.boulder.ibm.com/wasce/V2.1.1/en/tuning-java.html
BTW - Which OS are you using and is this a 32 or 64 bit Sun or IBM JVM
(note that 64 bit JVMs require more heap and PermGen space....)
-Donald
ravis22@gmail.com 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
>