LoginSignup
3
3

More than 5 years have passed since last update.

Apache Commons HTTPClient はマルチスレッド版を使うほうが良い?

Posted at

記事がかなり古いですが、、。
http://www.acroquest.co.jp/webworkshop/JavaTroubleshooting/trouble012Phenomenon.html
http://oyahiroki.exblog.jp/12750938/

上記を見ると、マルチスレッド版を使うほうが良さそう。

  • マルチスレッド版は、ThreadLocalを使ってインスタンスを管理するので、インスタンスが意識しなくても使いまわされて性能が良い
  • シングルスレッド版は、インスタンスの管理がユーザ任せなので、毎回生成する(≒毎回Connectionを貼り直しに行く)ため遅くなる ということなんですかね。
3
3
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3