Forum Discussion

sanj's avatar
sanj
Super Contributor
6 years ago

Never seen this before

Ready API was consuming 2 gigs of RAM

and when I forcefully shut it down

I lost quite a bit of my work which was saved

 

2 Replies

  • groovyguy's avatar
    groovyguy
    Champion Level 1

    How much RAM does your machine have? I've noticed a lot that, for larger projects that have huge requests and/or responses possible that ReadyAPI can use a lot of memory. Have you adjusted the memory parts of the .vmoptions file yet? I have a 32gb machine and let ReadyAPI use up to 24gb. I don't run into this problem often, but it can still happen to me.

     

    If you run into this still, another option I found was to develop my tests within the gui of ReadyAPI and then use the testrunner.bat/testrunner.sh file to run the tests headless. This consumes much less RAM.

     

    Finally, I've learned a well place groovy script test step or assertion can help, that does the following:

     

    System.gc();

    This forces ReadyAPI to garbage collect.

    • Olga_T's avatar
      Olga_T
      SmartBear Alumni (Retired)

      Hi all,

      Great suggestions, Matthew. Thank you!

      sanj, does any option suggested above help you?