Forum Discussion

sam9046's avatar
sam9046
Occasional Contributor
13 years ago

[Resovled] War filesize - do I need common libs?

Hi there,

I really hope someone can help.

When deploying our mock service to our web server (WebSphere) it is crashing the whole server.

It appears to be throwing a java heap out of memory error.

I suspect this is due to the huge war file size that is generated from SOAPUI (49MB).

This is due to the libs folder and all the common libs that are copied across to the war file.

So my question is, how can I get the file size down? Can I remove these common libs? Or which can I remove?

I'm on SOAPUI 4.6.0.

Many thanks in advance,

Sam

5 Replies

  • sam9046's avatar
    sam9046
    Occasional Contributor
    Quick update, reduced the .war file to 35MB and working locally.

    Still, I deploy it to WAS and it crashes WAS. I have to SIGKILL WAS to get it to stop.

    The SystemOut.log shows "Installing application mockservice2_war" as the last entry.

    I'm also getting heap dump logs and java core error logs in my logs directory.

    Any thoughts?
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    hi,
    what are the common libs you are talking about?
    have you try to deploy the war in another server to reproduce the issue?
  • sam9046's avatar
    sam9046
    Occasional Contributor
    Ok I fixed this, just increased the java heap size in the end.

    I still think soapui could be far more intelligent about packaging the libraries it requires rather than all of them.
  • sam9046's avatar
    sam9046
    Occasional Contributor
    redfish4ktc2 wrote:
    hi,
    what are the common libs you are talking about?
    have you try to deploy the war in another server to reproduce the issue?


    Hi, thanks for responding.

    I mean when you package a war file, it creates a lib folder in <warfilename>/WEB-INF/lib

    Most of those libraries aren't required tho. That's all I was referring to.

    Cheers,

    Sam
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Hi

    have you try to deploy the war in another server to reproduce the issue?
    I know there are/were some issues with weblogic server and WAS in the past. Try tomcat or jetty and tell us if you still have the issue

    about the libs, they are all needed by soapui. Regarding what features you use, you could remove some (for instance some amf libs), but this will be a painfull task.