git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[JGIT PATCH 0/4] Avoid using 1280 file descriptors

From
Shawn O. Pearce <spearce@spearce.org>
Date
Mar 17, 2009, 01:16 UTC
Message-ID
<1237252570-8596-1-git-send-email-spearce@spearce.org>

This is a small series to teach WindowCache not to use 1280 file descriptors by default. Most JVMs won't have a ulimit that large, resulting in out of file errors if the WindowCache actually tries to fully populate itself.

Shawn O. Pearce (4):
  Refactor WindowCache.reconfigure() to take a configuration object
  Update EGit plugin to use WindowCacheConfig
  Cap the number of open files in the WindowCache
  Teach WindowCacheConfig to read core.packedgit* settings from config
 .../spearce/egit/core/project/GitProjectData.java  |   12 +-
 .../org/spearce/jgit/lib/RepositoryTestCase.java   |    8 +-
 .../org/spearce/jgit/lib/UnpackedObjectCache.java  |    7 +-
 .../src/org/spearce/jgit/lib/WindowCache.java      |  119 ++++++++++----
 .../org/spearce/jgit/lib/WindowCacheConfig.java    |  170 ++++++++++++++++++++
 5 files changed, 271 insertions(+), 45 deletions(-)
 create mode 100644 org.spearce.jgit/src/org/spearce/jgit/lib/WindowCacheConfig.java
Next: Shawn O. Pearce
Message 1 of 9 in “Avoid using 1280 file descriptors”
  1. 0/4 Avoid using 1280 file descriptorsShawn O. Pearce, Mar 17, 2009
  2. 1/4 Refactor WindowCache.reconfigure() to take a configuration objectShawn O. Pearce, Mar 17, 2009
  3. 2/4 Update EGit plugin to use WindowCacheConfigShawn O. Pearce, Mar 17, 2009
  4. 3/4 Cap the number of open files in the WindowCacheShawn O. Pearce, Mar 17, 2009
  5. 4/4 Teach WindowCacheConfig to read core.packedgit* settings from configShawn O. Pearce, Mar 17, 2009
  6. Robin RosenbergMar 17, 2009
  7. Shawn O. PearceMar 17, 2009
  8. Robin RosenbergMar 18, 2009
  9. 3/4 Cap the number of open files in the WindowCacheShawn O. Pearce, Mar 18, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.