Re: servlets slow when disconnected
From: Chris Smith (cdsmith_at_twu.net)
Date: 04/26/04
- Next message: Christophe Vanfleteren: "Re: servlets slow when disconnected"
- Previous message: Sudsy: "Re: servlets slow when disconnected"
- In reply to: Bura Tino: "Re: servlets slow when disconnected"
- Next in thread: Bura Tino: "Re: servlets slow when disconnected"
- Reply: Bura Tino: "Re: servlets slow when disconnected"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 26 Apr 2004 07:52:47 -0600
Bura Tino wrote:
> I must begin by admitting that I pick things up as I need them (which is
> probably not the best approach, but to me that's life). So even though I've
> been writing servlet applications for a couple years now, I'm not quite sure
> what the word container means in the context of servlets and not quite sure
> what it means that it's logging the hostname of the client. Can you direct
> me a source so I can educate myself? (And maybe you can just tell me how to
> disable hostname logging...)
The container is the software that actually accepts connections from the
networks and calls your servlets. Examples include Tomcat, JRun, Caucho
Resin, Jetty, and more. J2EE application servers such as WebLogic,
WebSphere, or Sun ONE App Server also contain a servlet container as a
component of the larger system. Do you know which container you are
using?
The rest of your questions depend on which container you're using.
Depending on which one you're using, I may or may not be able to answer
it.
> As far as DNS, and I apologize if this is becoming increasingly ot, how come
> a disabled connection times out faster than a "media disconnected"-type
> connection.
A disabled connection doesn't exist as far as TCP/IP is concerned, so it
won't even try the connection. (Indeed, it couldn't.) If you've got a
cable unplugged, then the link exists, but just times out. That's the
difference.
> Also, what's so difficult about resolving "localhost"?
This depends on your network situation. Chances are, what's being
resolved is your external IP on the network interface of the client.
> And what makes me very curious is why dumb things like outlook and
> explorer time out instanteneously and the servlet container takes 15
> seconds (and does it twice)?
Simple. Outlook and IE aren't doing DNS lookups on your client IP
address. DNS behaves notoriously poorly when it can't find an answer
and it thinks it can find an answer from some server that's not really
available.
The delay happening twice (i.e., before and after the request is
handled) is likely due to the specific logging configuration in your
servlet container.
-- www.designacourse.com The Easiest Way to Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation
- Next message: Christophe Vanfleteren: "Re: servlets slow when disconnected"
- Previous message: Sudsy: "Re: servlets slow when disconnected"
- In reply to: Bura Tino: "Re: servlets slow when disconnected"
- Next in thread: Bura Tino: "Re: servlets slow when disconnected"
- Reply: Bura Tino: "Re: servlets slow when disconnected"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|