-
1. Re: How to specify -mx with wsdl2java?
mielket Mar 3, 2009 3:58 AM (in response to weingrub)If you open the wsdl2java script in a text editor you can see it has the Java heap size hardcoded:
"%JAVA_HOME%\bin\java" -Xmx128M ...
You can change the maximum heap size there, perhaps give it up to 512M in case of really large wsdl files.
-
2. Re: How to specify -mx with wsdl2java?
weingrub Mar 3, 2009 9:40 AM (in response to mielket)Thanks for the response, however, as I said, that doesnt help. I change the -Xmx2048m (2 gigs!) and even that has no effect. I dont think the memory options is being passed to the compiler....
-
3. Re: How to specify -mx with wsdl2java?
mielket Mar 3, 2009 9:44 AM (in response to weingrub)Oh I seem to understand now. The problem is the java compiler that gets kicked off because of specifying -compile to wsdl2java. It is this Java compiler that runs out of memory, correct?
-
4. Re: How to specify -mx with wsdl2java?
mielket Mar 3, 2009 12:11 PM (in response to weingrub)I just checked the source code and there is currently no option for specifying a Java heap size to be used by the compiler.
I consider it a valid enhancement and have raised CXF-2081.