On 03 January 2006, tmarx said:
> Once I wait for some minutes and continue to click on a link, the
> webite stalls and it is being loaded "forever"...it seems like it is
> caught up in a loop....but nothing else happens anymore. I have not
> found out where exactly it hangs, but it is after the page has been
> loaded.
I find thread dumps extremely useful for debugging this sort of
behaviour. (Which, in my experience, is usually either an infinite loop
(oops, easy to fix) or a thread locking error (ouch, painful to fix).)
On Unix, you just need to find out 1) the process ID of your servlet
container and 2) where its stdout is going. Then send it a QUIT signal:
kill -QUIT <process-id>
(The Java runtime writes the thread dump to stdout, which is why you
need to know what your container does with stdout. If you don't know
where its stdout is going, lsof is invaluable: just run "lsof -p
<process-id>" and look for file descriptor 1.)
No clue how it's done on Windows, if you are so afflicted.
Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]