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

Re: HotSpot crashed on Linux

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

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....

Directly related to the memory overhead (huge number of threads) there 
is a significant performance overhead of huge numbers of Timer objects 
as thread creation can be (comparatively) slow compared to most object 
creation...

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:05:48 CDT 2008.