by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 29 13:38
    paddor commented #141
  • Feb 03 15:40
    maxyharr commented #137
  • May 03 2019 18:02
    gnufied unassigned #151
  • Feb 01 2018 01:49
    iffyuva opened #144
  • Feb 01 2018 01:48

    iffyuva on add-support-for-2-4

    add latest 2.4 to travis (compare)

  • Jan 31 2018 18:02

    emilsoman on add-support-for-2-3

    (compare)

  • Jan 31 2018 18:02

    emilsoman on master

    add latest 2.2 and 2.3 versions… reproduce failure issue because… ignore IMEMO objects which are … and 3 more (compare)

  • Jan 31 2018 18:02
    emilsoman closed #143
  • Jan 31 2018 17:04
    iffyuva edited #143
  • Jan 31 2018 17:02
    iffyuva review_requested #143
  • Jan 31 2018 17:02
    iffyuva review_requested #143
  • Jan 31 2018 17:02
    iffyuva review_requested #143
  • Jan 31 2018 17:02
    iffyuva edited #143
  • Jan 31 2018 16:54
    iffyuva synchronize #143
  • Jan 31 2018 16:54

    iffyuva on add-support-for-2-3

    conditionally include T_IMEMO c… (compare)

  • Jan 31 2018 16:45
    iffyuva synchronize #143
  • Jan 31 2018 16:45

    iffyuva on add-support-for-2-3

    not sure what changed for cpu s… (compare)

  • Jan 31 2018 16:32
    iffyuva synchronize #143
  • Jan 31 2018 16:32

    iffyuva on add-support-for-2-3

    ignore IMEMO objects which are … (compare)

  • Jan 31 2018 16:30
    iffyuva synchronize #143
krishnaprasad
@kp2222
I am pretty sure the server listening on 5556 but the client does not seems to be connecting :(
Ishan Khare
@ishankhare07
@kp2222 is there any error reported on the client window?
Emil Soman
@emilsoman
@kp2222 which branch/versions are you trying with ?
krishnaprasad
@kp2222
@ishankhare07 @emilsoman I figured out the problem. The server was listening on the loopback IP and I was trying to connect to the vagrant vm from the host machine :)
@emilsoman @ishankhare07 do you think it makes sense to make the binding interface configurable ? If it does, may be it's some thing small enough that I can start with
Emil Soman
@emilsoman
@kp2222 glad you figured it out. Again, which branch are you testing ?
krishnaprasad
@kp2222
@emilsoman master
krishnaprasad
@kp2222
@emilsoman I tried manually editing the IP and it worked perfectly!! :)
Emil Soman
@emilsoman
@kp2222 so the scenario is, you’re running the server in a vagrant box and trying to connect to it using a client running on the host, is that so ?
Ideally the server shouldn’t have to bind the sockets on any other IP other than 127.0.0.1, in the client you can provide the IP of the vagrant box, and it should work. I guess that’s what you did too
krishnaprasad
@kp2222
@emilsoman yes .. I am running the server in vagrant box and I was trying to connect to it from the host. Actually I made it working by editing the ip in the rbkit source. My understanding was that loopback IP is only accessible inside the host.
Emil Soman
@emilsoman
hmm, okay . so initially we had a "tcp://*:5556” when binding the socket in the server.
I changed it to use 127.0.0.1 explicitly because zmq was not giving me a failed status if port 5556 is already taken while binding to the port.
krishnaprasad
@kp2222
@emilsoman binding to loopback is generally a good idea I think because it prevents accidentally exposing the app. I think rails also has started doing this this recently with the option of changing by a command line arg
Emil Soman
@emilsoman
if there’s a way to bind to 0.0.0.0 and zmq is able to give us a failed status if the ports are already taken, we’re good . i don’t know if that’s possible
cool
makes sense
yeah, you mean the rails s -b 0.0.0.0 command, right ?
krishnaprasad
@kp2222
yes
@emilsoman is there any public documentation for the ruby internal APIs .. I was trying to go through the source code and some times I could not really figure out what a function such as rb_profile_frames ( I am assuming this is an internal ruby API)
Emil Soman
@emilsoman
but the commonly used API for C extensions are documented in doc/extension.rdoc in ruby source
rb_profile_frames and such are not really documented
krishnaprasad
@kp2222
@emilsoman ah ok..
Emil Soman
@emilsoman
gitter is posting my messages in the wrong order for some reason !
krishnaprasad
@kp2222
:)
krishnaprasad
@kp2222
@emilsoman thanks for all the help. I will continue going though the code. I think I need to go through some C refresher material :)
Emil Soman
@emilsoman
sure, no probs
in fact you should visit our office sometime when you are free and we can pair
:)
krishnaprasad
@kp2222
Thanks .. will do
Pavel Evstigneev
@Paxa
Hello guys, I try to use it, but it doesn't work. It worked once for a short time and then start showing errors when I start ruby server. I made some notes https://gist.github.com/Paxa/ed01ea61db0fc789578a
How to run it? For example with sinatra application
Emil Soman
@emilsoman
@Paxa thanks for the notes
"Try to install on OS X 10.10 it fails, aftet brew install zeromq msgpack installed. Probably need to add it in README.md in Usage section”
what steps did you follow ?
clone the gem and bundle install inside rbkit ? or add it to gem file of another project and bundle install there ?
"Lack of example, would be nice to have copy-paste simple code. Something like rack or sinatra app, or even WebRick app.” - there’s an “experiments/using_rbkit.rb” which shows usage for a simple ruby script.
"Connect via GUI and it's empty charts. It show it's connected, nothing happening After I add Rbkit.start_profiling it started to work” - this is expected behavior . Rbkit.start_server will just start the server and remain dormant. Rbkit.start_profiling will start with all profiling turned on
Yuva
@iffyuva
@Paxa we will look into it.
for a start, lets consider a simple ruby script which starts rbkit server, and then allocates objects
Pavel Evstigneev
@Paxa
Eventually I found experiments/using_rbkit.rb because I checked all files
Yuva
@iffyuva
cool
we generally use that file for testing purposes.
@Paxa did you install rbkit bundle after compiling?
Yuva
@iffyuva
im actually confused by the notes that you have shared :)
Pavel Evstigneev
@Paxa

First I try to install as gem install rbkit, then I found that gem updated more then half year ago, so I installed from git as:

git clone git@github.com:code-mancers/rbkit.git
cd rbkit
gem build rbkit.gemspec
gem install ./rbkit-0.1.10.gem

After that I found experiments/using_rbkit.rb i run:

rake compile
ruby ./experiments/using_rbkit.rb
Yuva
@iffyuva
did running ruby ./experiments/using_rbkit.rb work?
Shimon Shtein
@ShimShtein
Hello, having trouble to use rbkit with passenger. It seems like it is not recording data from processes spawned by passenger. Any ideas what should I do in my rails app to enable it?
Yuva
@iffyuva
@ShimShtein sorry for late reply. Rbkit is not meant to be multi process tool. It works with single process only