Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.9-beta-4, 1.8.4
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Performing a lot of system calls causes Groovy to die on Linux with an IOException for "Too many open files". The cause is streams which are left open by system calls:
(1..n).each
{ "ls".execute().text }This method should be changed to close all streams after it gets the text from them.
Issue Links
- is superceded by
-
GROOVY-5058
Improved process execution
-
Activity
blackdrag blackdrag
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Paul King [ paulk ] |
Uri Moszkowicz
made changes -
| Attachment | UsageAnalyzer2.groovy [ 57055 ] |
Uri Moszkowicz
made changes -
| Attachment | UsageAnalyzer2.groovy [ 57055 ] |
Uri Moszkowicz
made changes -
| Attachment | UsageAnalyzer2.groovy [ 57056 ] |
Paul King
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 1.8.4 [ 17852 ] | |
| Fix Version/s | 1.9-beta-4 [ 17656 ] | |
| Resolution | Fixed [ 1 ] |
Paul King
made changes -
| Link | This issue is superceded by GROOVY-5058 [ GROOVY-5058 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Discussed here:
http://stackoverflow.com/questions/7570353/why-do-i-get-too-many-open-files-errors