camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-6377) Optimize routing engine to reduce stack frames in use during routing and reduce callbacks
Date Sun, 26 May 2013 14:47:20 GMT

    [ 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/26/13 2:46 PM:
-------------------------------------------------------------

We are down to 18 when JMX is enabled, and 17 if JMX is disabled
{code}
2013-05-26 16:45:22,093 [ - seda://start] INFO  tacksNeededDuringRoutingTest$1 - There is
18 lines in the stacktrace
2013-05-26 16:45:22,094 [ - 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.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:391)
	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:273)
	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:173)
	at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:396)
	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:173)
	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 19 when JMX is enabled, and 17 if JMX is disabled
{code}
2013-05-21 11:15:14,572 [ - seda://start] INFO  tacksNeededDuringRoutingTest$1 - There is
19 lines in the stacktrace
2013-05-21 11:15:14,573 [ - 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.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:391)
	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:273)
	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:152)
	at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:356)
	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:152)
	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

Mime
View raw message