I have a servlet that runs a web questionnaire.  It instantiates a class (once) that looks up datasource for pooled connection to db.  In between each question a new conn is grabbed from pool, used to get next question, and closed.  The servlet is extended by a class that over-rides a few methods to customize the behavior.  The extending class is what is mapped in JRun as the url.  


The base servlet class implements SingleThreadModel, so I understand that JRun may make more than one copy when service is called by more than one user.  The most users I have ever noted at one time is 3.  However, at least once a day I see in event log that init of the extending class is called multiple times in a row, sometimes as many as 10, within seconds or milliseconds of each other (this does NOT correspond to 10 users being on).  Each time it is called I also see a request "Creating JDBC connection to jdbc:sybase:Tds:...<mydb>".  This init/create conn series is usually followed by multiple blocks of "Connection reset by peer: JVM_recv in socket input stream read [java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read]..."  


I do not understand why init is being called so many times, and if this is leading to the multiple "connection reset by peer statements".  It is not consistent, as at other times I see init being called maybe 2-3 times as users log on, with no problems.   


I have set the timeout on my db conn pool to 5 minutes (was at 30), but this has not changed anything.  We are using JRun 3.1 Version 3.1.51002 on Windows 2000, with IIS.  We connect using SSL.  I would appreciate any thoughts about what might be causing Init to be called so many times in a row.


Thanks in advance,
Mary
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to