aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Getting java.lang.OutOfMemoryError while running wsdeploy ant task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Getting java.lang.OutOfMemoryError while running wsdeploy ant task" Watch "Getting java.lang.OutOfMemoryError while running wsdeploy ant task" New topic
Author

Getting java.lang.OutOfMemoryError while running wsdeploy ant task

Venkataramana Pasula
Greenhorn

Joined: Jan 31, 2006
Posts: 8
Hello All,
I am using Ant 1.6.5 & Websphere 6 to build enterprise application.The current build is failing with the following error while it is running wsdeploy ant task
[wsdeploy] Caused by: java.lang.OutOfMemoryError
I am guessing it because of heap size issue.The wsdeploy ant task does not have any options to pass any heap aize parameters.

I looked into both wsdeploy.sh & setupCmdLine.sh.I didn't find anything related to heap size.

Can someone help how to resolve this issue.

Thanks<br />Venkataramana Pasula
Pablo Abbate
Ranch Hand

Joined: Aug 06, 2012
Posts: 30

I'm not used to Websphere, but I suppose that is similar to other containers. Where are you running this task from? you should check for any JAVA_OPTS variable and add the -Xms and -Xmx values,

Hope it helps you,


Nissi Group, Posicionamiento Web, Desarrollo de Software, DiseƱo Web
Blog , LinkedIn
Venkataramana Pasula
Greenhorn

Joined: Jan 31, 2006
Posts: 8
Pablo,
I am running this task from Ant 1.6.5 script ( build.xml ).
I found the following JVM options in wsadmin.sh

PERF_JVM_OPTIONS="-Xms256m -Xmx256m -XX:PermSize=40m" ;;
.

I will try increasing this and see if it works
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting java.lang.OutOfMemoryError while running wsdeploy ant task