I’m using wsimport in Java 1.6 (i.e. build 1.6.0-b105) on Windows XP 5.1 and I’m getting a out of memory exception. I used to JConsole and it seems wsimport process is maxing out at 64 MB. How can I increase the heap memory for wsimport?
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For me setting environment variable WSIMPORT_OPTS (suggested in another answer, and apparently working in older versions of wsimport) does not seem to have any effect.
For me the following does work: instead of
wsimportusewhere
$JAVA_HOMEis the JDK (not JRE) root folder.On this Java command line you can then add whatever JVM options you want. (I needed
-Djavax.net.debug=allfor SSL trust debugging.)(I’m using Ubuntu with OpenJDK 6, package version 6b20-1.9.7-0ubuntu1.)