Copy link to clipboard
Copied
Hi Guys
I am using Colfusion 5 on IIS5 server on win2k server, i want to upload a larger file up to 40MB, when i tried to upload large file 37.1MB , bellow error will come
HTTP Error, '503' occurred. 503 Service Unavailable. The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. Please see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4 error code definitions for more information.
Kindly suggest how it can be possible to upload file size increase to 40Mb ? and what is the limit of maxupload file size in coldfusion 5 ? Kindly help and advice.
Thanks
Muzi
Copy link to clipboard
Copied
It has been forever since I used CF5 or that version of IIS, so do a little research before proceeding.
I believe there are TWO places that limit the size of an upload. One is a ColdFusion attribute, and the other is an IIS attribute. I think both of these settings need to be above the 40mb that you plan on uploading.
Also, of course, you need to know if there is enough RAM and physical disk space to accomodate the file in question on the server, too.
Copy link to clipboard
Copied
hi thanks for your comments, as i not found any way yet in IIS5 to increase the file upload size, else i increased the size in cf code.
\upload\index.pacq
so.addVariable("maxFileSize", "104857600");
so.addVariable("maxFileCount", "1");
Max file size, i increased it a lot but no success. Can you know how we can inrease the upload file size in IIS5 ??
Copy link to clipboard
Copied
It doesn't look like a problem of size limit as you should get an error like "Post Size exceeds the maximum limit". Are you working on your own server or is it hosted somewhere? Looks more like a memory/process problem... can you give us details on which version of CF5 you're running and the server configuration (memory, etc...)?
thanks,
Cyril
Copy link to clipboard
Copied
At first glance t I think that error indicates that the service was down. Not a file upload issue directly but maybe a restart of the server or service? Do you get that error every time you try to upload the file? Do other cf pages work just fine before and after?
For file uploads it is also dependant on the memory of your personal computer, as it loads it to memory, sends it along, then stores it in server memory, then ultimately saves it.
I will also add, if this is a public area, where anyone can upload, you really need to lock down those files. This is a very easy way to get hacked. File uploads should be put in a non web accessible area. Not in your web root.
For size limits, I can't remember if CF 5 had any limitations hard coded that you can modify. I know that pre CF 8 it was a few hundred megs, just based on the architecture at the time. 40 mb should be fine, unless your network connection is shoddy.
There was one issue with IIS 6 and SSL, which you may want to look at. http://coldfused.blogspot.com/2007/08/coldfusion-8-changes-with-file-upload.html check the comments on this post.
Copy link to clipboard
Copied
Hi Joshua
Server is running f9, as other sites are also working during error, also less size files like 4mb are uploaded fine , every time problem only for big files like 37+ mb , yes i get error every time for only big files upload , short files are uploaded successfully. Also i am checking this uploading internally from local host server, and for pulblic access, network is working f9, no packet loss.
Files are secure and only viewable directly from cf admin pannel, no one access files thorugh web, kindly help and suggest what is the issue then its fails and give 503 error every time only for big files ??, i am currently trying to upload exact video file size of 37.1MB using high/low speed file option, but still not success.
Kindly help & advice please. If this is related to memory then what is the solution , i posted the server specs.
Regards
Muzi
Copy link to clipboard
Copied
Sorry, impossible for me to know, but I suspect you are running out of available RAM on your server. Likely the error is triggered in IIS before ColdFusion has even touched it. 512 MB Ram is an extremely small amount for a web server. The error seems to be indicating the server is overwhelmed, even temporarily. From what you are reporting this isn't a CF error code but from your web server itself.
Remember that when you upload a file it is putting the full content of that file in memory before writing it to disk. Uploading a large file is taking up RAM.
Copy link to clipboard
Copied
In addition to Josh's info, I'll add that I recall that ColdFusion 5 and earlier (when CF server was still implemented in C++, not Java as in CFMX 6 and up) had a memory requirement of 2-3x that of the actual file being uploaded. So a 50MB file upload might cause the CF server process to momentarily require an additional 100-150MB memory. A file upload that resulted in the server attempting to use more memory than was available to it would typically result in a CF crash (process dies, CF restarts).
Copy link to clipboard
Copied
Thanks for all guys for suggestions, so you guys suggest to increase the memory (RAM) of server ??
Regards
Muzammel Asghar
Copy link to clipboard
Copied
WIthout a doubt I would recommend increasing the RAM on the server. It should improve all aspects of your experience.
For reference, the operating system itself is probably using the vast majority of the RAM on that machine. Anything you add at this point is going to earn rewards.
Without knowing much more about your utilization, I would do some research as to how much RAM that particular machine can accomodate. In a very broad generalization I would start with at least 2 GB.
Copy link to clipboard
Copied
Before you go spending money on ram for the server, try running windows perfmon at the same time that the file upload
is happening, and see exactly what your memory situation is. Does the available physical memory drop, does paging go through the roof? Look at the task manager's list of processes, and sort by size - is the coldfusion server image growing as the upload progresses?
What are the virtual memory settings on your windows installation? Maybe it is set too low. Try increasing it and see what happens.
Finally, check to see what the max memory limit is on your server before getting more!
-reed
Copy link to clipboard
Copied
I have now do twice tests to upload file directly from same server and open a task
manager to see the progress of cfserver.exe process , i not found any huge memory and cpu consumpution during upload, so its seems its not related with the memory issue, server current physical memory = 512MB and during upload process 92mb still free.
After the uploading , when 503 error come, i check now the coldfusion webserver and server logs, its shows its related to the IIS problem.
webserver log shows --> Error writing data from web server to the ColdFusion Application Server. Windows NT error number 1450 occurred.
serverlog shows this --> Error attempting to read the content from web server(Windows NT error number 109 occurred.)
I am now pretty sure its related with IIS, as its unable to upload a large file, kindly suggest and advice.
Regards
Muzi
Copy link to clipboard
Copied
Hi Cyril, here below server specs
Its hosted server and we have remote access of server.
CPU = Intel Xeon 2.50GHz
Memory = 523760KB RAM , Approx = 512MB
Coldfusion Version = 5 Enterprise Edition
IIS Version = 5
Under JVM Settings.
Java Initial Heap Size = 1024K
Max Heap Size = 16384k
Kindly help & advice
Regards
Muzi