Bug #1765
closedrdoc runs out of memory on Windows XP with 4GB RAM
Description
=begin
I have installed the binary distribution of Ruby 1.9.1 for Windows XP and tried to run rdoc on the source snapshot from today as follows:
rdoc lib ext -o rdoc -S -T kilmer
After quite a while this fails with "NoMemorError", see copied output below. My PC has 4GB of RAM installed. The same command has completed successfully on the same machine with Ubuntu Linux 9.04 64 Bit Edition.
Output:
Generating HTML...
C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:327:in sort': failed to allocate memory (NoMemoryError) from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:327:in
index_to_links'
from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:225:in block in gen_into' from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:216:in
each'
from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:216:in gen_into' from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:180:in
generate_html'
from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:86:in g enerate' from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/rdoc.rb:279:in
document'
from C:/programs/ruby-1.9/bin/rdoc.bat:23:in `'
=end
Updated by Tichy (Björn Günzel) almost 15 years ago
=begin
I forgot to note: I tried to run this on my desktop machine because rdoc ext lib never completes on my MacBook with 2GB RAM. I think after a while it starts swapping so much that it slows to a crawl.
=end
Updated by rogerdpack (Roger Pack) almost 15 years ago
=begin
As a note, when I run rdoc [v2.3] against trunk on a linux box of mine, it takes up ~1.2 G memory (that's what top shows, so possibly more) then does complete about 10 minutes later. Also with some gems it also uses up all available memory for some reason.
=end
Updated by rogerdpack (Roger Pack) over 14 years ago
=begin
After quite a while this fails with "NoMemorError", see copied output below. My PC has 4GB of RAM installed. The same command has completed successfully on the same machine with Ubuntu Linux 9.04 64 Bit Edition.
http://rubyforge.org/tracker/index.php?func=detail&aid=27257&group_id=627&atid=2474
might help.
-r
=end
Updated by naruse (Yui NARUSE) over 14 years ago
- Status changed from Open to Assigned
- Assignee set to drbrain (Eric Hodel)
=begin
=end
Updated by drbrain (Eric Hodel) over 13 years ago
- Status changed from Assigned to Closed
=begin
I recommend upgrading to a newer version of RDoc for 1.9.1:
gem install rdoc
Fixing this in 1.9.1 is too hard.
=end