[CONTROLLER-839] Clustering : Snapshotting uses up too much memory Created: 15/Sep/14 Updated: 06/Jan/15 Resolved: 06/Jan/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Moiz Raja | Assignee: | Prem Sankar |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| Issue Links: |
|
||||||||||||
| External issue ID: | 1884 | ||||||||||||
| Priority: | Normal | ||||||||||||
| Description |
|
Snapshotting the in-memory datastore within a shard can lead to out of memory when the in-memory datastore grows really large. For example with 4GB memory allocated adding about 180K Flows into the config datastore exhausts all the memory. From analysis it seems like the act of creating a snapshot is what exhausts the memory instead if retaining the bytes for the snapshot itself in memory. A snapshot is about a 10th of the size of the in-memory datastore. To reproduce, To reproduce, 1. Build the OpenFlowPlugin Karaf distribution |
| Comments |
| Comment by Moiz Raja [ 14/Oct/14 ] |
|
This will probably be fixed by the Stream Reader/Writer (see |
| Comment by Moiz Raja [ 06/Jan/15 ] |
|
We do not store snapshots in memory |