Re: Redirecting response stream to avoid OutOfMemoryErrors

"Wolfgang Fahl" <[email protected]> Tue, 22 Sep 2009 20:10:14 +0200
Newsgroups gmane.comp.web.httpunit.devel
Organization BITPlan GmbH
Message-ID <[email protected]>
Christian,

you wrote:
> is there a way to redirect the response stream of a servlet into a file 
> to avoid OutOfMemoryErrors due to the use of a ByteArrayOutputStream in 
> ServletUnitOutputStream.java. My Test can create quite huge responses 
> depending on the configuration of the tested servlet. Or should I look 
> into other frameworks like Apache Cactus.
my name is Wolfgang Fahl, i also live in germany and you 
may contact me directly via my personal e-mail or my 
phone number. Please go to http://www.bitplan.com to 
find out about both of these.

The fix for your issue looks like just a few lines of 
code to be changed and I encourage you to do this based 
on the lastest subversion state. Since the latest 
subversion state is not stable at this point I'd then 
recommend to use the modification to patch a subversion 
state of a few revisons back to get a version that will 
work nicely for you. As soon as we have a stable 
revision again you can use that one again.

I'm looking forward to work togehter with you.
Liebe Grüsse nach Göttingen!

Yours
  Wolfgang

BITPlan - smart solutions
Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
Tel. +49 2154 811-480, Fax +49 2154 811-481
Web: http://www.bitplan.de
bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, 
Geschäftsführer: Wolfgang Fahl

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop