I forgot it.
After adding the instruction setMaxThreadCount(3) everything works perfectly now.

Thank you!