[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
How to reduce time spent in running DGC of terracotta?  XML
Forum Index -> Terracotta 中文社区
Author Message
dg_zyd

journeyman

Joined: 08/04/2011 21:10:31
Messages: 15
Offline

when terracotta is running DGC,it is spent long time(over 5 second) in pause stage.Because application is real-time system,consumer is badly influenced.
How to reduce time spent in running DGC of terracotta.

please help ,thanks!
dg_zyd

journeyman

Joined: 08/04/2011 21:10:31
Messages: 15
Offline

because Paused stage of DGC is spent over 5 second, application is paused over 5 second..
[Thumb - 1.JPG]
 Filename 1.JPG [Disk] Download
 Description
 Filesize 258 Kbytes
 Downloaded:  291 time(s)

gyan10

ophanim

Joined: 06/28/2011 23:15:25
Messages: 701
Offline


DGC pause time may be this much because DGC and JAVA GC starts simultaneously.
DGC first concurrently mark the objects and then pause the cluster so that app can not change objects reference. It seems that when DGC pause the cluster , in the mean time JAVA GC also pause the JVM .It makes the pause time so long.I can see in the screenshot, that normally DGC is taking very less time (few milliseconds).
However you can decrease the DGC run time interval from Tc-config.xml.By default DGC run time is 3600 seconds.

Gyan Awasthi
Terracotta -A Software AG company
ssubbiah

jedi

Joined: 05/24/2006 14:25:22
Messages: 117
Location: Saravanan Subbiah
Offline

Another thing to note is that we are greatly improving DGC times for distributed ehcache in the next release with the new inline DGC feature. With this feature, you dont have to run DGC often and garbage is collected as and when an object is garbage. So the system doesnt have to pause at all during normal operations.

Saravanan Subbiah
Terracotta Engineer
dg_zyd

journeyman

Joined: 08/04/2011 21:10:31
Messages: 15
Offline

thanks gyan10 and ssubbiah for answers!
dg_zyd

journeyman

Joined: 08/04/2011 21:10:31
Messages: 15
Offline

to ssubbiah:

which release of terracotta will privde with the new inline DGC feature?

3.5 release?

thanks!
ssubbiah

jedi

Joined: 05/24/2006 14:25:22
Messages: 117
Location: Saravanan Subbiah
Offline

It will be in 3.6 that is scheduled to release end September, beta 2 will be out anytime next week. Give it a try and let us know how it works for you.

Saravanan Subbiah
Terracotta Engineer
dg_zyd

journeyman

Joined: 08/04/2011 21:10:31
Messages: 15
Offline

we have increased in memory of Terractott 's server(4g to 8g).now,the time spent in running DGC of Terracotta is less than 1 second.

we will continue to observe.

thanks ssubbiah
 
Forum Index -> Terracotta 中文社区
Go to:   
Powered by JForum 2.1.7 © JForum Team