With the graph you show you should only get a single output file. The one from Idepix. The resample result is not written by directly passed to the Idepix processor. Where do you see the resampled output?
Processing S2 data at 10m takes always quite some time.
The S2Resampling is not the fastes. If you are not interested in accurate angle interpolation then you can use Resample instead of S2Resampling.
Idepix is an complex algorithm too. Especially when enabling cloud shadow detection. But this you have already disabled. Maybe disabling mountain shadows can also save some computation time. But this is probably not suitable for your application.
So there is not much you can do besides lowering the resolution and or equipping your computer with more ram.
You can also check if you have some resources left. You can change the memory settings for SNAP. I took the following from another document.
For the SNAP Desktop application, you can increase the amount of memory available to SNAP.
In the ‘etc’ folder of the SNAP installation directory, you’ll find a file named snap.conf. Open it in a text editor.
There is the line which starts with ‘default_options=’
In this line you’ll find an option like -J-Xmx5G
. Increase the value. You could use something like -J-Xmx13G
, if you have enough memory in your computer. By default, it is set to ~75% of the maximum value. This is usually a good choice.
If you experience the error on the command line with gpt or pconvert you need to change different files.
You need to change the corresponding vmoptions files, either gpt.vmoptions or pconvert.vmoptions.
Change the value after -Xmx in the last line.
If your computer has 16GB the Xmx-value is 11GB, by default. You can try to set to 14GB. But then you have not much memory left for other things.
If your computer has only 8GB of RAM, then it is just not powerful enough for processing S2 data at 10m.