Acceptable Method for Posting 100Mb files
- Adamwest
- Posts: 16
- Starts: 12
- Wiki Edits: 0
I am using ActsAsAttachment to manage file uploads.Large files cause the server to time out. There is nothing unusual in the log so I assume that its a result of the server managing its memory. Is there some easy way of uploaded the file, possibly in portions to lesson the memory load on the server?
- Varun
- Posts: 410
- Starts: 0
- Wiki Edits: 0
You may run this script with high nice value. I don't this there's another way around.
2008-01-06 05:01 PM
- William
- Posts: 1062
- Starts: 32
- Wiki Edits: 56
When you say "cause the server to time out" - what exact error are you seeing? What's the memory footprint of your mongrel/fastcgi when the file is uploading?
2008-01-07 12:40 AM
- Adamwest
- Posts: 16
- Starts: 12
- Wiki Edits: 0
high nice value? could you elaborate on the subject?...
I was thinking of something like an applet that uploads 1mb chunks spliced on the client side. These could be stitched together on the server side to recreate the file without having to load the entire file into memory.
I was thinking of something like an applet that uploads 1mb chunks spliced on the client side. These could be stitched together on the server side to recreate the file without having to load the entire file into memory.
2008-01-07 12:47 AM
- Kumar
- Posts: 455
- Starts: 0
- Wiki Edits: 5
Hi
You can use the command renice ( renice - alter priority of running processes ) to do that. You can make a system call system("renice -19 -p PID") to change the priority of the process.
You can also check the man pages of renice to view more options
high nice value? could you elaborate on the subject?...
You can use the command renice ( renice - alter priority of running processes ) to do that. You can make a system call system("renice -19 -p PID") to change the priority of the process.
You can also check the man pages of renice to view more options
#man renice
2008-01-07 02:03 AM
HostingRails Support- Adamwest
- Posts: 16
- Starts: 12
- Wiki Edits: 0
This problem is not consistent across computers. on my laptop (which i connect wirelessly with) will crash before uploading a large file every time. If I try the same thing on my desktop the file will go through without error. Can a slow internet connection cause the file upload to timeout in a Firefox browser?
2008-01-07 04:41 PM
- Varun
- Posts: 410
- Starts: 0
- Wiki Edits: 0
Yes - a slow connection could indeed cause a large file upload to time out.