----------------------------------------------------------------
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!!!
----------------------------------------------------------------

Bruno Treguier wrote:
> 

> Hello everybody,
Hi, Bruno /salut,
> 
> I'm new to the list, but I swear I've carefully read the FAQ before posting.
> :-)
> However, nobody's perfect, and I may have missed something... I hope not,
> though !
> 
> Here's my problem:
> 
> It seems as if the JServ server is looping. Otherwise, everything seems ok,
> my servlets run fine and everything, but here is what I get in my jserv.log:
> 
> [03/12/1999 15:39:07:739 CET] Reading request data
> [03/12/1999 15:39:10:738 CET] Connection from localhost/127.0.0.1
> [03/12/1999 15:39:10:739 CET] Initializing servlet request
> [03/12/1999 15:39:10:739 CET] Reading request data
> [03/12/1999 15:39:13:738 CET] Connection from localhost/127.0.0.1
> [03/12/1999 15:39:13:739 CET] Initializing servlet request
> [03/12/1999 15:39:13:739 CET] Reading request data
> [03/12/1999 15:39:16:738 CET] Connection from localhost/127.0.0.1
> [03/12/1999 15:39:16:739 CET] Initializing servlet request
> [03/12/1999 15:39:16:739 CET] Reading request data
> 
> Etc.
> 
> Every 3 seconds or so, there seems to be a "stray" connection, which I can't
> explain. It also clutters my network connections, of course. Here is a
> sample of my "netstat -a" output (there are approximately 80 concurrent
> connections):
Is'nt this part of the wrapper "ping" function ?

> localhost.8007       localhost.60413      32768      0 32768      0 TIME_WAIT
> localhost.8007       localhost.60415      32768      0 32768      0 TIME_WAIT
> localhost.8007       localhost.60416      32768      0 32768      0 TIME_WAIT
> localhost.8007       localhost.60418      32768      0 32768      0 TIME_WAIT
> localhost.8007       localhost.60421      32768      0 32768      0 TIME_WAIT
> localhost.8007       localhost.60422      32768      0 32768      0 TIME_WAIT
> localhost.8007       localhost.60424      32768      0 32768      0 TIME_WAIT
> localhost.8007       localhost.60430      32768      0 32768      0 TIME_WAIT
> 
> Etc.

The JVM doen't release immediately the sockets.
> 
> Anyone sees what is going on ?
> 
> I'm using Apache_1.3.9 with Apache-JServ-1.1b3, on a Solaris 2.6 box, and
> I,m using JDK 1.2 and JSDK 2.0.
> 
> BTW, in trying to see what was going on, I tried to snoop the TCP connections
> to port 8007, and so tried to use another ApJServDefaultHost than
> "localhost",
> which uses the loopback address (I also changed the "bindaddress" variable
> in the jserv.properties file). But whatever I put in ApJServDefaultHost, it
> turns out that mod_jserv still tries to connect to 127.0.0.1. Again, any
> explanation ?

You are (I believe) experimenting the "ping" watchdog. The wrapper forks
and executes the JVM, so it assumes it is on the same host.
Did you restart Apache after modifying the bindaddress ?
If yes, too bad the wrapper doesn't realize JServ is listening on
another IP addr. If this is the case, fill a bug report
(bugs.apache.org).

Jean-Luc Rochat
http://www.jnix.com


--
--------------------------------------------------------------
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