Re: First req.getParameter(String) in servlet horrible _slow_ ;-(

Roland Mainz wrote:

> Hi !
>
> ----
>
> A coworker found yesterday a nasty performance problem in jigsaw
> (jigsaw 2.0.4 with Tomcat 3.1 M1):
> A servlet receiving a large HTTP POST request consumes a lot CPU time
> (in our case it needs ~2-3 secs) in the first
> HttpServletRequest.getParameter() call.
> Any idea where the problem sits and how to solve this (without buing a
> UltraSPARC-4500 to power-out the problem =:-) ?

Well, the parsing is done in org.w3c.jigsaw.forms.URLDecoder so the "problem" should
sits there. But I don't see anything that could slow down the request handling, this should
be a really really big POST! what's its size?
(2 or 3 seconds just for parsing the body, that's a lot of time)


Regards, Benoit.

>
>
> ----
>
> Bye,
> Roland
>
> --
>   __ .  . __
>  (o.\ \/ /.o) Roland.Mainz@informatik.med.uni-giessen.de
>   \__\/\/__/  gisburn@informatik.med.uni-giessen.de
>   /O /==\ O\  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
>  (;O/ \/ \O;) TEL +49 641 99-13193 FAX +49 641 99-41359

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium   (W3C)
                    Architecture domain - Jigsaw Engineer

                http://www.w3.org/People/Mahe  - bmahe@w3.org
---------------------------------------------------------------------

Received on Thursday, 6 April 2000 03:53:54 UTC