Hi Eric,

See my comments and please wait for another 2, 3 hours till I give you the new build to apply these :-)
Thank you very much. I'm not sure to which extend this will effect the
performance, but I would like to rule this out.
I think this has a considerable performance overhead, so better skip I/O writes and reads as much as possible.
Could you please describe the two parameters a little bit! Please
consider the following example. I expect response to be less than 50 kb,
so I would like to set the buffer size to 64 kb. If I have a response <=
64 kb it won't be written to disc. Requests which are bigger than 64 kb
will be written to disc in blocks of 64 kb. How would I use these
parameters?

Or do you use an approach where the size of the buffer will be something
like chunk.size * chunk.number? But what is chunk.threshold? The maximal
number of chunks? So the buffer size could also be chunk.size *
chunk.threshold?
chunk.size is the size of a chunk that will be written to the temporary data (data source, which can contain in-memory data as well as disk based data if the threshold exceeds) for example if the chunk.size is set to 1024*64 then your buffer size is 64 Kb and the chunk.threshold is the number of chunks that triggers a temp file, from there onwards. So for your example of 64 Kb blocks, the answer would be as follows;

synapse.temp_data.chunk.size = 64 * 1024 (calculate the value and and put, you can not use the multiply sign here)
synapse.temp_data.chunk.threshold = 1

Is this clear to you now? If you need further clarifications please let me know...

BTW: Why do you need to keep the buffer size to 64 Kb, you may keep the buffer size to 8 Kb or 16 Kb and vary the max chunk length for in-memory store (chunk.threshold) as 8 or 4 respectively, and I don't think this will affect performance a lot but will be better when dealing with small messages. Otherwise you are assigning a 64 Kb buffer even for 1Kb or 2 Kb messages.

Default values for these parameters are 1024 and 8 respectively.

Thanks,
Ruwan
Could you please clarify this? Thanks a lot!

Regards,
   Eric

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev



_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to