So you append each invalid record to a file (direct:AEDFormatException).

For *each* rejected line, this process occurs: the FileInputStream is
opened, positioned at the end, the line is written, the
FileInputStream is closed. That could explain some of the slowness.

Let's gather some performance stats for this endpoint. You have 2 options:

- JMX => within the "processors" subtree you'll find a SendProcessor
MBean associated with this file endpoint. Check its attributes.
- Performance stats processors before and after the endpoint: 1)
before: place a processor that saves System.currentTimeMillis() in an
Exchange property, and 2) after: print to a log file the difference
between now and the saved property.

Please share your findings.

Raúl Kripalani
Apache Camel Committer | Enterprise Architect,
Program Manager, Open Source Integration specialist
http://about.me/raulkripalani |
http://www.linkedin.com/in/raulkripalani | http://blog.raulkr.net |
twitter: @raulvk

Reply via email to