[CONTROLLER-272] ODL uses large number of file descriptors Created: 03/Apr/14 Updated: 25/Jul/23 Resolved: 13/Nov/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Giles Heron | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| Attachments: |
|
| Description |
|
on startup in our lab OpenDaylight peaks at 1370 file descriptors in use before settling down to around 600. we have four routers with NETCONF/YANG plus BGP-LS from one of them to the controller. is this expected behaviour? |
| Comments |
| Comment by Giles Heron [ 03/Apr/14 ] |
|
Attachment open_files.log has been added with description: list of open files |
| Comment by Tomas Olvecky [ 07/Apr/14 ] |
|
The problem seems to be caused by large number of yang files downloaded from the router. Assigning to Tony who should decide whether it is fixable. (we might open the files one by one and copy them to memory?) |
| Comment by Giles Heron [ 07/Apr/14 ] |
|
makes sense. Or is there a way to open each file once only? If you're connecting to a number of identical routers then you'll be opening the same set of files multiple times. In an SP-sized network that could even take you past 64K file descriptors |
| Comment by Tony Tkacik [ 14/Jul/14 ] |
|
Filesystem caching adapter, should cache schemacontext / parsed ANTLR YANGContext |
| Comment by Robert Varga [ 13/Nov/15 ] |
|
Fixed with InMemorySchemaSourceCache. |