commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject Re: [commons-io] CopyUtils
Date Tue, 13 Jul 2004 22:38:24 GMT
commons-io does not have another method for the task you describe.

At present I would say that commons-io would recommend that in truly
performance/scalability critical tasks it would be adbisable to code your
own io code for this kind of task.

Stephen

----- Original Message -----
From: "Robert Taylor" <rtaylor@mulework.com>
> Greetings, I would like to use CopyUtils.copy(InputStream is, OutpuStream
os) to manually
> server (read from input stream and write to output stream) up large binary
files to web clients (browsers).
>
> After reading the documentation which indicates it does not flush the
buffer in the method,
> I'm concerned that this would result in OutOfMemoryErrors under large
loads.
>
> I was under the assumption that it would be prudent to flush the buffer
after a certain number
> of reads to reduce the amount of resident memory used.
>
> Is there a another utility to perform such a common task?
>
> robert
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message