Problem:
I'm getting JVM out of Memory error when the flow read a large file of size 500MB from a local file system, encypt the file using JCE password based encryption and write the encrypted payload into the same local file sytem. Without the encryption message processor, I could able to read and write a file of size 2GB or more, which means the problem occurs only when we include JCE encryption message processor.
Following is the flow to reproduce the problem
http Listener -> Read(file) -> JCE pbe(payload) -> Write(file)
Environment:
Anypoint Studio = 7.4.0
Mule Server = 4.2.2 EE
File connector = 1.3.2
Crypto = 1.3.2
Error:
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid13928.hprof ...
Heap dump file created [646812541 bytes in 15.692 secs]
Thanks for your reply Nathan, Please find the attached xml code, i made it simple so there is no raml spec and you can access the url as below
http://localhost:8081/api/file-cp?src=c:/temp/input.zip&dest=c:/temp/output.zip&encrypt=false
http://localhost:8081/api/file-cp?src=c:/temp/input.zip&dest=c:/temp/output.zip&encrypt=true