Forum Discussion

Viswanath_Gunda's avatar
Viswanath_Gunda
Occasional Contributor
16 years ago

[PermGen space] [discarded]

Hi. I have SoapUI Pro 2.5.1 Trial installed on my machine here. I am performing some Load Testing on one of our web service methods. All this load test does is sends a Soap request again and again. It has only one assertion that looks for an element in Soap response.
-Server that I am using for Load Generation is a WinXP machine with 3 Gig ram.
-I changed JVM options to allocate max memory 1536 Mb to loadtestrunner(in .bat).
When I run the test using simple strategy with 200 concurrent threads, after about 3-4 mins, I see failures with reason "PermGen space] [discarded]". Also, the only assertion that I have used in validating the request fails, even though the element that I am looking for exists in the Response. The response time for the request in all failures is more than 30 Secs.

Pls provide suggestions.
  • Viswanath_Gunda's avatar
    Viswanath_Gunda
    Occasional Contributor
    Hi, I added XX:MaxPermSize=128m to the Java Options, and Now I can run the same scenario mentioned earlier for a little longer time about 8-10 Minutes and then I would get the error again.
    So I increased the MaxPermSize to 256, and I cannot seem to start SoapUI at all.
    I had to bring it down to 128.

    Pls someone help. THanks.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    what kind of assertion is this? Can you share the project? (attach it here..)

    If you increase PermGen space you should also increase the -Xmx setting, did you do that?

    regards!

    /Ole
    eviware.com
  • Viswanath_Gunda's avatar
    Viswanath_Gunda
    Occasional Contributor
    Hi Ole, I increased -Xmx also. Currently my java opts are set to "-Xms128m -Xmx1536m -XX:MaxPermSize=128m".  This is generic error which I get while load testing a Soap Request with over 150 threads (simple strategy) from one machine. The project XML is attached.

    I am also getting a socket timeout exception (null/empty response) during load testing on the Soap request inspite of setting the Socket time to 600000 in global settings. In contrast, the Load Test results for the same request displayed a max step time as 99361.
  • Viswanath_Gunda's avatar
    Viswanath_Gunda
    Occasional Contributor
    Hi Ole, do you have any suggestions for me?

    Today, when I was running tests with the previously mentioned Java Opts, I started receiving PermGen Space errors 3 minutes after I started the test. I dont know why but the test execution was really worse today. Can you pls help me out.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    I'll have a look at your project.. try setting the timeout to 0, which should make it wait indefinitely..

    regards,

    /Ole
    eviware.com
  • Viswanath_Gunda's avatar
    Viswanath_Gunda
    Occasional Contributor
    I also had another quick question: Every Soap Response that is received, will that also reside in the Memory used by SoapUI for Load testing.

    In my scenario here, each initial response from the server would be alteast 500 bytes and this response size would increase during the course of the load testing and it could up to 100 Mb depending on the duration of the load. I was wondering if the response size is using up the memory?. I may be wrong, but just a thought. Thanks again.