[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster-devel] Socket test, was LOCAL not working?



Hi,
are'nt these two distinct problems ? I tested a little with corba and it appears that the deadlock happens always after having cleaned up some threads (lastDiff is often negative just before). I laid in a list of the threads before and after and the ones having been cleaned up are the corba RequestProcessor-xxx threads.


See the attachments (threads1.dat is before cleaning up and threads2.dat is after).

Michele


Peter Antman wrote:
On Wed, 2003-09-24 at 22:56, Marcel Ruff wrote:

Peter Antman wrote:

By the way, debugging Jacorb is really hard. Including some debug stuff
makes the bug disappear or become more seldom.

I do have some traces which points in the direction that the waiting
thread will be awakened without any reply being received. Which part of
Jacorb that does this, or why no reply ever get received for these cases
I have not been able to find out.

Peter,

could you please try the SOCKET protocol
if there are dead locks as well?


Hi, I just did that. During almost one and an half hour I could see no
signs of any lookups (the corba one does have contention really early,
and locks up eventually). However, finally this happened:

junit.framework.AssertionFailedError: Max number of new threads reached
516 number of threads created since first round: XmlBlaster is leaking
huge numbers of threads. Happened in round 330

As far as I have been able to see, it initially handles the thread count
well. The threads it creates are reclaimed after one or two rounds. But
eventually the number of threads created before they are reclaimed
grows, until it reached the set maximum.

//Peter

thanks

Marcel

--
http://www.xmlBlaster.org


