Re: DownloadAction and concurrent threads
David Durham wrote: David Grundberg wrote: Actually, Oliver Meyn wrote the following question. My apologies to David Grundberg for misquoting. My app needs to allow downloads of relatively large files (10MB). Because Struts can/will reuse Actions for different threads, I'm worried that when multiple requests attempt to download these big files that a single "BigFileDownloadAction" will block until a download is complete thereby slowing all downloads (effectively making them serial). Am I missing something? -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DownloadAction and concurrent threads
David Grundberg wrote: My app needs to allow downloads of relatively large files (10MB). Because Struts can/will reuse Actions for different threads, I'm worried that when multiple requests attempt to download these big files that a single "BigFileDownloadAction" will block until a download is complete thereby slowing all downloads (effectively making them serial). Am I missing something? Why worry? Benchmark it and find out. I like Jmeter, but maybe someone else on the list can recommend a better tool. As it stands, you have not described anything that would require a blocking execute method in your action. From what you've stated, you will likely see some disk IO contention. Again, benchmarking will tell you what your system can handle, and whether or not you need to optimize. Why optimize unless you're sure you need to. And, if you're going to optimize, it's nice to have a way to measure. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DownloadAction and concurrent threads
I see no reason why the DownloadAction would be programmed to synchronize against anything, especially for the whole download, that would be a real showstopper! If you don't use instance variables, and only read from a database (with a connection for each download) or a filesystem, you wouldn't need to synchronize either. Oliver Meyn wrote: Hi all, My app needs to allow downloads of relatively large files (10MB). Because Struts can/will reuse Actions for different threads, I'm worried that when multiple requests attempt to download these big files that a single "BigFileDownloadAction" will block until a download is complete thereby slowing all downloads (effectively making them serial). Am I missing something? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DownloadAction and concurrent threads
Hi all, My app needs to allow downloads of relatively large files (10MB). Because Struts can/will reuse Actions for different threads, I'm worried that when multiple requests attempt to download these big files that a single "BigFileDownloadAction" will block until a download is complete thereby slowing all downloads (effectively making them serial). Am I missing something? Thanks, Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]