ECJ-INTEREST-L Archives

September 2013

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show HTML Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version:
1.0 (Mac OS X Mail 6.5 \(1508\))
Sender:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Subject:
From:
Ralf Buschermöhle <[log in to unmask]>
Date:
Fri, 6 Sep 2013 14:41:05 +0200
In-Reply-To:
Content-Type:
multipart/signed; boundary="Apple-Mail=_024FE7E7-13C9-405D-AD62-401A52F3DB78"; protocol="application/pgp-signature"; micalg=pgp-sha1
Reply-To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (1150 bytes) , signature.asc (494 bytes)
Hi,

I added "!writer.isInterrupted()" to stop the (write)loop and now the threads are stopped.

In context "SlaveConnection.java"

 writer = new Thread()
            {
            public void run()
                {
                while( !writer.isInterrupted() )
                	writeLoop();
                }
            };

Greetings,

	Ralf

On Sep 6, 2013, at 11:59, Ralf Buschermöhle <[log in to unmask]> wrote:

> Hi,
> 
> unfortunately adding memory does not solve the problem. 
> 
> It does not seem to be heap related ... I jstacked after 56 slaves, after 500 adding and removing (also waited for the disconnect messages) slaves and after the next 500 I received the Exception.
> 
> And the number of threads did not reduce after waiting.
> 
> I attached the thread dumps.
> 
> It's the slaveMonitor ... who does not receive an interrupt?
> 
> public boolean waitOnMonitor(Object monitor)
>        {
>        try
>            {
>            monitor.wait();
>            }
>        catch (InterruptedException e) { return false; }
>        return true;
>        }
> 
> Greetings,
> 
> 	Ralf
> 
> 
> <56.stack><56+-500.stack><Exception.stack>
> 
> 



ATOM RSS1 RSS2