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 9 of 9 Topic 783 of 803
Post > Topic >>

Re: HotSpot crashed on Linux

by David Gourley <dave@[EMAIL PROTECTED] > Jul 25, 2007 at 08:30 PM

Juha Laiho wrote:
> Roedy Green <see_website@[EMAIL PROTECTED]
> said:
> 
>>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.

... with the timer simply queueing work to one of the worker threads. 
I've seen this (successfully) done on projects - means you only need one 
timer object as all its thread does is invoke methods on the worker
threads.

(I really, really hate the built in timer class - it has other features 
(associated with TimerTask cancellation) that can lead the unwary to 
OutOfMemory exceptions if they aren't careful.  The 1.5 and on "fix" 
feels like a nasty hack to me...

Dave




 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:06:58 CDT 2008.