Forum Discussion

robski's avatar
robski
New Contributor
14 years ago

Changing java options for maven-soapui-plugin

I have a SoapUI test project that runs fine when I run it through the interactive package, but fails when run through the maven-soapui-plugin.

It falls over with the error:
java.lang.OutOfMemoryError: Java heap space

That should be simple enough to fix, just up the memory parameter as options to the JVM. But how?

Doing it with Maven or Java environment variables seems not to work. I found a reference to a posting on the web that the plugin runs in its own JVM instance but the full posting was unavailable.

Can anyone suggest how to get the -Xms128m -Xmx1024m into the JVM the plugin is using?

2 Replies

  • robski's avatar
    robski
    New Contributor
    I've still not found a solution to this problem, but have had PMs from people with the same issue asking if I had resolved it.

    In their behalf as well as my own I unashamedly push this topic back to the top of the list in the hope that somebody can help us!

    Thanks!
  • Hi, i met the same issue with the maven plugin plus jetty.
    I've switched back to maven plugin + tomcat and it works fine.
    Are you sure that is a soapui issue and NOT a jetty one ?


    An other working solution is to increase the jvm memory with the environment variable MAVEN_OPTS
    To be sure that the parameters are set, run mvn with -X (debug mode)

    Omar EL Mandour