The trick is that the JVM is already running. You need to start up the JVM with -Xmx512m as I don't believe that XDoclet has a fork option like JUnit. IIRC, you also have the option of setting the ANT_OPTS environment variable, but then you'd need that in a BAT file anyways (or your system environment). Sorry, not much help from me today. :(
David Harkness Sony Pictures Digital Networks (310) 482-4756 -----Original Message----- From: Mich F [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 5:34 PM To: [EMAIL PROTECTED] Subject: Re: [Xdoclet-user] java.lang.OutOfMemoryError Thanks a lot! Is there a way to add -Xmx512m in build.xml rather than ant.bat? I know java, javac, etc. has jvmarg tag, but couldn't find one for <ejbdoclet...> Aslak_Helles�y <[EMAIL PROTECTED]> wrote: Mich F wrote: > Hi, all, > > I got a java.lang.OutOfMemoryError when using ejbdoclet. Is there a > place where I can increase the memory when running xdoclet? > > Thanks, > The standard way that you'd use to increment memory for any java program. Just pass -Xmx512m (or more or less) to your VM. Running from Ant you can do this in a number of ways. One is to do SET ANT_OPTS=-Xmx512m. Check your JDK docs for further detail. Cheers, Aslak > Michelle > > ------------------------------------------------------------------------ > Do you Yahoo!? > The New Yahoo! Search > - > Faster. Easier. Bingo. -- http://blogs.codehaus.org/people/rinkrank/ ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
