[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [aspectj-users] Garbage collector behavior
- From: "Ron Bodkin" <rbodkin@xxxxxxxxxxxxxx>
- Date: Wed, 26 Oct 2005 00:30:51 -0600
- Delivered-to: firstname.lastname@example.org
- Organization: New Aspects of Software
- Thread-index: AcXZgbm7UwyxnJKaRu6PnJTn3R73lgAQmNzQ
I'm very aware of these issues. I'm working on a general framework for
tracking performance in application using AspectJ
(https://glassbox-inspector.dev.java.net/). I have been working with Alex
Vasseur and Matthew Webster to reduce the memory and startup time overhead
of this. This, of course, builds on past work that Adrian Colyer led with
Andy Clement and Ron DiFrango if memory serves me right.
Anyhow, I believe that the next stage of reducing overhead is Matthew's
promising idea of using reflective proxy delegates for already loaded
classes instead of storing multiple copies of bytecode for classes. This is
most easy to implement with bootstrap-loaded classes (think rt.jar).
However, over time I think it will be important to have cacheing and to
allow sharing of class-definition bytecodes when a class is loaded.
I'm very interested in your statistics on the GC affects of LTW and want to
better understand where the extra memory is consumed.
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Mathieu LEMAIRE
Sent: Tuesday, October 25, 2005 10:34 AM
To: ML aspectj
Subject: [aspectj-users] Garbage collector behavior
I'm implementing a framework to profile our program execution, that is,
memory consumptions, durations...
I use aspectJ (LTW mode) to instrumentate my classes.
Here is my problem..
I got memory issues when using aspectJ, comparing to a mode where I
instrumentate my classes directly in the code (aspectJ is completely
removed from this mode). Using aspectJ, memory consumptions of my
program are much higher than without using it (eg 120Mo > 70Mo). Also
profiling garbage collections, it seems that the GC collects much more
when aspectJ is off (eg 4.5s > 2.3s).
Do you have any clue for that to happen ?
aspectj-users mailing list