• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting java.lang.OutOfMemoryError while running wsdeploy ant task

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 30
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I child proofed my house but they still get in. Distract them with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic