Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 769735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:23:04+00:00 2026-05-14T18:23:04+00:00

We are using Eclipselink and need to weave the code in order for lazy

  • 0

We are using Eclipselink and need to weave the code in order for lazy fetching to work property.

During the weave process I’m getting the following error:

weave:  

BUILD FAILED  
java.lang.OutOfMemoryError: PermGen space  

I have the following tasks within my ant build file:

<target name="define_weave_task" description="task definition for EclipseLink static weaving">  
   <taskdef name="eclipse_weave" classname="org.eclipse.persistence.tools.weaving.jpa.StaticWeaveAntTask"/>  
</target>  

<target name="weave" depends="compile,define_weave_task" description="weave eclipselink code into compiled classes">  
   <eclipse_weave source="${path.classes}" target="${path.classes}">  
       <classpath refid="compile.classpath"/>  
   </eclipse_weave>  
</target>  

It has been working great for a long time. Now that the amount of code to be woven has increased I’m getting the PermGen error. I would like to be able to up the amount of perm space.

If I was doing a compile I would be able to up the perm space via a compiler argument such as <compilerarg value="-XX:MaxPermSize=256M"/> but this does not appear to be a valid argument for eclipselink weaving.

How can I up the perm space for the weave?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:23:04+00:00Added an answer on May 14, 2026 at 6:23 pm

    The answer is to set the max perm memory parameter in the ANT_OPTS environment variable before running ant.


    export ANT_OPTS="-XX:MaxPermSize=256m"

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using eclipselink, and I have the following code to call a stored
We are using Eclipselink for ORM, but we have a need for some more
Using Eclipselink/MOXy 2.3 i have following usecase in marshalling to XML: abstract class MyAbstract
Using EclipseLink 2.3.2 with static weaving (Maven plugin) against OracleXE. I have the following
I'm using EclipseLink as the JPA provider. Further I'm using the following TABLE_PER_CLASS inheritance
I need to set the zeroDateTimeBehavior property to convertToNull in my EclipseLink configuration. I
Has anyone got EclipseLink MOXy (I'm using eclipselink 2.1.0) to work with Java 5?
Are any of the following XPath expressions acceptable? Using version 2.3.1 of eclipselink @XmlPath(../header/@type)
I have following use-case for marshalling a POJO to XML using Eclipselink MOXy 2.3:
I am using EclipseLink dynamic moxy for jaxb. When I try to set an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.