Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Re: HotSpot cra...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 9 Topic 783 of 803
Post > Topic >>

Re: HotSpot crashed on Linux

by Juha Laiho <Juha.Laiho@[EMAIL PROTECTED] > Jul 25, 2007 at 04:47 PM

Roedy Green <see_website@[EMAIL PROTECTED]
> said:
>>Every Timer object you create in your code (implicitly) creates a 
>>thread.  I don't think these threads go away till the timer objects get 
>>garbage collected.  It's much better to have a single timer object with 
>>multiple enqueued TimerTasks than a huge number of Timer objects...

>On the other paw, only one nugget of work can run at a time with a
>single Timer.  

So, would a ThreadPool assigned as worker threads for a Timer be the
"correct solution" for this? This of course leaves the issue of
pool sizing, but I think in most cases it shouldn't be too hard to
find some ballpark figure; 10, 50, ... . Still much less than the
4500 or so that the OP started with.
-- 
Wolf  a.k.a.  Juha Laiho     Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@[EMAIL PROTECTED]
 L+++ E- W+$@[EMAIL PROTECTED]
 N++ !K w !O !M V
         PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)




 9 Posts in Topic:
HotSpot crashed on Linux
nicolas.raoul@[EMAIL PROT  2007-07-17 03:01:31 
Re: HotSpot crashed on Linux
Roedy Green <see_websi  2007-07-17 19:24:03 
Re: HotSpot crashed on Linux
Juha Laiho <Juha.Laiho  2007-07-21 15:52:04 
Re: HotSpot crashed on Linux
nicolas.raoul@[EMAIL PROT  2007-07-23 05:24:02 
Re: HotSpot crashed on Linux
David Gourley <dave@[E  2007-07-23 20:40:31 
Re: HotSpot crashed on Linux
Roedy Green <see_websi  2007-07-24 07:41:39 
Re: HotSpot crashed on Linux
David Gourley <dave@[E  2007-07-24 21:16:38 
Re: HotSpot crashed on Linux
Juha Laiho <Juha.Laiho  2007-07-25 16:47:03 
Re: HotSpot crashed on Linux
David Gourley <dave@[E  2007-07-25 20:30:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 23:05:24 CDT 2008.