1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Too many open files になったとき

Posted at

概要

  • Jenkinsサーバで、 Caused by: java.io.IOException: error=24, Too many open files のようなエラーが発生
  • FD(File Descriptor)が枯渇しているっぽいのでulimitを上げる
  • OSはUbuntu 14.04

/etc/security/limits.conf

以下の記述を追加

* soft nproc 65535
* hard nproc 65535
* hard nofile 65535
* soft nofile 65535

rebootして ulimit -n すると...

$ ulimit -n
65535

良さそう。

ところがJenkinsは自分で勝手に上書きをしていた...

Jenkinsから見えるulimitの結果がおかしい場合

まさにこれ。

/etc/default/jenkins を書き換えて、 service restartして、真の対応完了。

(Systemd化されている最近のやつは別の箇所を編集する必要があるのであしからず)

1
0
0

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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?