Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ajdt-dev] Is feature available?

Hi Andy,

You are right, the project is an eclipse AspectJ project.

Eclipse environment setup:

Eclipse 3.3.2
AslectJ 1.5.4.200705211336
AJDT: 1.5.0.200706070619
jdk1.6.0
heap size is 1024

The project has around 8000 classes with many of them over 5000 lines of code.
When a full build is done an out of memory occurs after some time, in the weaving process.

We don't get this problem with load time weaving...we made some optimizations in aop.xml, excluding unwanted packages, and we don't get memory problems with LT-weaving.

Regards,
Cristian.

On Sat, May 3, 2008 at 7:52 AM, Andy Clement <andrew.clement@xxxxxxxxx> wrote:
Hi,

> My problem comes when I try to build the project, it takes too much time and
> finally I get out of memory.
>  I was thinking that it might be possible for the ajc to look only to that
> specific package and leave everything else untouched.

I guess as you are using the term project, you are inside eclipse
rather than building on the command line or with Ant.  What level of
AspectJ are you on, hopefully it is at least 1.5.3 since that is when
pipeline compilation was implemented to reduce memory consumption.  I
presume you have increased the default heap size for eclipse via the
-Xmx JVM option to 512/768/1024 or something?

Eric is right that within() is the way we support this currently.  We
do have an open enhancement request to use aop.xml to control compile
time weaving.  Currently it is used in load time weaving to control,
at a high level, which packages get woven.  If the enhancement was
implemented you could control which packages made it into the weaver.
However, it isn't due to be implemented any time soon...

Really we shouldn't run out of memory building however large your
project, hence my questions about what level of compiler you are
using.

Andy.

>
> Is something like this possible or are there any other tricks that can help
> me?
> Btw, my project is an Eclipse AspectJ project.
>
> Thank you very much,
>  Cistian.
>
>
>
> On Fri, May 2, 2008 at 6:02 PM, Eric Bodden <eric.bodden@xxxxxxxxxxxxxx>
> wrote:
> > Hi Christian.
> >
> > Usually this is done with pointcuts, e.g. within(my.package.*)
> >
> > Does this not work for you?
> >
> > Eric
> >
> > 2008/5/2 cristi.popovici <cristi.popovici@xxxxxxxxx>:
> >
> >
> >
> > >
> > >  Hi Guys,
> > >
> > >  Can I tell the ajc to weave aspects only on specified packages of my
> > >  project? is this possible?
> > >
> > >  Have a nice day,
> > >  Cristian Popovici
> > >  --
> > >  View this message in context:
> http://www.nabble.com/Is-feature-available--tp17021132p17021132.html
> > >  Sent from the Eclipse Ajdt - Dev mailing list archive at Nabble.com.
> > >
> > >  _______________________________________________
> > >  ajdt-dev mailing list
> > >  ajdt-dev@xxxxxxxxxxx
> > >  https://dev.eclipse.org/mailman/listinfo/ajdt-dev
> > >
> >
> >
> >
> > --
> > Eric Bodden
> > Sable Research Group
> > McGill University, Montréal, Canada
> >
> >
> >
> > _______________________________________________
> > ajdt-dev mailing list
> > ajdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/ajdt-dev
> >
>
>
>
> --
> Best Regards,
> Popovici Cristian
> cristi.popovici@xxxxxxxxx
> _______________________________________________
>  ajdt-dev mailing list
>  ajdt-dev@xxxxxxxxxxx
>  https://dev.eclipse.org/mailman/listinfo/ajdt-dev
>
>
_______________________________________________
ajdt-dev mailing list
ajdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ajdt-dev



--
Best Regards,
Popovici Cristian
cristi.popovici@xxxxxxxxx

Back to the top