Re: what is "Exception while swapping" ?

2001-08-08 Thread Ben Groeneveld

Thanks, that's a good idea.  We'll try implementing SingleThreadModel to 
see if that has a positive effect.  BenG.

Haseltine, Celeste wrote:

>The swapRunnable and run methods clearly point to Thread execution in JRUN.
>My guess is that you have a thread conflict, or possible a "race" condition
>between two execution threads, which is causing your product to "lock-up"
>while waiting for one of the threads to complete execution.  Without seeing
>your code I am making a total guess, but is your servlet code designed to be
>multi-threaded, or did you design it to be single threading only?  If it is
>designed to be multi-threaded, did you synchronize the methods in your
>servelet class that require synchronization.  Also, if your servlet is
>accessing your db, are you using a driver that can implement connection
>pooling (i.e. pull a connection thread out of the connection pool), and if
>so, did you select the connection pooling checkbox in the JRUN JDBC console?
>Those are just a few educated guesses as to the things I would look into
>without knowing more about your servlet code.
>
>Hope this helps!!!
>
>Celeste
>
>   
>
>-Original Message-
>From: Ben Groeneveld [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 08, 2001 12:08 PM
>To: JRun-Talk
>Subject: what is "Exception while swapping" ?
>
>
>In an attempt to debug what appears to be a lockup we turned debug on in 
>logging.  One thing we see is this:
>
>--
>08/07 16:04:43 info (JRun) f_req_drw_Servlet.doGet END
>08/07 16:05:00 debug (web) web-480 caught Exception while swapping 
>[java.lang.InterruptedException]
>java.lang.InterruptedException
>at allaire.jrun.http.WebService.swapRunnable(WebService.java:118)
>at allaire.jrun.ThreadPool.swapRunnable(ThreadPool.java:223)
>at allaire.jrun.WorkerThread.run(WorkerThread.java:77)
>
>08/07 16:05:10 debug (web) Limiting InputStream read to '-2' bytes to 
>maintain keepalive.
>08/07 16:05:10 info (JRun) f_req_drw_Servlet.doPost BEGIN
>--
>
>The END / BEGIN info's signify our code appears fine.  Can someone clue 
>me in on what this might mean?  Thanks, BenG.
>

-- 
Ben Groeneveld 
Information Concepts, Inc., 115 N.W. Oregon, Suite 30, Bend, OR 97701
Mailto:[EMAIL PROTECTED], phone:541.388.3611, cell:208.520.6488




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: what is "Exception while swapping" ?

2001-08-08 Thread Haseltine, Celeste

The swapRunnable and run methods clearly point to Thread execution in JRUN.
My guess is that you have a thread conflict, or possible a "race" condition
between two execution threads, which is causing your product to "lock-up"
while waiting for one of the threads to complete execution.  Without seeing
your code I am making a total guess, but is your servlet code designed to be
multi-threaded, or did you design it to be single threading only?  If it is
designed to be multi-threaded, did you synchronize the methods in your
servelet class that require synchronization.  Also, if your servlet is
accessing your db, are you using a driver that can implement connection
pooling (i.e. pull a connection thread out of the connection pool), and if
so, did you select the connection pooling checkbox in the JRUN JDBC console?
Those are just a few educated guesses as to the things I would look into
without knowing more about your servlet code.

Hope this helps!!!

Celeste

   

-Original Message-
From: Ben Groeneveld [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 12:08 PM
To: JRun-Talk
Subject: what is "Exception while swapping" ?


In an attempt to debug what appears to be a lockup we turned debug on in 
logging.  One thing we see is this:

--
08/07 16:04:43 info (JRun) f_req_drw_Servlet.doGet END
08/07 16:05:00 debug (web) web-480 caught Exception while swapping 
[java.lang.InterruptedException]
java.lang.InterruptedException
at allaire.jrun.http.WebService.swapRunnable(WebService.java:118)
at allaire.jrun.ThreadPool.swapRunnable(ThreadPool.java:223)
at allaire.jrun.WorkerThread.run(WorkerThread.java:77)

08/07 16:05:10 debug (web) Limiting InputStream read to '-2' bytes to 
maintain keepalive.
08/07 16:05:10 info (JRun) f_req_drw_Servlet.doPost BEGIN
--

The END / BEGIN info's signify our code appears fine.  Can someone clue 
me in on what this might mean?  Thanks, BenG.

-- 
Ben Groeneveld 
Information Concepts, Inc., 115 N.W. Oregon, Suite 30, Bend, OR 97701
Mailto:[EMAIL PROTECTED], phone:541.388.3611, cell:208.520.6488
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: what is "Exception while swapping" ?

2001-08-08 Thread Scott Stirling

Hi Ben,

To interrupt a sleeping thread you have make it throw an
InterruptedException.  This is just a normal side-effect of programmatically
swapping threads.  It shouldn't be logged, IMO, but it is, and it causes
people to ask about it frequently.

Scott Stirling
JRun QA
Macromedia

> -Original Message-
> From: Ben Groeneveld [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 08, 2001 1:08 PM
> To: JRun-Talk
> Subject: what is "Exception while swapping" ?
> 
> 
> In an attempt to debug what appears to be a lockup we turned 
> debug on in 
> logging.  One thing we see is this:
> 
> --
> 08/07 16:04:43 info (JRun) f_req_drw_Servlet.doGet END
> 08/07 16:05:00 debug (web) web-480 caught Exception while swapping 
> [java.lang.InterruptedException]
> java.lang.InterruptedException
> at allaire.jrun.http.WebService.swapRunnable(WebService.java:118)
> at allaire.jrun.ThreadPool.swapRunnable(ThreadPool.java:223)
> at allaire.jrun.WorkerThread.run(WorkerThread.java:77)
> 
> 08/07 16:05:10 debug (web) Limiting InputStream read to '-2' bytes to 
> maintain keepalive.
> 08/07 16:05:10 info (JRun) f_req_drw_Servlet.doPost BEGIN
> --
> 
> The END / BEGIN info's signify our code appears fine.  Can 
> someone clue 
> me in on what this might mean?  Thanks, BenG.
> 
> -- 
> Ben Groeneveld 
> Information Concepts, Inc., 115 N.W. Oregon, Suite 30, Bend, OR 97701
> Mailto:[EMAIL PROTECTED], phone:541.388.3611, cell:208.520.6488

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



what is "Exception while swapping" ?

2001-08-08 Thread Ben Groeneveld

In an attempt to debug what appears to be a lockup we turned debug on in 
logging.  One thing we see is this:

--
08/07 16:04:43 info (JRun) f_req_drw_Servlet.doGet END
08/07 16:05:00 debug (web) web-480 caught Exception while swapping 
[java.lang.InterruptedException]
java.lang.InterruptedException
at allaire.jrun.http.WebService.swapRunnable(WebService.java:118)
at allaire.jrun.ThreadPool.swapRunnable(ThreadPool.java:223)
at allaire.jrun.WorkerThread.run(WorkerThread.java:77)

08/07 16:05:10 debug (web) Limiting InputStream read to '-2' bytes to 
maintain keepalive.
08/07 16:05:10 info (JRun) f_req_drw_Servlet.doPost BEGIN
--

The END / BEGIN info's signify our code appears fine.  Can someone clue 
me in on what this might mean?  Thanks, BenG.

-- 
Ben Groeneveld 
Information Concepts, Inc., 115 N.W. Oregon, Suite 30, Bend, OR 97701
Mailto:[EMAIL PROTECTED], phone:541.388.3611, cell:208.520.6488



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists