On Sun, Aug 2, 2009 at 11:41, Sergiu
Dumitriu<sergiu(a)xwiki.com> wrote:
Thomas Mortagne wrote:
On Sun, Aug 2, 2009 at 10:34, Sergiu
Dumitriu<sergiu(a)xwiki.com> wrote:
> Thomas Mortagne wrote:
>> Hi devs,
>>
>> When we have farm like
xwiki.org or
myxwiki.org stuck we usually kill
>> the jvm and look at its last state to see if we can find some lock
>> etc...
>>
>> Most of the time if the issue is in a specific script and not a
>> platform bug it's unreadable. To make it more easy I propose to rename
>> thread created by the application server based on the URL.
>>
>> Basically it means something like adding:
>>
>> Thread.currentThread().setName(request.getRequestURL() + "?" +
>> request.getQueryString());
>>
>> in XWikiAction#initializeXWikiContext.
Actually this would be better done in a ServletRequestListener, since it
doesn't change our code, is modular, and can be easily enabled or
disabled through configuration. And this way, all requests will be
handled, not just struts ones.