java-dev

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: Again -J-Xms48m -J-Xmx128m etc Michael Hall Tue Jun 23 16:00:56 2009


On Jun 23, 2009, at 1:23 AM, Pierre Stadelmann wrote:

I tried, but failed. Something's strange:

here is the man pages of javac:


How about posting the error?
If I remember right, which I might not be, the earlier suggestion was to the ant doc runtime options environment variables. Again, posting the error might make for better guesses. But if the error is actually javac running out of memory looking at the ant doc for that...
http://ant.apache.org/manual/CoreTasks/javac.html
might be more help.

I was thinking fork it off as a separate process might help and checked if the ant javac task supports that, it does.

fork
Whether to execute javac using the JDK compiler externally; defaults to no.

This might get you more memory as a separate process.
Then I also noticed...

memoryInitialSize
The initial size of the memory for the underlying VM, if javac is run externally; ignored otherwise. Defaults to the standard VM memory setting. (Examples: 83886080, 81920k, or 80m)

memoryMaximumSize
The maximum size of the memory for the underlying VM, if javac is run externally; ignored otherwise. Defaults to the standard VM memory setting. (Examples: 83886080, 81920k, or 80m)

Which appear to go with fork for the purpose you want.

I suppose here I might mention...
http://www.geocities.com/mik3hall/javasrc.html#antdoc

An XSLT transform for ant build files to HTML that I wrote a while back when I was learning some of the XML related stuff. Acutally, I'm looking at XML stuff again now, I should probably see if I can improve on this while I'm at it. One thing it does is insert links to the ant task documentation for the tasks included in the build targets. You have to add the xml-stylesheet processing instruction shown to the ant file, build.xml or whatever. Then just open the build file in a XSLT handling browser like Safari and find the compile target and click on javac to go to the doc.

Or Google around for that, someone's probably done a better one than my learning effort.

Mike Hall        hallmike at att dot net
http://www.geocities.com/mik3hall
http://sourceforge.net/projects/macnative



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/alexiscircle%40gmail.com

This email sent to [EMAIL PROTECTED]