"Chen, Gin" wrote: > > is there a way in Servlets to reclaim part of that memory by > sending partial streams thru to the client? >
Maybe. You can request a particular buffer size using ServletResponse.setBufferSize(). You just write to the output stream (or writer) and the servlet container takes care of buffering and flushing when the buffer gets full. In theory, the servlet container doesn't have to honor your buffer size request, but it probably will. You might also want to check out: "SRV.5.1 Buffering" in the 2.3 servlet spec. You don't have to do anything magic to take advantage of container buffering, it's generally on by default. You might want to consider that it might not be the container buffers that are causing your memory problems, it might be your objects that are the problem. But give setBufferSize() a try, and see what happens. -- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
