W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 2000

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

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Thu, 06 Apr 2000 09:53:18 +0200
Message-ID: <38EC426D.BAEB8D30@sophia.inria.fr>
To: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>
CC: W3 Jigsaw Mailinglist <www-jigsaw@w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:07 UTC