<cfexecute

Hi
Im running Ghostscript to reduce the size of the PDF’s before I email them off, its resizing them fine but now im getting this error: “ROOT CAUSE:
java.lang.OutOfMemoryError: Java heap space”
im wondering is it mabe because Ghostscript is not closing after it has each PDF processed
Does <cfEcecute automatically close each time it has something processed or do i have to put that into the code?
heres the code im using:


<cfexecute name="C:\\Program Files\\gs\\gs8.71\\bin\\gswin32c"
       arguments="-sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=\\\\Example\\Example\\Example\\Example\\Location1\\#pdfname# \\\\Example\\Example\\Example\\Example\\Location2\\#pdfname#"
		 variable="data"
        timeout="10" />