[ 
https://issues.apache.org/jira/browse/CAMEL-6377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13662729#comment-13662729
 ] 

Claus Ibsen edited comment on CAMEL-6377 at 5/28/13 11:14 AM:
--------------------------------------------------------------

We are down to 14 when JMX is disabled, and 15 if JMX is enabled
{code}
2013-05-28 13:14:19,165 [ - seda://start] INFO  tacksNeededDuringRoutingTest$1 
- There is 14 lines in the stacktrace
2013-05-28 13:14:19,166 [ - seda://start] ERROR tacksNeededDuringRoutingTest$1 
- Dump stacktrace to log
java.lang.IllegalArgumentException: Forced to dump stacktrace
        at 
org.apache.camel.processor.ReduceStacksNeededDuringRoutingTest$1$1.process(ReduceStacksNeededDuringRoutingTest.java:63)
        at 
org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)
        at 
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:388)
        at 
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:174)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
        at 
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:174)
        at 
org.apache.camel.component.seda.SedaConsumer.sendToConsumers(SedaConsumer.java:276)
        at 
org.apache.camel.component.seda.SedaConsumer.doRun(SedaConsumer.java:185)
        at 
org.apache.camel.component.seda.SedaConsumer.run(SedaConsumer.java:138)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)
{code}
                
      was (Author: davsclaus):
    We are down to 15 when JMX is disabled, and 16 if JMX is enabled
{code}
2013-05-28 11:13:36,590 [ - seda://start] INFO  tacksNeededDuringRoutingTest$1 
- There is 15 lines in the stacktrace
2013-05-28 11:13:36,591 [ - seda://start] ERROR tacksNeededDuringRoutingTest$1 
- Dump stacktrace to log
java.lang.IllegalArgumentException: Forced to dump stacktrace
        at 
org.apache.camel.processor.ReduceStacksNeededDuringRoutingTest$1$1.process(ReduceStacksNeededDuringRoutingTest.java:62)
        at 
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
        at 
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
        at 
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:388)
        at 
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:174)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
        at 
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:174)
        at 
org.apache.camel.component.seda.SedaConsumer.sendToConsumers(SedaConsumer.java:276)
        at 
org.apache.camel.component.seda.SedaConsumer.doRun(SedaConsumer.java:185)
        at 
org.apache.camel.component.seda.SedaConsumer.run(SedaConsumer.java:138)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)
{code}
                  
> Optimize routing engine to reduce stack frames in use during routing and 
> reduce callbacks
> -----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6377
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6377
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.12.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.12.0
>
>
> We can optimize the Camel routing engine internally, and redue the need for 
> wrapping processors (those internally used for cross cutting functionality) 
> where they would wrap each other one by one; which then results in larger 
> call stacks during routing.
> This also shows to end users when stacktraces is being logged etc, as they 
> tend to be a bit longer with many internal calls.
> Though the JVM optimizes this at runtime as it can inline the calls and 
> whatnot. But the stacktraces is still shown expanded.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to