是否需要开启“keepalive”功能?在 JTDS 中是否可以提高性能?

发布于 11-24 08:40 字数 238 浏览 3 评论 0原文

在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

厌味2024-12-01 08:40:19

如果它有丝毫的不同,我会感到惊讶。 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文