Project

General

Profile

Bug #1557

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

=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 
 

Back