| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Holding FTP object in Session |
| dougolson douglas.olson@us.benfieldgroup.com From: Minneapols, MN USA Posts: 2 Member Since: 04/03/06 |
posted April 3, 2006 5:05 PM I am just asking, isn't there quite some overhead storing the FTP object in a session variable? When I use your listview sample solution, on my dev box, I have the following memory for aspnet_wp.exe: 24,240 KB I initiate a download of a 60 MB file it shoots up to : 238,236 KB Normally it just stays at that memory - it never really goes back down back down... Is there anyway to minimize the memory footprint on the server? I am considering connecting/disconnecting on each call -- any other ideas? Doug |
| Amit From: Rome, NY USA Posts: 315 Member Since: 03/15/06 |
posted April 5, 2006 7:45 AM Hi, Regarding your query, please note that when FTP is used in ASP/ASP.NET applications, then the file which you are uploading on the FTP server needs to be transferred to the Webserver through HTTP and then the FTP comes into play. This is because you are using FTP control in a server side scripting model. Thereafter, the webserver sends the data to FTP Server using FTP. So it seems more of a HTTP transfer related issue rather than FTP implementation. I can refer you to the following article which discusses HTTP Transfers, and you might want to use a third party control for HTTP transfer: http://www.4guysfromrolla.com/webtech/091201-1.shtml I hope this addresses your query. Let me know if you require further assistance. -Raj |
| dougolson douglas.olson@us.benfieldgroup.com From: Minneapols, MN USA Posts: 2 Member Since: 04/03/06 |
posted April 5, 2006 8:11 AM Thank you for the reply. I am using the download only feature of the listview application. I am not uploading any files in my example. I understand that, from the end-user, when I request a file to download, the server first connects to the ftp site, brings the entire file into memory, then sends it to the client. Is there anyway to clean up that memory after the download is complete, or, as I imagine, .NET has its own garbage collection :( Doug |
| Raj From: Rome, NY, USA Posts: 389 Member Since: 02/01/06 |
posted April 5, 2006 2:53 PM Hi, Regarding your query, you may try calling gc.collect method after the download has been completed. However, still the HTTP transfer might be the cause of the issue, as the file has been downloaded to the web server through FTP and then through HTTP sent to the client machine. You can also try to save the file on to the disk rather than storing it on the memory. I hope this addresses your queries. Let me know, if you require further assistance. -Raj |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|