是否需要开启“keepalive”功能?在 JTDS 中是否可以提高性能?
在JTDS中启用“keepalive”配置后,性能会提高多少?今天我查看了 jtds 文档,发现了一个以前从未注意到的有趣配置“sockekeepalive”。你在本地测试过性能效果吗?由于默认值为“false”,我想在实际生产环境中使用“keepalive”可能会产生一些开销。
感谢广告!
万斯
How much will performance increase when enabled the config of "keepalive" in JTDS? I reviewed the jtds document today and found one interesting config "sockekeepalive" never noticed before. And did u test the performance effect in your local? Since the default value of is "false", I guess there maybe some overhead for using "keepalive" in real production env.
Thanks in adv!
Vance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

如果它有丝毫的不同,我会感到惊讶。 Javadoc 与其自身不同步,但它似乎所做的只是调用 Socket.setKeepalive(),这与性能无关(与 HTTP keep-alive 不同)。
I'd be astonished if it made the slightest difference. The Javadoc is out of sync with itself but all it appears to do is call Socket.setKeepalive(), which has nothing to do with performance (unlike HTTP keep-alive).