Hi, I've been trying to lower the memory footprint of an EAR deployed to TomEE 8.0.0.
Here is a screenshot of the heap histogram. The total Old Gen is about 450MB (after forcing multiple GC's). If I boot TomEE without my EAR then the old gen is about 6MB. [image: Screenshot from 2019-12-11 12-53-12.png] The entire ear is 140MB zip, most of which is in the ears /lib directory which contains libs such as Kafka, hazelcast, apache POI, Google cloud APIs, AWS client APIs etc etc. In total our code has about 100 actual EJB's. If i remove files from the lib folder in the ear then I can see that the memory used by the annotation finder is lowered. Is there any way I can tell TomEE that it need not bother scanning everything in the /lib folder of my EAR for annotations and fulling up the heap. I already set openejb.deployments.classpath.include=.*jg-arch-core-impl.* to scan only the one jar in /lib which does have EJB's in it and it seems to obey this property but it doesn't seem to mean that annotation processing is skipped for all these other jars in /lib Thanks! Paul Carter-Brown Director Jini Guru m: +27 (0) 83 442 7179 <+27834427179> a: 1st Floor, Golf House, Design Quarter, Cnr. William Nicol and Leslie Johannesburg, South Africa w: jini.guru e: [email protected] Disclaimer: This message and/or attachment(s) may contain privileged, confidential and/or personal information. If you are not the intended recipient you may not disclose or distribute any of the information contained within this message. In such case you must destroy this message and inform the sender of the error. Jini Guru may not accept liability for any errors, omissions, information and viruses contained in the transmission of this message. Any opinions, conclusions and other information contained within this message not related to Jini Guru official business is deemed to be that of the individual only and is not endorsed by Jini Guru.
