Bela,
I use a different object every time. To ensure that object creation does not 
factor into the benchmark, I create all the 10000 objects before hand and 
maintain in a array which I then pluck objects from and put into cache.


Ben,
I ran the gc stats and sure enough there are bunch of  full GC going on.:

65.557: [Full GC 191655K->135047K(204416K), 0.9030130 secs]
92.674: [Full GC 228937K->228937K(244088K), 0.9122410 secs]
105.148: [Full GC 283698K->267961K(304896K), 1.0661370 secs]
107.074: [Full GC 286969K->260993K(304896K), 1.6936240 secs]
111.455: [Full GC 286582K->270856K(304896K), 0.9772830 secs]
113.319: [Full GC 289864K->274151K(304896K), 1.0449530 secs]
115.512: [Full GC 293159K->149095K(304896K), 1.2714720 secs]
157.541: [Full GC 284661K->71844K(304896K), 0.7851200 secs]
221.847: [Full GC 283623K->79095K(304896K), 0.4558300 secs]

the rest were all minor gc collections like:
257.283: [GC 214653K->198459K(302776K), 0.0237150 secs]
258.099: [GC 217339K->201325K(302776K), 0.0243710 secs]
etc.....


I was very cognizant of GC issues when I ran the test that is why I started the 
test with:  -Xms200m -Xmx300m. Apparently this wasn't enough.  I bumped up the 
mem params to: -Xms500m  and -Xmx600m  and that got rid of the full GC's.

Doing "top" and seeing process stats, I noticed that the resident memory 
started to creep up into high 400M so that helped. This had the side effect of 
making the incremental  GC collections( v.s. full gc's) take longer, so 
definitly more fine-tunning required.

Now the stats for 10000 objects is at: 
[13:37:43.658] [INFO ] [PrimaryCacheTest    ][testPopulatingCache] - Average 
PUT  time for 10000 objects: 13 millseconds,  Smallest PUT time: 9 
milliseconds,  Largest PUT time: 211 milliseconds,  Total PUT time: 135350 
millisconds.

you see the total hasn't  shrunk  as delay times are now spread more evenly.  
This is much better.  It still won't match the speeds of caching object 
references.   I am going to turn off REPL_SNYC and use LOCAL and see how things 
go there.





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910109#3910109

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910109


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to