<GitHub97>
[jruby] wleite opened issue #4160: Using SONARQube , with Windows I got this problem on " java.lang.IllegalStateException: Fail to copy report to file" https://git.io/vi6KC
claudiuinberlin has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
tcrawley is now known as tcrawley-away
vali has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
lance|afk is now known as lanceball
tcrawley-away is now known as tcrawley
claudiuinberlin has joined #jruby
enebo has joined #jruby
pawnbox has quit [Remote host closed the connection]
claudiuinberlin has quit [Remote host closed the connection]
olle has quit [Quit: olle]
claudiuinberlin has joined #jruby
bga57 has joined #jruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #jruby
hobodave has joined #jruby
nicksieg_ has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieg_ has quit [Read error: Connection reset by peer]
enebo has joined #jruby
pawnbox has quit [Remote host closed the connection]
nicksieger has joined #jruby
nicksieger has quit [Remote host closed the connection]
nicksieger has joined #jruby
marciol has joined #jruby
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 248 seconds]
pawnbox has joined #jruby
nicksieg_ has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
nicksieg_ has quit [Read error: Connection reset by peer]
nicksieg_ has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieg_ has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
nicksieger has quit [Ping timeout: 264 seconds]
nicksieger has joined #jruby
claudiuinberlin has quit [Remote host closed the connection]
nicksieger has quit [Read error: Connection reset by peer]
claudiuinberlin has joined #jruby
claudiuinberlin has quit [Client Quit]
yipdw has quit [Remote host closed the connection]
yipdw has joined #jruby
<chrisseaton>
Does anyone know what has happened to Ruby Rogues? I can see lots of people saying something has happened on Twitter, but no evidence at all of what it actually is that has happened.
nicksieger has joined #jruby
enebo has quit [Quit: enebo]
pilhuhn is now known as pil-afk
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
dannyNL has joined #jruby
prasunanand has quit [Ping timeout: 250 seconds]
shellac has quit [Quit: Leaving]
prasunanand has joined #jruby
akp has joined #jruby
<akp>
hey, is there away to get the sizeof an object?
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
<chrisseaton>
akp: the size of an object in bytes? It's hard to say that in the JVM, and although if you want to do it I'll help you figure it out but are you sure you really want the size of an object? What are you trying to achieve?
<akp>
chrisseaton: i'm using logstash, and its stuff is written in jRuby. I have a module in which i would like to check the size of the message passing through the system
<akp>
for some stats
nicksieger has quit [Ping timeout: 276 seconds]
<akp>
just wondering if there is some size/sizeof() type operator
<chrisseaton>
There is objspace's memsize_of
<chrisseaton>
But I'm not sure JRuby implements it
nicksieger has joined #jruby
<chrisseaton>
Looks like it doesn't
<chrisseaton>
If you want to have a general idea of size, maybe just add up 8 bytes per fixnum, and byte length per string and symbol that you're sending
<akp>
chrisseaton: what do you mean per fixnum?
<chrisseaton>
If you want an approximation of the relative size of an object, look at all the instance variables in it and count 8 bytes per fixnum and byte length bytes per string, and 4 bytes per reference to another object
<chrisseaton>
And that'll give you a rough idea of relative size
<akp>
ah ok
<akp>
since this is a json object, would fair to just take the length of the message object and multiply it buy the size of a UTF-8 char?
<akp>
since that message body is what i am interested in
<chrisseaton>
Yes if it's JSON, convert it to a string and look at the byte length
<akp>
cool
<chrisseaton>
#bytesize is the method you want
<chrisseaton>
Don't multiply that by anything
hobodave has quit [Ping timeout: 244 seconds]
<akp>
oh
<akp>
so just convert to string and just bytesize?
<lopex>
yeah, it will give you a buffer size in bytes
<lopex>
if you want to go deeper you can also add jvm object header, identityhash code (both 32 bit) and class reference for each java object that's part of jruby objects
<lopex>
if it's a java array also add length (32 bit)
cprice404 has quit [Remote host closed the connection]
cprice has joined #jruby
<lopex>
also field sizes considering allignment (though it might depend more on jvm impl)
rcvalle has joined #jruby
<akp>
i think this gen size will do, i'm hoping it will be close to the same when it hits the wire.
cprice is now known as cprice404
<chrisseaton>
Presumably log stash sends strings, not serialised Java objects, and obviously not in-memory Java objects
nicksieger has quit [Remote host closed the connection]
thedarkone2 has joined #jruby
dinfuehr_ has joined #jruby
nicksieger has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
claudiuinberlin has joined #jruby
dinfuehr_ has quit [Remote host closed the connection]
dinfuehr_ has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
dinfuehr_ has quit [Ping timeout: 265 seconds]
enebo has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
pil-afk has quit [Quit: Computer has gone to sleep.]
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
lanceball is now known as lance|afk
bbrowning is now known as bbrowning_away
claudiuinberlin has quit []
nicksieg_ has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
lance|afk is now known as lanceball
nicksieg_ has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
vali has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
nicksieg_ has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieg_ has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
enebo has quit [Quit: enebo]
nicksieger has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has quit [Read error: Connection reset by peer]
nicksieg_ has joined #jruby
nicksieg_ has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
nicksieg_ has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]