I just installed Oracle XE on my TrueNAS server. The only odd thing is the connection between SQL Developer and my app keeps closing after around 30 minutes of idle time. Oracle doesn’t do it (I checked the configs) and SQL Developer has no TCP timeout.
My connection to Oracle XE on another server (not TrueNAS) stays up.
So I am guessing that it has to be something about k3s closing idle connections is my guess. There is no setting in Truenas apps advanced settings that control this.
Unless someone else is experiencing the same issue or knows the right config fix, I’d suggest installing the keepalive into SQL developer and reporting back.
Why is that the only possible reason?
You have two distinct systems, all that hardware is adding plenty of variables that could be different, even the cabling or possible switch could be a contributing factor.
ok, it’s the most likely reason since my local system/network isn’t known to be dropping connections like that and it ONLY happens with this one application
Bad cables never have the “same exact timing”!
Bad hardware would “add the same variables” to other connections and it would not be at exact 30 min, right?
Drop packets, unless severe, will not cause disconnects, that’s why the TCP protocol has checksums and resend.
This has to be a software setting somewhere to disconnect after exactly 30 min.
If you can provide the files, I could test/reproduce/check it as well.
Can you setup the environment under a REAL VM?
That would answer questions and the usual ignorant guesses.
There’s no need to shout, also kindly drop the dismissive and abrasive language intermingled in your post(s).
You’re misquoting me. Not cool.
The OP never said it was exactly 30 minutes.
Thanks for the primer on how TCP works.
My post wasn’t related to TCP though; it was made to point out that focusing on it being an issue with TrueNAS seems premature since there are more variables at play. It’s good to keep an open mind while troubleshooting.
The software stack goes deeper than TN and there can be misconfigurations at any level. It’s not always going to be down to something being physically broken, even though a faulty cable can play a part, on occasion.
OK, I tested it using 3 oracle servers (including 2 on the truenas box, one under k3s (using strictly the truenas app interface) and the other under jailmaker.
The ONLY server closing the TCP connections within 30 minutes is the custom app I created from the official oracle image. ALL server used the oracle official docker image. no customizations were made.
So this narrows it down. Jailmaker Oracle deploy works as expected, the truneas app deploy created using the Custom App button, closes the TCP connection prematurely.
This seems to confirm my suspicion that something in k3s networking is closing idle connections.
I’m not a k3s expert, but does this sound like a k3s configuration issue?