postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

Postman 8.0 Runner performance issue

Open ManiacDC opened this issue 4 years ago • 7 comments

Describe the Issue

After running my collection, Postman froze up for a couple minutes. It then unfroze, but started responding very slowly. Memory usage was almost 2GB. About 5 minutes after that, it started running normally and memory usage dropped down to about 1GB. My collection has about 1000 requests and over 2.5k assertions. I did have save responses checked off.

This did not happen with prior versions of Postman.

Steps to Reproduce

Run a large collection, Postman will become unresponsive.

Screenshots or Videos image

Environment Information

  • Platform Type: Native Desktop App
  • Postman Version: 8.0.2
  • Operating System: Windows 10

ManiacDC avatar Jan 27 '21 19:01 ManiacDC

Also noticed today that after running a collection, CPU usage seems to never drop: image

Even after closing the runner tab: image

ManiacDC avatar Jan 28 '21 14:01 ManiacDC

Can you check if Postman keeps logging to Postman Console even after the collection has executed all the requests? I believe that is the issue for me at least.

mstaalesen avatar Feb 04 '21 13:02 mstaalesen

@mstaalesen that appears to be the case for me as well. Nice find.

ManiacDC avatar Feb 10 '21 17:02 ManiacDC

Yep, after the console finally finished logging everything, the CPU usage went down. It appears the console is lagging way behind the actual requests.

ManiacDC avatar Feb 10 '21 17:02 ManiacDC

I created a feature-request to have a way of disabling the logging: https://github.com/postmanlabs/postman-app-support/issues/9544#issuecomment-774499873

mstaalesen avatar Feb 11 '21 12:02 mstaalesen

Update: We have released some Performance Improvements in Collection Runner in Postman version. 10.9.3. This should improve memory usage by runner (by freeing up memory during the run).

Our internal benchmarking suggests that this should improve the usage by 2x( the same amount of memory to be consumed for double the no.of iterations or double the size of the collection)

Please let us know your feedback on the above and if this helps your workflows.

We are trying to gather more information on the performance challenges that you face, please feel free to setup some time with me using this calendly link, if you would like to share more information or walk us through your usecase.

Note: We are evaluating having the option to suppress console logs too meanwhile. Will share more updates on the https://github.com/postmanlabs/postman-app-support/issues/9476#:~:text=May%2020%2C%202021-,Postman%20console%20lags%20behind%20Collection%20Runner%20on%20Desktop%20Application%20%239929,-Open regarding this.

malvikach avatar Feb 27 '23 06:02 malvikach

feature-request 9544 as mentioned above is finally implemented and might solve this problem as well.

NelemaniA avatar Sep 13 '24 11:09 NelemaniA

Hi all 👋

Glad to inform you that we have made some Performance Improvements to collection runner to reduce the CPU utilization/overhead especially while running large collections.

Please let us know if you still see any issues while running large collections. I will be closing this ticket, but please feel free to reopen if your issues still persists.

Cheers! Malvika

malvika-chaudhary avatar Mar 25 '25 11:03 malvika-chaudhary

@malvika-chaudhary Starting from which release is this feature implemented?

NelemaniA avatar Mar 26 '25 14:03 NelemaniA

@NelemaniA you will be able to find this feature from version 11.29.5 onwards

saksham-postman avatar Mar 26 '25 19:03 saksham-postman