• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting java.lang.OutOfMemoryError while running wsdeploy ant task

 
Venkat Paspula
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pablo Abbate
Ranch Hand
Posts: 30
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Venkat Paspula
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic