Ask a Question

Increasing memory doesn't seem to increase it

Garry
Occasional Contributor

Increasing memory doesn't seem to increase it

Hi,

I have 32-bit SOAPUI Pro v4.5.0 running on 64-bit Windows7 OS with 4GB RAM & 64-bit JRE 1.7 running. I tried also 64-bit SOAPUI Pro v4.5.0, but I've got same issue.

When increasing memory in soapui-pro.bat to JAVA_OPTS=-Xms256m -Xmx2048m, pc still allocates only ~ 600 - 800 MB for soapui, however pc total memory usage shows 2.5 GB of all processes, so there is still enough empty space.

I have a large projects in soapui, they 've go stuck when running one package of testcases in sequence as it's quite big. I am not able to open up any step withing testcase to see input. I have also set Discard OK Result = true for testcases, but issue is still lasting.

What I am doing wrong, why cannot increase memory?

Regards,

JJ
8 REPLIES 8
SmartBear_Suppo
SmartBear Alumni (Retired)

But do you get an out of memory error message in soapUI?

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Garry
Occasional Contributor

yes, every time I have run package. I am wondering how soapui works. If I specify 2GB in bat as java parameter, soapui still allocates only something about 800MB - this is what I see in memory log tab
SmartBear_Suppo
SmartBear Alumni (Retired)

Well the -Xmx2048m parameter specifies the maximum limit of memory usage. This doesn't mean that soapUI always will allocate this much memory, which is essentially a good thing.
Have a look at: http://docs.oracle.com/cd/E13174_01/alu ... tches.html

Is it possible for you to send us your soapui error log to our support form: http://www.soapui.org/Support/support-overview.html so we can have a closer look of what may causing this.
If you also could provide your project file, that whould help us a lot.


--
Regards

Erik
SmartBear Sweden

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Garry
Occasional Contributor

Thank you for info.

Sorry, I cannot provide project, but I will send you error log. I previously noticed, that out of memory error rises when large responses are coming from server, so I set soapui preferences as following:

1. UI Settings - Garbage Collection Interval - 20
2. over TestCase Options - Discards successful TestStep results to preserve memory = true

Is there any other option I could try to set to prevent out of memory error?
Currently, I have tried following:

1. import project about 4,4 MB size to soapui and run all packages, it worked fine. I saw in task manager soapui consumes 1,13 MB
2. import project about 8,4 MB size to saopui and run all packages, it didn't work at all. I saw in task manager soapui consumes 1,17 MB.
I've got instant alert window "Exit without saving?" and Perm gen space error in soapui error log:

