RealNetworks
11 years agoOccasional Contributor
Running out of memory
Hi,
I have a very simple upload file test, but the problem is that when I run it through LoadUI for about 100 req/sec JVM heap and perm size increase very quickly and LoadUI soon runs out of memory. I have increased max heap size and the maxpermsize to few GB but the problem is still there and this seems like a way too much memory consumption for such a simple test and a script.
I was thinking of opening this topic inside the LoadUI section put I suspect that the problem is with the upload script which maybe causes some memory leaks:
Am I doing something wrong here? Should I explicitly dispose file objects at the end of the script, would that help? File attachment is not big, approx. 1MB.
Thank you all for your answers.
Kind regards
I have a very simple upload file test, but the problem is that when I run it through LoadUI for about 100 req/sec JVM heap and perm size increase very quickly and LoadUI soon runs out of memory. I have increased max heap size and the maxpermsize to few GB but the problem is still there and this seems like a way too much memory consumption for such a simple test and a script.
I was thinking of opening this topic inside the LoadUI section put I suspect that the problem is with the upload script which maybe causes some memory leaks:
testFile = new File(testRunner.testCase.testSuite.project.getPath())
resourceDir = new File(testFile.getParentFile(), "testdata")
myFile = new File(resourceDir,"avi_test_file.avi")
// get request
def request = testRunner.testCase.getTestStepByName("UPLOAD - Chunk Upload").testRequest
// clear existing attachments
for( a in request.attachments ) {
request.removeAttachment( a )
}
testRunner.testCase.testSteps["UPLOAD - Chunk Upload"].getHttpRequest().attachFile(myFile, true)
Am I doing something wrong here? Should I explicitly dispose file objects at the end of the script, would that help? File attachment is not big, approx. 1MB.
Thank you all for your answers.
Kind regards