[jira] [Commented] (CAMEL-14466) camel-core - Optimize reduce error handler memory usage
[ https://issues.apache.org/jira/browse/CAMEL-14466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17028028#comment-17028028 ] Claus Ibsen commented on CAMEL-14466: - So the vast majority of exchange properties are 1,2,3,4 in size and tests in camel-core goes up till 15, and in camel-jms to 9. A default of 8 is good. > camel-core - Optimize reduce error handler memory usage > --- > > Key: CAMEL-14466 > URL: https://issues.apache.org/jira/browse/CAMEL-14466 > Project: Camel > Issue Type: Improvement > Components: camel-core >Reporter: Claus Ibsen >Assignee: Claus Ibsen >Priority: Major > Fix For: 3.1.0 > > > Just experimenting if we can reduce the RedeliveryTask object size, for > example to have a simple task for non redeliverable processing, and then the > current when you need advanced error handling. This may reduce the object > sizes in memory during routing for some use-cases. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CAMEL-14466) camel-core - Optimize reduce error handler memory usage
[ https://issues.apache.org/jira/browse/CAMEL-14466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17027864#comment-17027864 ] Claus Ibsen commented on CAMEL-14466: - Also look at initializing exchange properties map with smaller default capacity as 16 may be too much on regular use. > camel-core - Optimize reduce error handler memory usage > --- > > Key: CAMEL-14466 > URL: https://issues.apache.org/jira/browse/CAMEL-14466 > Project: Camel > Issue Type: Improvement > Components: camel-core >Reporter: Claus Ibsen >Assignee: Claus Ibsen >Priority: Major > Fix For: 3.1.0 > > > Just experimenting if we can reduce the RedeliveryTask object size, for > example to have a simple task for non redeliverable processing, and then the > current when you need advanced error handling. This may reduce the object > sizes in memory during routing for some use-cases. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CAMEL-14466) camel-core - Optimize reduce error handler memory usage
[ https://issues.apache.org/jira/browse/CAMEL-14466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17027862#comment-17027862 ] Claus Ibsen commented on CAMEL-14466: - 2nd optimasation reduces object allocations by 10% in the sample app. But that would vary how many steps there are in routes. But it helps nevertheless. > camel-core - Optimize reduce error handler memory usage > --- > > Key: CAMEL-14466 > URL: https://issues.apache.org/jira/browse/CAMEL-14466 > Project: Camel > Issue Type: Improvement > Components: camel-core >Reporter: Claus Ibsen >Assignee: Claus Ibsen >Priority: Major > Fix For: 3.1.0 > > > Just experimenting if we can reduce the RedeliveryTask object size, for > example to have a simple task for non redeliverable processing, and then the > current when you need advanced error handling. This may reduce the object > sizes in memory during routing for some use-cases. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CAMEL-14466) camel-core - Optimize reduce error handler memory usage
[ https://issues.apache.org/jira/browse/CAMEL-14466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17027703#comment-17027703 ] Claus Ibsen commented on CAMEL-14466: - First optimisation done, look next week on that 2nd idea > camel-core - Optimize reduce error handler memory usage > --- > > Key: CAMEL-14466 > URL: https://issues.apache.org/jira/browse/CAMEL-14466 > Project: Camel > Issue Type: Improvement > Components: camel-core >Reporter: Claus Ibsen >Assignee: Claus Ibsen >Priority: Major > Fix For: 3.1.0 > > > Just experimenting if we can reduce the RedeliveryTask object size, for > example to have a simple task for non redeliverable processing, and then the > current when you need advanced error handling. This may reduce the object > sizes in memory during routing for some use-cases. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CAMEL-14466) camel-core - Optimize reduce error handler memory usage
[ https://issues.apache.org/jira/browse/CAMEL-14466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17027475#comment-17027475 ] Claus Ibsen commented on CAMEL-14466: - Another idea is to store the redelivery state on the exchange once on uow-start and then reset the state before each redelivery error handler. Then its one object created per uow/exchange instead of per step in the routing > camel-core - Optimize reduce error handler memory usage > --- > > Key: CAMEL-14466 > URL: https://issues.apache.org/jira/browse/CAMEL-14466 > Project: Camel > Issue Type: Improvement > Components: camel-core >Reporter: Claus Ibsen >Assignee: Claus Ibsen >Priority: Major > Fix For: 3.1.0 > > > Just experimenting if we can reduce the RedeliveryTask object size, for > example to have a simple task for non redeliverable processing, and then the > current when you need advanced error handling. This may reduce the object > sizes in memory during routing for some use-cases. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CAMEL-14466) camel-core - Optimize reduce error handler memory usage
[ https://issues.apache.org/jira/browse/CAMEL-14466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17027372#comment-17027372 ] Claus Ibsen commented on CAMEL-14466: - Its a big state object so it takes up in a basic Camel example 76% of the memory and I can get that reduced to 59% of the memory usage. 5 min sampling takes 98 MB (76% space by this) reduced to 55 MB (59% space by this) > camel-core - Optimize reduce error handler memory usage > --- > > Key: CAMEL-14466 > URL: https://issues.apache.org/jira/browse/CAMEL-14466 > Project: Camel > Issue Type: Improvement > Components: camel-core >Reporter: Claus Ibsen >Assignee: Claus Ibsen >Priority: Major > Fix For: 3.1.0 > > > Just experimenting if we can reduce the RedeliveryTask object size, for > example to have a simple task for non redeliverable processing, and then the > current when you need advanced error handling. This may reduce the object > sizes in memory during routing for some use-cases. -- This message was sent by Atlassian Jira (v8.3.4#803005)