Copy link to clipboard
Copied
Hello!
Running ColdFusion 7, I have a form which allows 11 file uploads expected to be no more than 50mb each.
I have tried 11 x 46mb file uploads and after a couple of minutes Firefox comes back with 'The connection was reset'. It works ok for less data.
The server has been increased to allow 3gb, maximum post data size is 1000mb and I have added <cfsetting requestTimeOut ="99999"> on the 'processing page' that the form is submitted to.
Any other ideas?
I know the whole concept of uploading this amount of data through ColdFusion 7 is not ideal, but I don't seems to have another option.
Cheers, Dan
Apache looks ok, Technical Services say the server reports "java.lang.OutOfMemoryError"
Also narrowed it down with these tests, post data of
200MB - 1min 31 (fail)
150MB - 1min 55 (success)
Copy link to clipboard
Copied
Dan with "java.lang.OutOfMemoryError" happening I would suggest look at CF JVM settings.
CF7admin > Server Settings > Java and JVM >
Minimum JVM Heap Size (in MB) value?
Maximum JVM Heap Size (in MB) value?
and
VM Arguments? eg:
-server -XX:MaxPermSize=124m -XX:+UseParallelGC
HTH, Carl.
Copy link to clipboard
Copied
Thanks Carl,
The minimum is blank
The maximum is 512 MB
and the arguments are
-server -Dsun.io.useCanonCaches=false -XX:MaxPermSize=128m -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib
Should I look to change these to my maximum post limits? Or say 1024 at least for now?
EDIT - Had some issues with the server not starting, TS finally settled on 1024 Max Heap Size and
-server -Dsun.io.useCanonCaches=false -XX:MaxPermSize=256m -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib
My tests indicate ~276MB files will upload, two simultaneous uploads of ~276MB one succeeded one failed. A single 322MB file failed.
However it still seems a little flakey on whether it will succeed everytime, I also uploaded a ~276MB set of files, whilst running 100MB simultaneously, and then ran another when that finished. All three uploads succeeded.
Is the MaxPermSize of 256 limiting me here? Although 276>256
Copy link to clipboard
Copied
Settled on max heap size of 1300, min 1000 and MaxPermSize 256.
Managed to upload about 400MB, which will do! They'll have to upgrade to CF10 Enterprise this year so we don't keep getting these issues..
Thanks Carl for pointing me in the right direction.
(let me know if you think your post should be marked as 'correct' I'm not familiar with the etiquette)