You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (JIRA)" <ji...@apache.org> on 2018/11/02 18:32:00 UTC

[jira] [Resolved] (CAMEL-12913) Does camel disruptor hold processed messages?

     [ https://issues.apache.org/jira/browse/CAMEL-12913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Cosentino resolved CAMEL-12913.
--------------------------------------
    Resolution: Invalid

Please ask on the user mailing list first

> Does camel disruptor hold processed messages?
> ---------------------------------------------
>
>                 Key: CAMEL-12913
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12913
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-disruptor, camel-http, camel-http4
>    Affects Versions: 2.18.5, 2.20.0
>            Reporter: D001
>            Priority: Critical
>
> I am using camel disruptor component to perform asynchronous processing. My application receives request from an application through HTTP rest service and process that, keep that request in exchange property, prepare a response and send it to another HTTP service.
> *RouteBuilder:*
> {code:java}
> from("direct:receiveMessageHttp")
>  .routeId("receiveMessageHttpRoute")
>  .threads()
>  .process(new ValidateReceivedHttpRequestProcessor())
>  .process(new SetHttpResponseToExchangePropertyProcessor())
>  .inOnly("disruptor://prepareResponseRoute")
>  end();
>  
> from("disruptor:prepareResponseRoute?concurrentConsumers=5") 
>  .routeId("prepareResponseRoute")
>  .process(new DoSomethingProcessor())
>  .toD("http://sendToMyHttpPostServiceUrl.com/sendHere")
>  .end();{code}
> The problem that I am facing here is, the message is received at [http://sendToMyHttpPostServiceUrl.com/sendHere|http://sendtomyhttppostserviceurl.com/sendHere] but the ring buffer of prepareResponseRoute disruptor still holds the exchange (exchange property, in message body etc.) and never releasing. Note that I have kept default ring buffer size (1024).
> I am facing memory issue because of this.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)