I have a java program that write some temporary files in the temp directory. The temp directory is on a SSD. The write operation is normally very fast. But now with some specific sample data it is very, very slow and the CPU of the Antimalware Service Executable is high (30% - 35%). The write speed is approx. 50 KB/s.
If I set a breakpoint on the write loop the CPU of the Antimalware go to 0%. If I continue then the CPU of the Antimalware go to high. I can repeat this multiple time.
It look like the Antimalware is scanning my temporary data intensively. Why occur this and how can I prevent this?