Memory consumption is due to Aegis Databinding. In documentation, we can see 2 points :
1) About AegisDatabinding : "If you make a first-class bean for a databinding, be sure to use scope='prototype' if you are inclined to define more than one endpoint." => It is clear that AegisDataBinding has to be scope "prototype" 2) About AegisContext : "It is probably not possible to share an AegisContext amongst databindings." I have tried in our application the scope "singleton" for AegisContext and it is much more less memory consumming. Now, i don't know if i can use it because the documentation is not clear about that. Best regards. -------- Message d'origine-------- De: Laurent Michenaud Date: lun. 18/01/2010 15:00 À: [email protected] Objet : cxf and memory consumption Hi, At the end of the init of our application, we have added a System.gc() call and we print just after the free memory. Then, we have made some tests in which we increased the number of configured web services. I have computed an average of 2.2Mo per Web Service. Does it appear to you a normal thing ? what can be done to decrease cxf memory consumption ? We're using CXF 2.2.5 (embedded in Spring 2.5.6) with aegis databinding. Any information on that topic are welcome. Thanks
