Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-7354

Please do not read the whole deployment to memory

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 31.0.0.Beta1
    • 23.0.3.Final, 29.0.1.Final
    • None
    • None

      When starting Arquillian tests, we eventually end up in this line: https://github.com/wildfly/wildfly-core/blob/main/controller-client/src/main/java/org/jboss/as/controller/client/impl/InputStreamEntry.java#L63

      There the whole deployment is copied into a byte array before sending it to the server for deployment.

      We do not use a minimal deployment with just the test-relevant classes, but the full EAR just with the tests added in, to have a more production-like environment for the tests.

      This means the whole big EAR is read into a byte-array and then regularly busts the max-heap.

       

      It would be nice if this could be done instead in some streamed way instead of reading the full deployment to the heap of the test worker process.

              yborgess1@redhat.com Yeray Borges Santana
              Vampire0 Björn Kautler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: