• Post Reply Bookmark Topic Watch Topic
  • New Topic

Garbage Collector - limit maximum work time.

 
Jeff Alger
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm developing enterprise application on java.
It provides some service.

And time of responce of my apliction is critical.
May I tune garbage collector to make sure that latency of my application is less than 10-5ms.

Basicly, prevent garbage collector to stopping all threads more than 10-5 ms.

Thank you in advice.
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using a collector such as CMS. Here is a good place to start:
http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html
 
Kees Jan Koster
JavaMonitor Support
Rancher
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have my doubts that for an enterprise system 5-10ms per request is even possible. Most of such systems do loads of XML processing that will easily incur processing times that long. That leaves precious little time for the GC to run in if you need to guarantee a max of 10ms for the lot.

Have you measured the response times of your own code already?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!