--
Michele Laghi
mailto:laghi at swissinfo.org
tel. +46 8 7492952 / mob. +46 70 4103964
http://eclettic.tripod.com
http://www.xmlBlaster.org
Thread Group: system  Max Priority: 10
    Thread: Reference Handler  Priority: 10 Daemon
    Thread: Finalizer  Priority: 8 Daemon
    Thread: Signal Dispatcher  Priority: 10 Daemon
    Thread: CompileThread0  Priority: 10 Daemon
    Thread Group: main  Max Priority: 10
        Thread: main  Priority: 5
        Thread: Thread-442  Priority: 5 Daemon
        Thread: Thread-443  Priority: 5 Daemon
        Thread: Thread-527  Priority: 5 Daemon
        Thread: Thread-528  Priority: 5 Daemon
        Thread: Thread-667  Priority: 5 Daemon
        Thread: Thread-678  Priority: 5
        Thread: Thread-679  Priority: 5
        Thread: Thread-680  Priority: 5
        Thread: Thread-681  Priority: 5
        Thread: Thread-682  Priority: 5
        Thread: Thread-683  Priority: 5
        Thread: Thread-684  Priority: 5
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641314  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641323  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641326  Priority: 5 Daemon
        Thread: Thread-685  Priority: 5
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641329  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641335  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641314  Priority: 5 Daemon
        Thread: Thread-686  Priority: 5
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641323  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641326  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641329  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641335  Priority: 5 Daemon
        Thread: Thread-687  Priority: 5
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641470  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641476  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641481  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641485  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641470  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641476  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641481  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641485  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641490  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488641490  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: RequestController-121  Priority: 8 Daemon
        Thread: Thread-688  Priority: 5 Daemon
        Thread: RequestProcessor-601  Priority: 8 Daemon
        Thread: RequestProcessor-602  Priority: 8 Daemon
        Thread: RequestProcessor-603  Priority: 8 Daemon
        Thread: RequestProcessor-604  Priority: 8 Daemon
        Thread: RequestProcessor-605  Priority: 8 Daemon
        Thread: RequestController-122  Priority: 8 Daemon
        Thread: Thread-690  Priority: 5 Daemon
        Thread: RequestController-123  Priority: 8 Daemon
        Thread: Thread-692  Priority: 5 Daemon
        Thread: Thread-694  Priority: 5 Daemon
        Thread: RequestController-124  Priority: 8 Daemon
        Thread: Thread-695  Priority: 5 Daemon
        Thread: Thread-697  Priority: 5 Daemon
        Thread: Thread-698  Priority: 5 Daemon
        Thread: Thread-699  Priority: 5 Daemon
        Thread: Thread-700  Priority: 5 Daemon
        Thread: Thread-701  Priority: 5 Daemon
        Thread: RequestController-125  Priority: 8 Daemon
        Thread: Thread-702  Priority: 5 Daemon
        Thread: RequestProcessor-606  Priority: 8 Daemon
        Thread: RequestProcessor-607  Priority: 8 Daemon
        Thread: RequestProcessor-608  Priority: 8 Daemon
        Thread: RequestProcessor-609  Priority: 8 Daemon
        Thread: RequestProcessor-610  Priority: 8 Daemon
        Thread: Thread-704  Priority: 5 Daemon
        Thread: RequestController-126  Priority: 8 Daemon
        Thread: Thread-705  Priority: 5 Daemon
        Thread: RequestController-127  Priority: 8 Daemon
        Thread: Thread-707  Priority: 5 Daemon
        Thread: Thread-709  Priority: 5 Daemon
        Thread: RequestProcessor-611  Priority: 8 Daemon
        Thread: RequestProcessor-612  Priority: 8 Daemon
        Thread: RequestProcessor-613  Priority: 8 Daemon
        Thread: RequestProcessor-614  Priority: 8 Daemon
        Thread: RequestProcessor-615  Priority: 8 Daemon
        Thread: RequestController-128  Priority: 8 Daemon
        Thread: RequestController-129  Priority: 8 Daemon
        Thread: Thread-710  Priority: 5 Daemon
        Thread: Thread-711  Priority: 5 Daemon
        Thread: RequestController-130  Priority: 8 Daemon
        Thread: Thread-714  Priority: 5 Daemon
        Thread: Thread-716  Priority: 5 Daemon
        Thread: RequestProcessor-616  Priority: 8 Daemon
        Thread: RequestProcessor-617  Priority: 8 Daemon
        Thread: RequestProcessor-618  Priority: 8 Daemon
        Thread: RequestProcessor-619  Priority: 8 Daemon
        Thread: RequestProcessor-620  Priority: 8 Daemon
        Thread: Thread-717  Priority: 5 Daemon
        Thread: RequestProcessor-621  Priority: 8 Daemon
        Thread: RequestProcessor-622  Priority: 8 Daemon
        Thread: RequestProcessor-623  Priority: 8 Daemon
        Thread: RequestProcessor-624  Priority: 8 Daemon
        Thread: RequestProcessor-625  Priority: 8 Daemon
        Thread: Thread-718  Priority: 5 Daemon
        Thread: RequestProcessor-626  Priority: 8 Daemon
        Thread: RequestProcessor-627  Priority: 8 Daemon
        Thread: RequestProcessor-628  Priority: 8 Daemon
        Thread: RequestProcessor-629  Priority: 8 Daemon
        Thread: RequestProcessor-630  Priority: 8 Daemon
        Thread: Thread-719  Priority: 5 Daemon
        Thread: RequestProcessor-631  Priority: 8 Daemon
        Thread: RequestProcessor-632  Priority: 8 Daemon
        Thread: RequestProcessor-633  Priority: 8 Daemon
        Thread: RequestProcessor-634  Priority: 8 Daemon
        Thread: RequestProcessor-635  Priority: 8 Daemon
        Thread: Thread-720  Priority: 5 Daemon
        Thread: RequestProcessor-636  Priority: 8 Daemon
        Thread: RequestProcessor-637  Priority: 8 Daemon
        Thread: RequestProcessor-638  Priority: 8 Daemon
        Thread: RequestProcessor-639  Priority: 8 Daemon
        Thread: RequestProcessor-640  Priority: 8 Daemon
        Thread: Thread-721  Priority: 5 Daemon
        Thread: RequestProcessor-641  Priority: 8 Daemon
        Thread: RequestProcessor-642  Priority: 8 Daemon
        Thread: RequestProcessor-643  Priority: 8 Daemon
        Thread: RequestProcessor-644  Priority: 8 Daemon
        Thread: RequestProcessor-645  Priority: 8 Daemon
        Thread: Thread-722  Priority: 5 Daemon
        Thread: RequestProcessor-646  Priority: 8 Daemon
        Thread: RequestProcessor-647  Priority: 8 Daemon
        Thread: RequestProcessor-648  Priority: 8 Daemon
        Thread: RequestProcessor-649  Priority: 8 Daemon
        Thread: RequestProcessor-650  Priority: 8 Daemon
