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

Servlet tuning

From: Jaroslav Gergic <Jaroslav.Gergic@st.ms.mff.cuni.cz>
Date: Wed, 31 Mar 1999 13:50:59 -0500 (EST)
Message-ID: <37026E10.AD0D88E3@st.mff.cuni.cz>
To: www-jigsaw@w3.org
I have the following problem running servlet under Jigsaw:

I designed a simple servlet, which connects to the Oracle 7 database
using thin driver (connects inside init() method). User can supply any
SQL select using simple HTML form to this servlet. Servlet gets SQL
statement through DoPost() method.
Servlet loads data from database and renders HTML page containing result

Under servletrunner it works OK and with following timings:
1: statements prepare 10 ms
2: data retrieval 20 ms
3: page rendering 100 ms

Under Jigsaw it also works delay, but with long delays (using the same
SQL query):
1: statements prepare 10 ms
2: data retrieval 20 ms
3: page rendering 3 - 4 sec

These delays are occur randomly but very often cca 75% of hits.
Other 25% is fast as using servletrunner.

WinNT 4.0 SP3
PII 266 MHz, 128 MB RAM.
JDK 1.2
Single client connected to Jigsaw web server = test application, no
other hits.

I think problem can be eliminated with proper settings of caching and/or
garbage collection
policy. But I do not know these setting.
Behavior described above is unacceptable for my web based application,
response in 4 seconds
with single performing task is very slow.

Thanks for any suggestion.

Name: Jaroslav Gergic
- student of the Faculty of Mathematics and Physics, Charles University,
  E-mail: Jaroslav.Gergic@st.mff.cuni.cz
  Web: http://www.kolej.mff.cuni.cz/~jg
- editor of the PDA section of Mobil Server
  E-mail: gergi@mobil.cz
  Web: http://www.mobil.cz
Received on Wednesday, 31 March 1999 14:00:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:34 UTC