Forum Discussion

M_McDonald's avatar
M_McDonald
Super Contributor
16 years ago

Memory usage with large data driven test

Hi -

I am running a data driven test case with about 100 rows of data. It calls 2 other test cases during each loop. It also uses the methods of an external Groovy class, but they are all declared static.

The memory log looks like this:

[tt:2v2i70r5]1) Startup soapUI, no projects open:               47 M
2) Open the project                                55 M
3) Open the test case                              70 M
4) Max during the run                             350 M
5) After the run                                  318 M
6) After running GC                               221 M
7) After waiting a few minutes                    178 M[/tt:2v2i70r5]

Any advice on how I can find out what's chewing up all the memory and not releasing it?

43 Replies

  • hehe.. ok.. and these full request and response messages you are saving.. how large are they in general?

    regards!

    /Ole
    eviware.com
  • EADS_Support's avatar
    EADS_Support
    Occasional Contributor
    Hi Ole

    I've written some groovy script to output the req/res xml to file and they are coming in at about 8.5/4.5 KB respectively, this does work (takes about half an hour to run through) however the powers that be have requested that the req/res be contained within the xls doc

    I'm new to groovy scripting and have to do a fair bit of searching about to find out how to do stuff so whilst I'm sure there is probably a work around by writing out to the files then reading them in and putting them into excel (i.e. append the ds output) on a record by record basis this seems like a very long winded approach especially when the functionality exists to write directly to the excel file for a test case run

    any suggestions?

    Cheers
    Mike
  • Hi,

    ok.. either way.. the limit here is the internal excel handling, and I can't come up with any good workaround so I have to recommend you to use some other kind of datasink, perhaps a File DataSink could work (which you could then import into Excel) !?

    sorry for the inconvenience.

    regards!

    /Ole
    eviware.com