Thread Group: system  Max Priority: 10
    Thread: Reference Handler  Priority: 10 Daemon
    Thread: Finalizer  Priority: 8 Daemon
    Thread: Signal Dispatcher  Priority: 10 Daemon
    Thread: CompileThread0  Priority: 10 Daemon
    Thread Group: main  Max Priority: 10
        Thread: main  Priority: 5
        Thread: Thread-442  Priority: 5 Daemon
        Thread: Thread-443  Priority: 5 Daemon
        Thread: Thread-527  Priority: 5 Daemon
        Thread: Thread-667  Priority: 5 Daemon
        Thread: Thread-723  Priority: 5 Daemon
        Thread: Thread-734  Priority: 5
        Thread: Thread-735  Priority: 5
        Thread: Thread-736  Priority: 5
        Thread: Thread-737  Priority: 5
        Thread: Thread-738  Priority: 5
        Thread: Thread-739  Priority: 5
        Thread: Thread-740  Priority: 5
        Thread: Thread-741  Priority: 5
        Thread: Thread-742  Priority: 5
        Thread: Thread-743  Priority: 5
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653771  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653771  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653773  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653773  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653773  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653773  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653774  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653775  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653775  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653776  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653776  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653779  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653774  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653775  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653775  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653776  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653776  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653779  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653774  Priority: 5 Daemon
        Thread: XmlBlaster.DeliveryWorkerPool.client/test1064488653774  Priority: 5 Daemon
        Thread: XmlBlaster.BurstmodeTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: XmlBlaster.CbPingTimer  Priority: 5 Daemon
        Thread: RequestController-131  Priority: 8 Daemon
        Thread: Thread-744  Priority: 5 Daemon
        Thread: RequestController-132  Priority: 8 Daemon
        Thread: Thread-746  Priority: 5 Daemon
        Thread: Thread-748  Priority: 5 Daemon
        Thread: RequestController-133  Priority: 8 Daemon
        Thread: Thread-749  Priority: 5 Daemon
        Thread: Thread-751  Priority: 5 Daemon
        Thread: RequestController-134  Priority: 8 Daemon
        Thread: Thread-752  Priority: 5 Daemon
        Thread: Thread-754  Priority: 5 Daemon
        Thread: Thread-755  Priority: 5 Daemon
        Thread: Thread-756  Priority: 5 Daemon
        Thread: Thread-757  Priority: 5 Daemon
        Thread: RequestController-135  Priority: 8 Daemon
        Thread: Thread-758  Priority: 5 Daemon
        Thread: RequestController-136  Priority: 8 Daemon
        Thread: Thread-760  Priority: 5 Daemon
        Thread: RequestController-137  Priority: 8 Daemon
        Thread: RequestController-138  Priority: 8 Daemon
        Thread: RequestController-139  Priority: 8 Daemon
        Thread: RequestProcessor-651  Priority: 8 Daemon
        Thread: Thread-762  Priority: 5 Daemon
        Thread: Thread-763  Priority: 5 Daemon
        Thread: Thread-764  Priority: 5 Daemon
        Thread: RequestProcessor-652  Priority: 8 Daemon
        Thread: RequestProcessor-653  Priority: 8 Daemon
        Thread: RequestProcessor-654  Priority: 8 Daemon
        Thread: RequestProcessor-655  Priority: 8 Daemon
        Thread: Thread-768  Priority: 5 Daemon
        Thread: RequestController-140  Priority: 8 Daemon
        Thread: Thread-769  Priority: 5 Daemon
        Thread: RequestProcessor-656  Priority: 8 Daemon
        Thread: RequestProcessor-657  Priority: 8 Daemon
        Thread: RequestProcessor-658  Priority: 8 Daemon
        Thread: RequestProcessor-659  Priority: 8 Daemon
        Thread: RequestProcessor-660  Priority: 8 Daemon