[YANGTOOLS-539] org.opendaylight.controller.config.facade.xml.osgi.YangStoreService$CapabilityChangeNotifier.run() thread is hanging karaf Created: 29/Oct/15 Updated: 10/Apr/22 Resolved: 03/Nov/15 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Luis Gomez | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 4556 |
| Description |
|
So I just did few feature install tests with yourkit connected: feature:install odl-openflowplugin-flow-services and I get karaf urresponsive with 100% of CPU occupied with this thread (see attachment): org.opendaylight.controller.config.facade.xml.osgi.YangStoreService$CapabilityChangeNotifier.run() BR/Luis |
| Comments |
| Comment by Luis Gomez [ 29/Oct/15 ] |
|
Attachment Screen Shot 2015-10-29 at 3.04.44 PM.png has been added with description: Yourkit snapshot |
| Comment by Luis Gomez [ 29/Oct/15 ] |
|
Also after a while the system is hanged memory also runs out so I took heap dump and analized in yourkit (see 2nd attachment), the below class takes 1.5GB: org.opendaylight.yangtools.yang.model.api.SchemaPath$AbsoluteSchemaPath 48747939 1559934048 3346727519 BR/Luis |
| Comment by Luis Gomez [ 29/Oct/15 ] |
|
Attachment Screen Shot 2015-10-29 at 3.48.37 PM.png has been added with description: Memory Analysis |
| Comment by Robert Varga [ 31/Oct/15 ] |
|
This is caused by inefficient SchemaPath construction in parser. Preliminary patch to alleviate the hurt: https://git.opendaylight.org/gerrit/29064 |
| Comment by Robert Varga [ 31/Oct/15 ] |
|
That link should be https://git.opendaylight.org/gerrit/29065 |
| Comment by Robert Varga [ 31/Oct/15 ] |