Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant build with wsdl - Memory Out Of Space Error

 
Aravind Kunnath
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While doing a build clean build deploy on a component (that has around 100 xsd and 5 wsdl), I am always getting Memory Out Of Space Error -XX:PermSize. Googling the error gave me a command to increase the maxPermSize and I have increased it to 2048. But the error persists.

OS : Windows XP SP3
ANT 1.7.1
JDK 1.6 update 17

Any guidance is appreciated. Would changing the build tool to maven do any help?




 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Before accessing whether Maven would help, you need to understand more about the error. Maven wouldn't help directly as Ant isn't giving the error, something it is calling is. I say directly because using Maven might force you to restructure your project into smaller ones. Which could help. You could do that in Ant too.

What part of your build is throwing the out of memory error? Compiling? Running a web services tasks? Be specific.
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We had Permgen errors consistantly.

What seems to happen on Windows at least using maven, is that something is "remembered".

Cold reboots allowed the builds to run.

Running one or two in succession would lead to this error.

It is annoying and I feel your pain.

WP
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure that you increased the correct perm size? It could be that Ant is still using the default value.

What have you done to verify that Ant picked up the correct perm size? For example, have you looked at garbage collection data to verify the perm size? Have to looked at the command line used to run the java process hosting Ant to ensure that the command line has the perm size set? Have you used a Java monitoring tool, such as VirtualVM, to see what Ant's perm size is set to?
 
Aravind Kunnath
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter - Searching on the web about this type of error gave me the command to set maxpermsize. I did give an echo in the build.bat file to see whether the permsize have been modified for that instance of build, and it did change. I have not been able to check all the things that you have kindly noted in your response, but I did try managing some of the Virtual memory of the Windows XP.

Hi Jeanne - It is the web services part which is throwing an error

Interesting part (at least for me) - I have managed to build the same component (without any modifications to any of the windows properties) successfully in a different desktop and a laptop. Configurations are different though!

The goal is accomplished, which was to build and get the required dependencies in place. I am keen to know/assist to know how a fix/resolution can be achieved.

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you doing this build from a command line or within an IDE?
 
Aravind Kunnath
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Command line
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic