[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] LTWWorld Memory details
|
Aditya,
See the replies
Framework : Spring and Hibernate.
Questions:
1. Why is so much
memory held during startup?
Considering that you are making
use of springs framework, which will generate lot of classes on the fly.
For the creation and initialization it requires lot of memory, that's the
reason you are seeing high memory consumption during the server start up.
2. Why so much
memory is released and what is the trigger point.
This is little bit tricky to answer,
may be after the creation of classes. Once the task is completed and no
more related references is in use, garbage collection will clear the heap.
Apply the jvm param -Xnoclassgc
during the server start up and verify
the behavior. If the memory usage is not coming down or still high after
some time, which means the heap is occupied by the newly generated classes
and their objects.
I see the comment Forced GC, which is
not suggested anyway. applying system.gc() doesn't guarantee the execution
of full gc immediately.
3. Is there any
optimization that I can do ?
Can you elaborate more why are you worrying
on space occupation for 41mb, the occupying space seems to be small.
Thanks,
krishna
From:
| "Prasad, Aditya (GE Healthcare)"
<Aditya.Prasad@xxxxxx>
|
To:
| "aspectj-users@xxxxxxxxxxx"
<aspectj-users@xxxxxxxxxxx>
|
Date:
| 09/10/2013 05:11 PM
|
Subject:
| [aspectj-users] LTWWorld Memory details
|
Sent by:
| aspectj-users-bounces@xxxxxxxxxxx |
Hi All
I am looking for some clarification
on memory consumption of aspectj. I am new to aspect so I don’t have clear
understanding of what happens under the hood.
I am using aspectj version 1.5.3. I
was running yourkit profiler on our application and found lot of memory
is consumed by aspect.
After my application boots up (Forced
GC):
1. org.aspectj.weaver.ltw.LTWWorld
is consuming about 41 mb
2. org.aspectj.apache.bcel.util.ClassLoaderRepository
is consuming about 21mb.
Screen Shot from YourKit :
After a while memory held drops down
:
1. org.aspectj.weaver.ltw.LTWWorld
is consuming about 21 mb
2. org.aspectj.apache.bcel.util.ClassLoaderRepository
about 100kb
Screen shot from YourKit:
Total number of class loaded : 8304
Framework : Spring and Hibernate.
Questions:
1. Why is so much
memory held during startup?
2. Why so much
memory is released and what is the trigger point.
3. Is there any
optimization that I can do ?
Thanks and Regards
-Aditya N Prasad
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you