Hi Dale,
thanks for digging into this. In fact the Netscape/Sun connector is not
in very good shape at the moment. The amount of work that will go into
it, to bring it into a better shape depends on people like you, that are
going to help us. The Netscape/Sun community seemed to almost
non-existant for many months and only recently a few people showed up
and asked questions about the connector.
Would you please open a bugzilla for your observation and add your
changes as a patch to it? This way it is more likely, that we will
remember this as an open point.
You might also like to check out jk from subversion and build the
Netscape connector from this version. I added some enhancements/bug
fixes which will be released with version 1.2.24.
What is your general impression about the Netscape connector? Is it
working stable for you? Do you think it is worthwhile supporting it in
the future?
Concerning your question: I think the missing connection reuse is just a
historic oversight. Enabling it needs some testing though in order to
ensure it runs well.
Regards,
Rainer
[EMAIL PROTECTED] wrote:
Hi,
BACKGROUND:
I have been using the tomcat connector for Netscape / SunONE web server
from the tomcat-connectors-1.2.23-src bundle available from the main
tomcat site. I have found that connections are not being re-used by the
connector. i.e. the connector opens a separate connection to tomcat for
each and every request it's configured to pass to tomcat and then closes
that connection after receiving it's response.
When I enable debug logging for the connector I see messages telling me
that connection re-use is disabled. I found reference to an option for
apache to disable re-use but nothing for Netscape. Looking at the source
code I find that all but the Netscape connector appear to have a
"s->disable_reuse = JK_FALSE;" statement in the "init_ws_service" function
in the connector source code file (jk_nsapi_plugin.c for Netscape).
As a test I have added this to the Netscape connector and re-compiled and
it now re-uses connections which is an obvious performance gain (I'm
assuming here as I haven't benchmarked anything). The implication is that
someone either explicitly set re-use to be disabled for Netscape,
presumably due to problems not immediately obvious if re-use is enabled,,
or someone changed the common code to make re-use optional but forgot to
enable it by default in the Netscape connector. I only suggest the latter
as there is no immediately obvious indication that it is intentionally
disable in Netscape and the plug-in seems to work with it enabled after
some very brief testing.
QUESTION:
Can anyone confirm or deny whether the Netscape connector should not have
connection re-use enabled as the other connectors do. Some overview of any
reason would also be much appreciated.
Many Thanks in advance.
Dale Roberts
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]