2012-12-04 09:40:36,401 ERROR [errorlog] java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
2012-12-04 09:40:36,447 ERROR [errorlog] java.lang.Exception: java.lang.OutOfMemoryError: PermGen space
java.lang.Exception: java.lang.OutOfMemoryError: PermGen space
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.load(AbstractDefinitionContext.java:162)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.load(AbstractDefinitionContext.java:115)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.loadIfNecessary(AbstractDefinitionContext.java:91)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.getInterfaceDefinition(AbstractDefinitionContext.java:79)
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.getDefinition(WsdlContext.java:71)
at com.eviware.soapui.impl.wsdl.WsdlOperation.getBindingOperation(WsdlOperation.java:754)
at com.eviware.soapui.impl.coverage.WsdlOperationCoverage.<init>(SourceFile:47)
at com.eviware.soapui.impl.coverage.WsdlInterfaceCoverage.<init>(SourceFile:41)
at com.eviware.soapui.impl.coverage.ProjectCoverage.a(SourceFile:192)
at com.eviware.soapui.impl.coverage.ProjectCoverage.c(SourceFile:162)
at com.eviware.soapui.impl.coverage.ProjectCoverage.<init>(SourceFile:133)
at com.eviware.soapui.impl.wsdl.panels.project.ProWsdlProjectTestSuitesTabPanel.a(SourceFile:83)
at com.eviware.soapui.impl.wsdl.panels.project.ProWsdlProjectTestSuitesTabPanel.addTabs(SourceFile:73)
at com.eviware.soapui.impl.wsdl.panels.project.WsdlProjectTestSuitesTabPanel.buildTabs(WsdlProjectTestSuitesTabPanel.java:196)
at com.eviware.soapui.impl.wsdl.panels.project.WsdlProjectTestSuitesTabPanel.buildContent(WsdlProjectTestSuitesTabPanel.java:100)
at com.eviware.soapui.impl.wsdl.panels.project.WsdlProjectTestSuitesTabPanel.buildUI(WsdlProjectTestSuitesTabPanel.java:93)
at com.eviware.soapui.impl.wsdl.panels.project.WsdlProjectTestSuitesTabPanel.<init>(WsdlProjectTestSuitesTabPanel.java:80)
at com.eviware.soapui.impl.wsdl.panels.project.ProWsdlProjectTestSuitesTabPanel.<init>(SourceFile:65)
at com.eviware.soapui.impl.wsdl.panels.project.ProWsdlProjectDesktopPanel.buildTestSuitesTab(SourceFile:114)
at com.eviware.soapui.impl.wsdl.panels.project.WsdlProjectDesktopPanel.addTabs(WsdlProjectDesktopPanel.java:114)
at com.eviware.soapui.impl.wsdl.panels.project.ProWsdlProjectDesktopPanel.addTabs(SourceFile:52)
at com.eviware.soapui.impl.wsdl.panels.project.WsdlProjectDesktopPanel.buildTabbedPane(WsdlProjectDesktopPanel.java:107)
at com.eviware.soapui.impl.wsdl.panels.project.WsdlProjectDesktopPanel.<init>(WsdlProjectDesktopPanel.java:99)
at com.eviware.soapui.impl.wsdl.panels.project.ProWsdlProjectDesktopPanel.<init>(SourceFile:46)
at com.eviware.soapui.impl.wsdl.panels.project.ProWsdlProjectPanelBuilder.buildDesktopPanel(SourceFile:34)
at com.eviware.soapui.impl.wsdl.panels.project.ProWsdlProjectPanelBuilder.buildDesktopPanel(SourceFile:20)
at com.eviware.soapui.ui.TabbedSoapUIDesktop.showDesktopPanel(SourceFile:214)
at com.eviware.soapui.support.UISupport.showDesktopPanel(UISupport.java:590)
at com.eviware.soapui.support.UISupport.selectAndShow(UISupport.java:578)
at com.eviware.soapui.impl.wsdl.actions.support.ShowDesktopPanelAction.perform(ShowDesktopPanelAction.java:53)
at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:89)
at com.eviware.soapui.support.action.swing.DefaultActionList.performDefaultAction(DefaultActionList.java:107)
at com.eviware.soapui.ui.Navigator$TreeMouseListener$1.run(Navigator.java:408)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: PermGen space



Regards,
JJ
SmartBear_Suppo
SmartBear Alumni (Retired)

According to your error, it's the PerGen space that's running out.
Have you tried setting the
 -XX:MaxPermSize
parameter as well?

--
Regards

Erik
SmartBear Sweden

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Garry
Occasional Contributor

Hi,

not I haven't. Where should I place this parameter?

Rgds,

JJ
SmartBear_Suppo
SmartBear Alumni (Retired)

You could put it on the
JAVA_OPTS=-Xms256m -Xmx2048m
line.

--
Regards

Erik
SmartBear Sweden

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

@SmartBear_Suppo I came across to the similar issue. I also have a Win 7 64-bit 8GB computer. What size should I put in for -XX:MaxPermSize. 

 

Should it be half of my total memory which will be -XX:MaxPermSize4094m??

 

Please help?

cancel
Showing results for 
Search instead for 
Did you mean: