-
Notifications
You must be signed in to change notification settings - Fork 27
Description
There is a performance issue when processing large files using AS4. We've been trying to process an incoming file 100 MB big and locally it was taking us 23 minutes on a fairly powerful laptop.
The issue was the security provider which somehow doesn't seem to be a BouncyCastle one as the fix in #84 promised. It looks like the fix in #104 somehow affected it.
Debugging revealed that the bottleneck was in AttachmentContentSignatureTransform at the line number 217.:
while ((numBytes = inputStream.read(buf)) != -1)
To fix it, as discovered by my colleague @javierestevez, we introduced the following code:
@PostConstruct public void init() { Security.insertProviderAt(new BouncyCastleProvider(), 1); }
to the configuration class in the spring boot project. By doing that the processing time went down to 11 seconds locally.
We are using:
- Spring boot 2.7.7
- oxalis-as4 5.5.0
- jdk 11
Worth noting is there is no issue when using AS2.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status