着信フォルダーを監視してファイルを処理する春の統合アプリケーションがあります。アプリケーションがメンテナンスまたはその他の理由でダウンしている場合、着信フォルダーはアップストリーム アプリケーションによって 100K ファイルでいっぱいになります。アプリケーションを再起動すると、フリーズし、受信ファイルが処理されず、すべての受信ファイルをロードしようとしている可能性があります。
ここに構成があります
<file:inbound-channel-adapter id="inFiles" channel="inFilesin" directory="file:${incoming.folder}"
queue-size="300" filename-regex="(?i)^(?!.*writing) " auto-startup="true" auto-create-directory="false" >
<int:poller id="fw.fileInboudPoller" fixed-rate="1" receive-timeout="3" time-unit="SECONDS"
max-messages-per-poll="10" task-executor="taskExecutor" />
</file:inbound-channel-adapter>
<task:executor id="taskExecutor" pool-size="10-20" queue-capacity="20" rejection-policy="CALLER_RUNS" />
あなたの助けに感謝。
ありがとう、モハン