Project

General

Profile

Actions

Bug #1557

closed

Memory leak in DRb

Added by tibur (Thibaut Neiger) almost 15 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
1.8.6
[ruby-core:23670]

Description

=begin
Hi,
I just made a stress test on my distributed ruby service, and I think there is a memory leak, at least in Windows version. It seems that the memory used by the server grows as the clients keep using remote methods. I used the following code samples and created a lot of clients connecting the service.

Service code:

require 'drb'
class Ser
def getAnswer
42
end
end
DRb.start_service("druby://:12345",Ser.new)
DRb.thread.join

Client code:

require 'drb'
DRb.start_service
service = DRbObject.new(nil, 'druby://carotte:12345')
while true
s = service.getAnswer
pp s if ! ARGV.empty?
end
=end

Actions #1

Updated by tibur (Thibaut Neiger) almost 15 years ago

=begin
Version is ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
=end

Actions #2

Updated by rogerdpack (Roger Pack) almost 15 years ago

=begin
might want to try that with the latest one click installer, too. If desired I could build you a copy of the MBARI patched 1.8.6, to see if that helped, too.
Cheers!
-=r
=end

Actions #3

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Project changed from Backport186 to Ruby master
  • Description updated (diff)
  • Status changed from Open to Closed
  • Backport set to 2.5: UNKNOWN, 2.6: UNKNOWN
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0