<JRubyGithub>
[jruby] bjfish pushed 1 new commit to master: http://git.io/vJ9hT
<JRubyGithub>
jruby/master 9466e52 Brandon Fish: [Truffle] Add POSIX.access for File.identical?
JRubyGithub has left #jruby [#jruby]
_djbkd has quit [Quit: My people need me...]
<qmx>
nirvdrum: yeah, I fat fingered it :(
<qmx>
fixed already
<nirvdrum>
Nifty.
<nirvdrum>
I mean, sucky. But cool that it's still alive.
<nirvdrum>
bjfish2: I landed truncate. I'm hoping to get readlink done soon. Then you won't have to wait on me tomorrow.
<bjfish2>
okay cool, i’ll try to use truncate now
gazay has joined #jruby
deobalds has joined #jruby
<bjfish2>
nirvdrum there might be an issue with truncate, non of the specs passed, i’ll check in the changes but just leave the specs change, i’m off for the night i think
<nirvdrum>
Okay.
<nirvdrum>
If you have a demonstrable issue, reproducing in FileTest in jnr-posix would be best.
<nirvdrum>
I just about have readlink done.
kfpratt has quit [Remote host closed the connection]
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] bjfish pushed 1 new commit to master: http://git.io/vJHfk
<JRubyGithub>
jruby/master ae25618 Brandon Fish: [Truffle] Add io_truncate for File.truncate.
<nirvdrum>
I'll probably poke at Windows support a bit more tomorrow since I'll be in the corporate office on my Windows laptop.
<nirvdrum>
Not bad though. 24 hours ago I had virtually no substantive jnr contributions. Now I've added a new enum, updated the generator for Ruby 1.9+, added 4 new POSIX methods and got 3 existing ones passing in Windows.
<headius>
nirvdrum: does it still do it that way?
<nirvdrum>
Once you understand the layers, it's quite straightforward. Impressive how easy it is actually.
<headius>
sorry, the jnr-constants pr
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] headius pushed 1 new commit to jruby-1_7: http://git.io/vJHUp
<JRubyGithub>
jruby/jruby-1_7 2799836 Charles Oliver Nutter: Set thread-local call type and visibility around all m_m dispatch....
JRubyGithub has left #jruby [#jruby]
<nirvdrum>
Essentially, yeah.
<nirvdrum>
The code for it is different.
<nirvdrum>
And the kenai packages have been deprecated.
<headius>
holy hell, the merge is effed
gazay has quit [Quit: gazay]
<headius>
actually looks like half maven, so we'll ignore those
gazay has joined #jruby
<headius>
I definitely don't have time for this tonight
<nirvdrum>
Which merge?
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] headius closed issue #540: Inconsistency between MRI and JRuby when private methods are called and method_missing is present http://git.io/vJHT8
JRubyGithub has left #jruby [#jruby]
<headius>
I tried to merge 1.7 to master...I guess it got let go for a while
<nirvdrum>
Ahh.
<headius>
cherry-pick and I'm out...ttyl
<nirvdrum>
Later.
<nirvdrum>
Thanks for the help.
<headius>
no problem
gazay has quit [Client Quit]
colinsurprenant has joined #jruby
colinsurprenant has quit [Client Quit]
tenderlove has joined #jruby
nirvdrum has quit [Ping timeout: 276 seconds]
colinsurprenant has joined #jruby
deobalds has quit [Quit: Computer has gone to sleep.]
KevinCorcoran has joined #jruby
tenderlove has joined #jruby
KevinCorcoran has quit [Ping timeout: 240 seconds]
tenderlove has quit [Remote host closed the connection]
kfpratt has quit [Remote host closed the connection]
deobalds has joined #jruby
ryez has quit [Ping timeout: 246 seconds]
gazay has joined #jruby
ebonics has joined #jruby
<ebonics>
i don't know any ruby at all. but i was wondering if there was a framework i could use to call arbitrary ruby scripts from java? almost everything i've found assumes you ahve java wrappers for the ruby objects you want to call
skade has joined #jruby
ryez has joined #jruby
deobalds has quit [Quit: Computer has gone to sleep.]
deobalds has joined #jruby
havenn has joined #jruby
rsim has joined #jruby
rsim has quit [Client Quit]
havenwood has quit [Ping timeout: 256 seconds]
dinfuehr has joined #jruby
yosafbridge has quit [Ping timeout: 256 seconds]
bjfish2 has quit [Quit: bjfish2]
ponga has quit [Remote host closed the connection]
gazay has quit [Read error: Connection reset by peer]
gazay has joined #jruby
yosafbridge has joined #jruby
yfeldblum has quit [Ping timeout: 265 seconds]
skade has quit [Quit: Computer has gone to sleep.]
ponga has joined #jruby
ponga has quit [Read error: Connection reset by peer]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
havenn has quit []
ponga has joined #jruby
ponga has quit [Read error: No route to host]
panga has joined #jruby
panga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #jruby
ponga has joined #jruby
panga has quit [Read error: No route to host]
ebonics has quit [Quit: Leaving]
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #jruby
ponga has joined #jruby
panga has quit [Read error: No route to host]
jph98 has joined #jruby
ponga has quit [Read error: No route to host]
kith has quit [Read error: Connection timed out]
ponga has joined #jruby
kith has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
panga has joined #jruby
ponga has quit [Read error: No route to host]
jph98 has quit [Quit: jph98]
panga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
jph98 has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
mister_solo has joined #jruby
ponga has quit [Read error: No route to host]
panga has joined #jruby
panga has quit [Read error: No route to host]
ponga has joined #jruby
jph98 has quit [Quit: jph98]
pitr-ch has joined #jruby
skade has joined #jruby
mister_solo has quit [Ping timeout: 264 seconds]
jph98 has joined #jruby
sluukkonen has quit [Quit: WeeChat 0.4.3]
mkristian has quit [Ping timeout: 246 seconds]
jph98 has quit [Quit: jph98]
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #jruby
shellac has joined #jruby
panga has quit [Read error: No route to host]
ponga has joined #jruby
yh has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
deobalds has quit [Ping timeout: 250 seconds]
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #jruby
keeguon has joined #jruby
ponga has joined #jruby
panga has quit [Read error: No route to host]
ponga has quit [Read error: No route to host]
yfeldblum has joined #jruby
ponga has joined #jruby
dumdedum has quit [Disconnected by services]
deobalds has joined #jruby
dumdedum has joined #jruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #jruby
panga has quit [Read error: No route to host]
ponga has joined #jruby
dumdedum has quit [Disconnected by services]
blaxter has joined #jruby
ponga has quit [Read error: Connection reset by peer]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
rsim has joined #jruby
ponga has joined #jruby
mister_solo has joined #jruby
ponga has quit [Read error: No route to host]
panga has joined #jruby
panga has quit [Read error: No route to host]
ponga has joined #jruby
yh has quit [Ping timeout: 276 seconds]
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
shellac has quit [Quit: Computer has gone to sleep.]
panga has joined #jruby
ponga has quit [Read error: No route to host]
ryez has quit [Ping timeout: 246 seconds]
panga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #jruby
panga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
marr has joined #jruby
ponga has joined #jruby
ponga has quit [Read error: Connection reset by peer]
ponga has joined #jruby
skade has quit [Quit: Computer has gone to sleep.]
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
skade has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
rsim has quit [Read error: No route to host]
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #jruby
panga has quit [Read error: Connection reset by peer]
ponga has joined #jruby
Antiarc has quit [Ping timeout: 256 seconds]
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: Connection reset by peer]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
ponga has quit [Read error: No route to host]
panga has joined #jruby
panga has quit [Read error: Connection reset by peer]
ponga has joined #jruby
Antiarc has joined #jruby
drbobbeaty has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
panga has joined #jruby
ponga has quit [Read error: Connection reset by peer]
panga has quit [Read error: Connection reset by peer]
ponga has joined #jruby
rsim has joined #jruby
ponga has quit [Read error: Connection reset by peer]
ponga has joined #jruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #jruby
mister_solo has quit [*.net *.split]
SuperTaz has quit [*.net *.split]
Xzyx987X has quit [*.net *.split]
kafkaz_ has quit [*.net *.split]
TheBrayn has quit [*.net *.split]
panga has quit [Read error: Connection reset by peer]
ponga has joined #jruby
mister_solo has joined #jruby
TheBrayn has joined #jruby
SuperTaz has joined #jruby
Xzyx987X has joined #jruby
kafkaz_ has joined #jruby
ponga has quit [Read error: No route to host]
ponga has joined #jruby
TehBrayn has joined #jruby
panga has joined #jruby
ponga has quit [Read error: Connection reset by peer]
panga has quit [Read error: Connection reset by peer]
ponga has joined #jruby
vtunka has joined #jruby
deobalds has quit [Quit: Computer has gone to sleep.]
deobalds has quit [Quit: Computer has gone to sleep.]
skade has quit [Quit: Computer has gone to sleep.]
KevinCorcoran has joined #jruby
<nirvdrum>
bjfish2: You should have readlink support now, FYI.
KevinCorcoran has quit [Ping timeout: 244 seconds]
yh has joined #jruby
dinfuehr_ has quit [Remote host closed the connection]
dinfuehr_ has joined #jruby
<temporalfox>
I would like to know if there is an easy way to produce yardoc in a maven project
robbyoconnor has quit [Read error: Connection reset by peer]
yh has quit [Ping timeout: 256 seconds]
dinfuehr_ has quit [Ping timeout: 245 seconds]
<bjfish2>
chrisseaton cc nirvdrum Any tips on how to read a MemoryPointer in a POSIXNode? readlink wants a byte[] from the pointer, utimes probably needs to read long values from inside a struct http://linux.die.net/man/2/utimes
tcrawley is now known as tcrawley-away
pitr-ch has quit [Ping timeout: 240 seconds]
camlow325 has joined #jruby
camlow32_ has joined #jruby
yh has joined #jruby
camlow3__ has joined #jruby
camlow325 has quit [Ping timeout: 264 seconds]
camlow32_ has quit [Ping timeout: 256 seconds]
rcvalle has joined #jruby
<nirvdrum>
headius: Bad news . . . we're not actually getting errno on Win32. I'm reticent to start screwing around with jffi, but GetLastError() doesn't always return the same thing as errno.
drbobbeaty has quit [Read error: Connection reset by peer]
drbobbeaty has joined #jruby
subbu has joined #jruby
donV has joined #jruby
camlow3__ has quit [Remote host closed the connection]
<donV>
Hi all!
camlow325 has joined #jruby
mrmargolis has quit [Remote host closed the connection]
camlow325 has quit [Remote host closed the connection]
camlow325 has joined #jruby
mrmargol_ has joined #jruby
robbyoconnor has joined #jruby
pitr-ch has joined #jruby
pierreatkillbill has quit [Ping timeout: 240 seconds]
dabradley has quit [Quit: WeeChat 0.4.2]
dabradley has joined #jruby
dabradley has quit [Client Quit]
dabradley has joined #jruby
dinfuehr_ has joined #jruby
dabradley has quit [Client Quit]
dabradley has joined #jruby
tcrawley-away is now known as tcrawley
dabradley has quit [Client Quit]
dabradley has joined #jruby
pierreatkillbill has joined #jruby
dinfuehr_ has quit [Ping timeout: 250 seconds]
<enebo>
nirvdrum: GetLastError is MS specific errors which are appropriate only for MS APIs and there is a compat errno() I think but we have to know which method we are calling to know which to call
<enebo>
nirvdrum: I never quite got why int returning methods were not using full <0 space as a convention a long time ago?
tenderlove has joined #jruby
subbu has quit [Ping timeout: 245 seconds]
_djbkd has joined #jruby
keeguon has quit [Ping timeout: 246 seconds]
subbu has joined #jruby
mkristian has joined #jruby
yh has quit [Ping timeout: 240 seconds]
bbrowning is now known as bbrowning_away
colinsurprenant has quit [Quit: colinsurprenant]
robbyoconnor has quit [Ping timeout: 265 seconds]
bbrowning_away is now known as bbrowning
drbobbeaty has quit [Read error: Connection reset by peer]
phrinx has joined #jruby
drbobbeaty has joined #jruby
KevinCorcoran has joined #jruby
camlow3__ has joined #jruby
camlow325 has quit [Ping timeout: 256 seconds]
gazay has quit [Quit: gazay]
djellemah has quit [Ping timeout: 272 seconds]
<nirvdrum>
enebo: Eh? I lost you on that last one.
shellac has quit [Ping timeout: 255 seconds]
<nirvdrum>
enebo: But it looks like jffi just always calls GetLastError().
<enebo>
nirvdrum: weird for int return functions that they are not designed around embedding actual error as negative value instead of -1 + some other function
<nirvdrum>
I have the close() tests basically working in Windows, but GetLastError() returns 0 when trying to close and FD a second time, whereas errno is EBADF (verified in a small app in VisualStudio).
<nirvdrum>
enebo: Yeah. And that bit me a different way. MS has a bunch of more secure variants of these calls. E.g., _access_s, but that returns an errno_t and is thus incompatible.
<nirvdrum>
I think that could be suitably wrapped up, but it gets back to needing to change how errno() is handled.
<enebo>
nirvdrum: I see
djellemah has joined #jruby
dinfuehr_ has joined #jruby
mister_s_ has quit [Ping timeout: 276 seconds]
dinfuehr_ has quit [Ping timeout: 256 seconds]
yh has joined #jruby
<nirvdrum>
Actually, I think I could just wrap it to always return -1. It looks like it sets errno too.
<nirvdrum>
But GetLastError is wrong.
colinsurprenant has joined #jruby
<nirvdrum>
A lot of layers here.
yh has quit [Ping timeout: 255 seconds]
tcrawley is now known as tcrawley-away
ponga has joined #jruby
cremes has quit [Read error: Connection reset by peer]
cremes has joined #jruby
dinfuehr_ has joined #jruby
<nirvdrum>
enebo: How do I build the JFFI libs?
bbrowning is now known as bbrowning_away
<enebo>
nirvdrum: I think…. ant build-native on each platform
<headius>
temporalfox: mkristian probably has a way
<enebo>
nirvdrum: I am less sure on windows…windows is a pain in the ass from what I rememeber
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<headius>
hello there...quiet day
pjammer has joined #jruby
<mkristian>
hi
<temporalfox>
hi
<temporalfox>
I've done an integration that soemtimes works and sometimes not
<headius>
mkristian is responsible for all the excellent jruby+maven integration
<headius>
we even use it to build jruby
<temporalfox>
ok good to know headius :-)
<mkristian>
temporalfox, how can I help ?
<temporalfox>
I have itnegrated yardoc in a way in vertx-ruby-lang
<temporalfox>
it works
<temporalfox>
now we code generate api in a whole bunch of other projects (using vertx-ruby-lang)
<temporalfox>
and the current way creates problems
<temporalfox>
mainly dependencies and performance
<mkristian>
headius, I have the psych problem fixed locally and I am about to release ruby-maven then we need to switch to this version.
<temporalfox>
performance because it installes a GEM on every build
<temporalfox>
and that takes some time
<temporalfox>
dependencies because it means having a <dependency> tag in the build
<temporalfox>
and there can be issuess with some project that uses different version of a lib (read bouncycastle here)
<temporalfox>
you can find the current way in this project pom.xml
<temporalfox>
I would like to have a simple way to do it
<temporalfox>
just a maven plugin
<temporalfox>
like there is for jsdoc3 for example
<temporalfox>
if there is not
<temporalfox>
I think I can improve it by packaging first the yard gem in my own jar
<temporalfox>
(with my GAV)
<nirvdrum>
enebo: Looks like that was it. And I guess this uses the mingw32 toolchain?
<nirvdrum>
I only have VC++ installed.
<enebo>
nirvdrum: yeah mingw and I don’t remember if you need to install x64 so you can build 32 + 64 bit
<mkristian>
temporalfox, packing the gem into jar will remove the installing of the gem. but not sure why you use two plugins. gem-maven-plugin can execute ruby code and it uses the gem it installed earlier
<temporalfox>
I was not aware of that
<nirvdrum>
Bah. I guess I'm not looking at that today then :-)
<temporalfox>
are there ppl producing yardoc beside me with maven ?
<temporalfox>
I would like to avoid any maven dependency
<temporalfox>
because it will create conflicts
<headius>
mkristian: that's weird
pierreatkillbill has left #jruby [#jruby]
<mkristian>
headius, somehow this error gets "thrown" later even if it got rescued
<temporalfox>
I see the dependency on the maven plugin itself
<temporalfox>
so that sounds better than as a project dep
<temporalfox>
I will try this way and let you know
<mkristian>
please.
<headius>
mkristian: very strange, that would seem like a JRuby bug
<headius>
like $! is getting stuck
ponga has quit [Quit: Leaving...]
insidious has quit [Ping timeout: 256 seconds]
yh has joined #jruby
KevinCorcoran has quit [Remote host closed the connection]
camlow3__ has quit [Remote host closed the connection]
tcrawley-away is now known as tcrawley
jsvd has quit [Quit: leaving]
camlow325 has joined #jruby
KevinCorcoran has joined #jruby
djellemah has quit [Ping timeout: 276 seconds]
bga57 has quit [Ping timeout: 256 seconds]
<mkristian>
headius, not sure if this is a JRuby bug. jruby -S gem install psych is rubygems commandline execution, which will execute ruby-maven in the same JVM. there is an error with Gem::Specification.load_yaml and rubygems fails with this error.
<mkristian>
since this ruby-maven does use ```system``` for executing maven
camlow325 has quit [Remote host closed the connection]
shellac has joined #jruby
yfeldblum has joined #jruby
nirvdrum has quit [Ping timeout: 256 seconds]
mister_solo has joined #jruby
yfeldblum has quit [Read error: Connection reset by peer]
dinfuehr_ has quit [Remote host closed the connection]
yfeldblum has joined #jruby
dinfuehr_ has joined #jruby
bga57 has joined #jruby
dinfuehr_ has quit [Ping timeout: 245 seconds]
dinfuehr has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #jruby
<headius>
ok
<headius>
mkristian: ^
<headius>
mkristian: it's possible RG gets into a bad state after the failed serialization
<headius>
it's not something they probably plan to happen within RG
<mkristian>
I am not sure if this is intentional or not. let me see with jruby-1.7.x and older RG
<headius>
ok
jamo_ has quit [Ping timeout: 255 seconds]
yh has quit [Ping timeout: 265 seconds]
jamo_ has joined #jruby
bbrowning_away is now known as bbrowning
camlow325 has joined #jruby
chamila has joined #jruby
<chamila>
hi
camlow325 has quit [Remote host closed the connection]
phrinx has quit [*.net *.split]
tenderlove has quit [*.net *.split]
SuperTaz has quit [*.net *.split]
Xzyx987X has quit [*.net *.split]
kafkaz_ has quit [*.net *.split]
drbobbeaty has quit [*.net *.split]
subbu has quit [*.net *.split]
balo has quit [*.net *.split]
errstr has quit [*.net *.split]
mistergibson has quit [*.net *.split]
Osho has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
yosafbridge has joined #jruby
subbu has joined #jruby
balo has joined #jruby
errstr has joined #jruby
mistergibson has joined #jruby
Osho has joined #jruby
phrinx has joined #jruby
tenderlove has joined #jruby
SuperTaz has joined #jruby
Xzyx987X has joined #jruby
kafkaz_ has joined #jruby
robbyoconnor has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #jruby
<mkristian>
headius, so jruby-1.7.18 and jruby-1.7.20 do not show this error. did the meaning of ```rescue Exception``` change in 9k ?
<headius>
mkristian: the entire runtime changed in 9k :-)
<headius>
check with the old code if $! is still set after the rescue block...I bet it is
<mkristian>
headius, hmm
<headius>
we have knocked down a series of $! behavior differences, and this may be one more
subbu has quit [Ping timeout: 240 seconds]
mrmargol_ has quit [Remote host closed the connection]
yh has joined #jruby
<headius>
mkristian: I'm kinda taking a personal day, so I won't be able to look into it...more you can narrow down the better
camlow325 has joined #jruby
camlow325 has quit [Remote host closed the connection]
KevinCorcoran has quit [Remote host closed the connection]
<mkristian>
headius, I will spend a bit more on it - but it is super strange so far. the exception gets caught, the gem installs but somehow things fail at the end
<headius>
your fix is better in any case
<headius>
avoid the error
<headius>
but I want to understand it
<headius>
the error that is
<mkristian>
yeah
camlow325 has joined #jruby
tcrawley is now known as tcrawley-away
chamila has quit [Quit: Page closed]
shellac has quit [Quit: Computer has gone to sleep.]
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] enebo pushed 7 new commits to master: http://git.io/vJF9n
<JRubyGithub>
jruby/master 6c3c8ce Thomas E. Enebo: Slowly convert from arity to signature
<JRubyGithub>
jruby/master c3adbd4 Thomas E. Enebo: Use signature in RubyProc.prepareArgs and not Arity
<JRubyGithub>
jruby/master a679852 Thomas E. Enebo: More arity -> signature conversion on blockbody
JRubyGithub has left #jruby [#jruby]
fuzzyhorns1 has joined #jruby
<fuzzyhorns1>
any of you guys experience major memory issues between jruby + oracle? (using ojdbc)
<fuzzyhorns1>
im seeing memory runout because of oracle.jdbc.driver.T4CPreparedStatement
<Antiarc>
You're the guy that was having the connection pool leaks, yeah?
<headius>
fuzzyhorns1: I have not heard of such problems, no
<headius>
nothing systemic anyway
<fuzzyhorns1>
Antiarc: im unsure whether that is really the root cause or not :/
<fuzzyhorns1>
Antiarc: how would i identify for sure?
<fuzzyhorns1>
but yeah, same poor bastard :<
<Antiarc>
fuzzyhorns1: Hard to say without access to the code, but the way I'd start is by taking heap snapshots and diffing them over time. You're looking for references which remain held after they should be released.
<Antiarc>
If you're leaking connections, and T4CPreparedStatement instances are referenced by the connection, that could be an issue
<Antiarc>
But it's really hard to say in general - this is just one of those Hard Problems that take a lot of manual work
<Antiarc>
I'd start by taking and diffing heap snapshots
<Antiarc>
There's some stuff you can do in Rubyland to track allocation chains, too - sec
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<fuzzyhorns1>
how would i know if im leaking connections or not? :/
<Antiarc>
Well, the symptom is that they aren't being released back to your connection pool
<Antiarc>
So you could introspect the number of total and available connections in your connpool over time
<fuzzyhorns1>
which connpool? db? threads?
<fuzzyhorns1>
sorry lot of diff things :d
<Antiarc>
The DB connpool, yeah. I think AR provides it.
balo has quit [*.net *.split]
errstr has quit [*.net *.split]
mistergibson has quit [*.net *.split]
Osho has quit [*.net *.split]
<Antiarc>
I'd look at those .T4CPreparedStatement instances and find where they're referenced
balo has joined #jruby
errstr has joined #jruby
mistergibson has joined #jruby
Osho has joined #jruby
<Antiarc>
Then find where the things that reference them are referenced, and so on
<Antiarc>
You're basically looking to track down the reference chain to something that should be released but isn't
<fuzzyhorns1>
so you mean like, what is calling T4C?
<fuzzyhorns1>
sorry for being a simpleton here
<eonwe>
If you're just wndering what's taking the memory, use eclipse memory analyzer and heap snapshots. You can then find out if you have too many T4CPreparedStatement around and trace them to their owners
<eonwe>
Tracing the Java-objects behind ruby-objects to the ruby-stuff can be hard, but should be doable
<fuzzyhorns1>
eonwe: that we have an idea of
<fuzzyhorns1>
i am using MAT and can see the statements correspond to locations (thats the data model being served)
<Antiarc>
fuzzyhorns1: More specifically, what is holding onto references to T4C instances
phrinx has quit [Quit: Leaving...]
<fuzzyhorns1>
how would i find that out? :<
insidious has joined #jruby
<eonwe>
with the memory analyzer, you can trace the owners and dominators of such objects. And you can see how many T4CConnections you have. Most common thing seems to be just forgetting to close statements if doing manual work
<eonwe>
I know nothing about how ojdbc is used with ruby (rails probably?), is there some wrapper for it that does the statement handling or are you using it directly?
<fuzzyhorns1>
i am on the dominator tree
<fuzzyhorns1>
(yeah with rails)
<fuzzyhorns1>
rails -> activerecord -> ojdbc? i think is the mental model
<fuzzyhorns1>
so in the dominator tree, how do i ask for the references?
lanceball is now known as lance|afk
<eonwe>
If you go to the histogram, you can search for those pesky prepared statements and them select "Immediate Dominators" for them
<mkristian>
might be not the smallest possible case but is quite isolated
<chrisseaton>
bjfish2: did you still have a question from earlier?
<bjfish2>
chrisseaton yes
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] mkristian reopened issue #2910: can not install leafy-metrics http://git.io/vJ9kU
JRubyGithub has left #jruby [#jruby]
<bjfish2>
the same question: cc nirvdrum Any tips on how to read a MemoryPointer in a POSIXNode? readlink wants a byte[] from the pointer, utimes probably needs to read long values from inside a struct http://linux.die.net/man/2/utimes
<chrisseaton>
can you reuse the primitives from PointerPrimitiveNodes? Like WriteAddressPrimitiveNode
dinfuehr has joined #jruby
jph98 has joined #jruby
<fuzzyhorns1>
eonwe: thank you
mister_solo has joined #jruby
<fuzzyhorns1>
doesnt tell me much, i guess part of the issue is that i can see what in the java holds the ref, but not what is happening in ruby at that time
pjammer has joined #jruby
tenderlove has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
KevinCorcoran has joined #jruby
shellac has joined #jruby
<eonwe>
so who is holding then them? If it's the connection, it sounds like a forgotten close or something like it
<fuzzyhorns1>
well, immediate dominators of the prepared statement are root, and two jdbc classes
<fuzzyhorns1>
that doesnt tell me much :<
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] chrisseaton pushed 1 new commit to master: http://git.io/vJbtx
<JRubyGithub>
jruby/master b1185e0 Chris Seaton: [Truffle] Remove some notDesignedForCompilations.
JRubyGithub has left #jruby [#jruby]
KevinCorcoran has quit [Ping timeout: 265 seconds]
jph98 has quit [Quit: jph98]
mister_solo has quit [Ping timeout: 244 seconds]
mister_solo has joined #jruby
KevinCorcoran has joined #jruby
<eonwe>
I think root means that variables in thread stack is the dominator
<fuzzyhorns1>
hmm?
tenderlove has joined #jruby
mkristian has quit [Ping timeout: 264 seconds]
mister_solo has quit [Quit: So long, and thanks for all the fish!]
x1337807x has joined #jruby
<eonwe>
You might bave more luck by selecting those statements and selecting merge shortest paths to root or by selecting show objects by class (or list objects) and by incoming references. That will show you the paths to those objects. And if you want know about specific objects instead of the classes, use the list objects-menu
nirvdrum has joined #jruby
nirvdrum_ has joined #jruby
mkristian has joined #jruby
dinfuehr has quit [Quit: dinfuehr]
nirvdrum has quit [Ping timeout: 240 seconds]
dinfuehr has joined #jruby
nirvdrum_ is now known as nirvdrum
tenderlove has quit [Quit: Leaving...]
<nirvdrum>
bjfish2: I'm back around if you need anything.
rsim has quit [Quit: Leaving.]
skade has joined #jruby
<bjfish2>
chrisseaton cc nirvdrum So, I get a pointer address<long> using PointerReadPointerPrimitiveNode, and then I should use the Unsafe class to get the data the pointer is pointing to? is this on the right track?
<chrisseaton>
Yeah, you just get the long out and use unsafe to read and write
subbu has joined #jruby
<donV>
Hi all! Anyone familiar with ARJDBC around?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Read error: Connection reset by peer]
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
KevinCorcoran has quit []
dinfuehr has quit [Remote host closed the connection]
dinfuehr has joined #jruby
pitr-ch has quit [Ping timeout: 256 seconds]
dinfuehr has quit [Remote host closed the connection]
dinfuehr has joined #jruby
pitr-ch has joined #jruby
dinfuehr has quit [Ping timeout: 250 seconds]
<nirvdrum>
Argh. I'd like to add more constants to fcntl, but the fake file is going to be all screwed up. I need a way to generate the various OS files.
<nirvdrum>
I'm beginning to think the "fake" system is not a great idea. It generates stuff that looks like it should work, but the values are all messed up.