AspectJ - temporary weaving in production systems

Does anyone have any experience using AspectJ's pure time in production systems (mostly interesting events related to Tomcat)? I am a little worried about the amount of memory and processor overhead.

+6
java performance aop tomcat aspectj
source share
2 answers

I would not have thought that this would have a significant impact on other AOP-related libraries, such as cglib, which we use a lot on production systems to generate the AOP proxy in Spring. Performance is excellent, but the backup pool has increased memory (due to the large number of synthesized classes), which can be a problem if it could not be carefully controlled.

+3
source share

I would advise you to do a time compilation for aspectj. You can do this in your build using ant or maven and in development in Eclipse using the AJDT plugin.

Weaving time works in the totem. I had a production system that worked for several months, but switching to compilation during friction made setup and maintenance a lot easier.

+1
source share

All Articles