[kaffe] Thread handling in Kaffe
calvin kaiwen
cal_kaiwen at hotmail.com
Mon Feb 17 17:40:01 PST 2003
Hi :)
Glad you reply, here is a fraction of those code :)
It is possible to increase the file descriptor of linux machine (yet to test
out), but IF thread pool is reuse, 1024 file descriptors if more than enough
:)
============================================================
try {
System.out.println("Pool size before execute thread: " +
pool.getPoolSize());
pool.execute(new_object);}
catch(IOException exc) {
System.out.println("IOException while creating new thread: " +
exc.toString());}
public void run() {
try {
boolean result = identifyObject();
if(result != true) {
System.out.println("Error identifying client");}}
catch (IOException exc) {
System.out.println("IOException during thread execution: " + exc);}
// ** Exception caught here
}
// ** Exception caught here
07-12-2002 04:46:00.249 [ERROR] [Thread-1245]
IOException during thread execution:
java.io.IOException: Too many open files
public boolean identifyObject() throws IOException{
// code to identify Object here
return true;}
===========================================================
Thank you,
Calvin
----- Original Message -----
From: "Dalibor Topic" <robilad at yahoo.com>
To: "calvin kaiwen" <cal_kaiwen at hotmail.com>; <kaffe at kaffe.org>
Sent: Monday, February 17, 2003 6:12 PM
Subject: Re: [kaffe] Thread handling in Kaffe
> Hi Calvin,
>
> --- calvin kaiwen <cal_kaiwen at hotmail.com> wrote:
> > Hi :)
> >
> > I noticed that the thread is not reuse in kaffe.
> > Thread will keep on increasing until <> 1050, then I
> > have this error:-
> > 07-12-2002 04:46:00.249 [ERROR] [Thread-1245]
> > IOException during thread execution:
> > java.io.IOException: Too many open files
>
> Could you post a small test case ?
>
> cheers,
> dalibor topic
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com
>
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
>
More information about the kaffe
mailing list