DO NOT REPLY [Bug 33162] - OutOfMemoryException when compiling a large project

2005-03-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33162





--- Additional Comments From [EMAIL PROTECTED]  2005-03-02 19:10 ---
You can bump the memory available to javac without fork, along with everything
processed by the jvm ant is running by specifying the -Xmx option in ANT_OPTS
(or by tinkering your script to start ant.)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33162] - OutOfMemoryException when compiling a large project

2005-03-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33162





--- Additional Comments From [EMAIL PROTECTED]  2005-03-02 10:47 ---
you cant increase the memory for javac without forking, as it is the JVM itself
that is being given the memory allocation -you need a new JVM.

If you really are building big things, try using the jikes compiler instead. Its
a lot faster, and is always in a new process. What it does not do is compile
Java1.5 language extensions yet.

Interesting that you have a 64 bit box, presumably running a 64 bit linux
release? I suspect the memory requirement of 64-bit JVMs to be a lot higher,
just because all pointers doubled in size. I wonder what the default JVM size
has to be -it has to be more than 64M. But as a consequence, wherever you set a
JVM size in ant, those sizes will need to be bumped up too. (unless we try and
be clever and on 64 bit boxes, double all memory allocations. Something to 
consider)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33162] - OutOfMemoryException when compiling a large project

2005-03-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33162


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-03-02 01:15 ---
I used the javac "fork" option with "memoryMaximumSize=800m" and it worked 
fine.   
Now I feel silly.   
  
Anyone know how to pass to javac -Xmx800m without forking?  
   

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33162] - OutOfMemoryException when compiling a large project

2005-03-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33162





--- Additional Comments From [EMAIL PROTECTED]  2005-03-02 00:32 ---
The ammount of physical RAM in your machine has very little to do with how much
memory is actually allocated to the JVM heap. I supposed you could view it as
the upper bound on the heap, but that's not even really true because the host OS
needs some, as do other procs on the box, etc.

Try fiddling with the -Xmx options to increase the maximum heap size. I'm not
sure what the default max heap size is, and it might even vary by vendor (and
perhaps even amongst different VMs from the same vendor).

For a point of reference, to build WebSphere we use -Xmx512M

I've also been able to make javac run out of stack space, but there's a
different flag for that.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33162] - OutOfMemoryException when compiling a large project

2005-03-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33162





--- Additional Comments From [EMAIL PROTECTED]  2005-03-02 00:17 ---
Dunno, but for kicks you might try something like -Xmx128m or -Xmx256m since
you've got RAM to play with...

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33162] - OutOfMemoryException when compiling a large project

2005-03-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33162





--- Additional Comments From [EMAIL PROTECTED]  2005-03-02 00:10 ---
I do not have anything set in ANT_OPTS.   I get the error with SUN 1.5.0, and 
blackdown 1.4.2.  Currently,  I'm using  
 
IBM's 
= 
java version "1.4.2" 
Java(TM) 2 Runtime Environment, Standard Edition (build 2.2) 
IBM J9SE VM (build 2.2, J2RE 1.4.2 IBM J9 2.2 Linux amd64-64 
j9xa641420-20040916a (JIT enabled) 
J9VM - 20040916_0916_LHdSMr 
JIT  - r7_level20040915_1801) 
 
 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33162] - OutOfMemoryException when compiling a large project

2005-03-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33162





--- Additional Comments From [EMAIL PROTECTED]  2005-03-02 00:01 ---
Do you have a -Xmx option set in ANT_OPTS?  What Java version are you using?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33162] - OutOfMemoryException when compiling a large project

2005-03-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33162





--- Additional Comments From [EMAIL PROTECTED]  2005-03-01 23:57 ---
With fork = true, I still get an out of memory error.  Which is strange because 
I have 1.5 
gigs of ram. 
 
compile: 
[javac] Since fork is true, ignoring compiler setting. 
[javac] Compiling 496 source files to /home/martin/Ant/build 
[javac] Since fork is true, ignoring compiler setting. 
 
 
[javac] The system is out of resources. 
[javac] Consult the following stack trace for details. 
[javac] java.lang.OutOfMemoryError 
 
BUILD FAILED 
/home/martin/Ant/build.xml:134: Compile failed; see the compiler error output 
for details. 
 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33162] - OutOfMemoryException when compiling a large project

2005-02-18 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33162





--- Additional Comments From [EMAIL PROTECTED]  2005-02-18 17:23 ---
Is fork an option to the compilation process?  Otherwise, how do I do that? 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33162] - OutOfMemoryException when compiling a large project

2005-02-18 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33162





--- Additional Comments From [EMAIL PROTECTED]  2005-02-18 14:43 ---
Does it help if your fork the compiler?

Maybe Ant is taking the tiny bit of additional memory that pushes your 
compilation
over the edge.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]