nodeSolidServer / nodeSolidServer/node-solid-server

File descriptors are being left open

未關閉
#849 6 則留言 2 個 reaction 已指派 1 人 在 GitHub 檢視

@justinwb 已經在處理了。

開始於 2018年11月7日。

bug
主要語言
JavaScript
星號
1.8k
分支
308
PR 合併指標
30 天內沒有已合併 PR

描述

Over the course of several days on a production server, we observed a steady increase in the number of open file descriptors associated with the node-solid-server process, until it reached the per-process limit, at which point node-solid-server stopped accepting new requests and needed to be restarted.

A few key points to note:

The vast majority of open descriptors are of type REG (regular file), with 93% of those being the profile card file. For example:

node    20481 root  305r      REG              259,1     2406   267569 /var/solid/justin.inrupt.net/profile/card

It's important to note that they were not all profile/card. For example, there are also instances of others, such as:

  • settings/prefs.ttl
  • RandomChat/index.ttl
  • public/friends/person/uuid/index.ttl
  • profile/photograph.png
  • favicon.ico
  • public/Dokieli/index.html
  • pubilc/test.txt

So while MOST of them were rdf files, not all of them were.

Descriptors associated with a given resource are not re-used when that resource is requested again.
For example, there were 26 open descriptors for /var/solid/justin.inrupt.net/profile/card.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。