The moose likes Performance and the fly likes Garbage Collector - limit maximum work time. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Performance
Reply Bookmark "Garbage Collector - limit maximum work time." Watch "Garbage Collector - limit maximum work time." New topic
Author

Garbage Collector - limit maximum work time.

Jeff Alger
Greenhorn

Joined: Mar 18, 2010
Posts: 3
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

Joined: May 14, 2008
Posts: 4489

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


JBoss In Action
Kees Jan Koster
Ranch Hand

Joined: Mar 31, 2009
Posts: 220
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?


Java-monitor, JVM monitoring made easy (and free)
 
 
subject: Garbage Collector - limit maximum work time.
 
Two Laptop Bag