polarnik commented on issue #6336:
URL: https://github.com/apache/jmeter/issues/6336#issuecomment-2656655921

   I can not reproduce the crash, but I have found a bottleneck.
   
   Steps:
   1. Generate a long file:
   ```bash
   dd if=/dev/urandom of=temp_1g_file bs=1g count=1
   base64 -i ./temp_1g_file -o ./temp_1g_file.txt
   ```
   3. Execute a JSR-223 script with a long response data:
   ```groovy
   String fileContents = new 
File('~/IdeaProjects/github.com/polarnik/temp_1GB_file.txt').getText('UTF-8')
   SampleResult.setResponseData(fileContents)
   ```
   2 iterations
   4. Start a thread group for 2 iteration, go to View Result Tree
   
   
   ## Two configurations:
   
   ### first - default
   
   corretto-17.0.13
   
   -Dapple.eawt.quitStrategy=CLOSE_ALL_WINDOWS
   -Dapple.laf.useScreenMenuBar=true
   -Xss256k
   -XX:MaxMetaspaceSize=256m
   -Dfile.encoding=UTF-8
   -Duser.country=US
   -Duser.language=en
   -Duser.variant
   
   Default settings: Darklaf - Dracula
   
   Memory allocation:
   +4 GiByte after 2 iterations
   -1 GiByte after using GC
   +1 GiByte after opening a View Result Tree
   
   Time:
   - **Application freeze for 2 minutes**
   Thread:
   - AWT-EventQueue-0
    - com.github.weisj.darklaf.ui.scrollpane.DarkScrollPaneUI$1.layoutContainer 
()
     - 
com.github.weisj.darklaf.delegate.ScrollLayoutManagerDelegate.layoutContainer ()
      - javax.swing.ScrollPaneLayout.layoutContainer ()
   
   In two minutes we will see an active View Result Tree
   
   <img width="1379" alt="Image" 
src="https://github.com/user-attachments/assets/a1da66f6-34f1-4a14-bd22-b549c399d26a";
 />
   
   
![Image](https://github.com/user-attachments/assets/746d3314-2980-47d9-8d7e-fbf8456a32af)
   
   
![Image](https://github.com/user-attachments/assets/65bce9ed-3149-4586-88e3-9a5222c19b21)
   
   
![Image](https://github.com/user-attachments/assets/a271c9ce-6a75-45c0-adcf-e09c99f8f3d1)
   
   ### second - look and feel = System
   
   
   
   corretto-17.0.13
   
   -Dapple.eawt.quitStrategy=CLOSE_ALL_WINDOWS
   -Dapple.laf.useScreenMenuBar=true
   -Xss256k
   -XX:MaxMetaspaceSize=256m
   -Dfile.encoding=UTF-8
   -Duser.country=US
   -Duser.language=en
   -Duser.variant
   
   Default settings: System
   
   Memory allocation — **the same**:
   +4 GiByte after 2 iterations
   -1 GiByte after using GC
   +1 GiByte after opening a View Result Tree
   
   Time:
   - **0 time**
   
   
![Image](https://github.com/user-attachments/assets/1343c320-67df-4faa-8325-0429c6a5b4e2)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to