GitHub user zhuoliu opened a pull request:
https://github.com/apache/storm/pull/999
[STORM-1206] Reduce logviewer memory usage through directory stream
Using DirectoryStream to replace File.listFiles will save logviewer memory
usage since it does not require loading all files' metadata into memory. This
avoids potential memory usage problem in extreme case (e.g., you have millions
of small files in your log directory).
Also, a multi-phase PQ-based sorting and cleaning scheme is introduced in
DirectoryCleaner for replacing the global in-memory sorting.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zhuoliu/storm 1206
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/storm/pull/999.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #999
----
commit 7cc1d05a6c4db0610baccbc7870544d9ea8258af
Author: zhuol <[email protected]>
Date: 2016-01-08T23:32:50Z
[STORM-1206] Reduce logviewer memory usage through directory stream
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---