Created
April 8, 2014 19:27
-
-
Save yorickpeterse/10176336 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/rss_growth_during_redis_publish.rb b/rss_growth_during_redis_publish.rb | |
index f6d1526..cecfdef 100755 | |
--- a/rss_growth_during_redis_publish.rb | |
+++ b/rss_growth_during_redis_publish.rb | |
@@ -8,6 +8,14 @@ require 'celluloid/io' # Unclear if this is required, or if Celluloid will hand | |
require 'celluloid/redis' | |
require 'celluloid/autostart' | |
+Thread.new do | |
+ loop do | |
+ puts "Fibers: #{ObjectSpace.each_object(Fiber).count}" | |
+ | |
+ sleep 5 | |
+ end | |
+end | |
+ | |
class Leaky | |
include Celluloid | |
# include Celluloid::IO | |
@@ -26,7 +34,7 @@ class Leaky | |
def publish | |
@redis.publish "test", @publish_count += 1 | |
- # @redis.publish "test", 'a' # RSS growth is independent of message length | |
+ # @redis.publish "test", 'a' # RSS growth is independent of message length | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment