----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi folks

If I hit <ctrl-r> numerous times in a browser, the servlet gets really
mixed up.

The particular servlet I'm testing makes several selects from a
database, and then returns a page of about 60k built from about 40 lines
of database results.

The user gets his page after some delay, and everything seems healthy,
but when I look at logs of what happened I find that the servlet has
only executed to completion once or twice, the rest of the times it is
clear that the servlet has simply stopped executing.

The bad consequence of that is that JDBC connections aren't closed and
eventually I run out of them.


My questions:

Is there a standard way of dealing with this?

Should I block frequent calls for the same session using the session
object?

Is this a symptom of a fundamental flaw in the way I've implemented my
servlets?

To be on the safe side, I've set just about every method in the system
to be 'synchronized'.  Is that a dumb thing to do? (I'm more concerned
about up-time than performance right now.)


My configuration:

Linux RH5.2
Apache
Apache JServ
dbConnectionBroker
mm.mysql.jdbc
MySQL



Any help greatly appreciated.


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to