Closed volodya-lombrozo closed 2 months ago
The main problem with high memory consumption relates to XmirRepresentations
and XmirRepresentation
classes. When the plugin starts parsing bytecode, it opens all class files , parses them into XML
and stores them in a List
container, which is extremely suboptimal, of course. We should use a different approach with streams where the plugin will handle files one by one without storing large pieces in intermediate containers.
When I run the
spring-fat
integration test in opeo-maven-plugin, I get the following exception duringdisassble
phase:It is a performance issue which we have to solve as soon as possible. Some profiling might be required to analyze where we have the problem with excessive object allocation.