[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
OOME in distributed GC  XML
Forum Index -> Terracotta Platform
Author Message
dinars

neo

Joined: 10/01/2007 00:54:25
Messages: 1
Offline

I am experimenting with DSO as database replacement. While trying to populate object graph with data i discovered scalability problem.

version used: 2.4.3
server heap: 1G
client heap: 512M
Most of data is stored in: ConcurrentHashMap<String, Object>
data inserted individualy, no batching, aprox 1.2M of total inserts for 8G.

Implementation of ConcurrentHashMap is making lot of garbage. after data migration preGC object count reached 41 million.

GC was able to load all objectIds in memory and remove reachables.
rescuing collected small amount of new references, because data migration was over. call to ObjectIDSet2.retainAll() crashed VM, because of extreemly wastefull preallocation of ArrayList. Size of toRemove can't exceed size of rescuables, theere is no need to allocate moore, no need to even create ArrayList - long[] is sufficient. In scenario described above ObjectIDSet2.retainAll() try's to allocate new ArrayList(40000000) for holding < 100 entries.

zeeiyer

consul

Joined: 05/24/2006 14:28:28
Messages: 493
Offline

We'll get back to you on the OOME issue.

We also have known issues with our CHM implementation which are being remedied as of now. You should find those improvements in an upcoming nightly release. We'll apprise you of which nightly would have all the required fixes (partial collection for CHM, improved Read performance etc.). 2.4.3 dosen't have these...

Thanks.


Sreeni Iyer, Terracotta.
Not a member yet - Click here to join the Terracotta Community
ssubbiah

jedi

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

A fix for this issue was pushed into trunk in rev 5838. You can test it with tomorrow's nightly build.

Saravanan

Saravanan Subbiah
Terracotta Engineer
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team