[jboss-user] [JBoss Cache] - About POJO Cache

Rishabh Gupta do-not-reply at jboss.com
Tue Apr 20 03:08:24 EDT 2010


Rishabh Gupta [http://community.jboss.org/people/Rishabh_6] created the discussion

"About POJO Cache"

To view the discussion, visit: http://community.jboss.org/message/538421#538421

--------------------------------------------------------------
Hi ,

I want to know about the following:-

when was pojo last released?
when was Jboss cache last released?
can pojo work with latest cache?
If not and if pojo is better than cache why is it not being updated?


Also we are trying to do benchmarking for the Pojo cache performance vs Jboss Cache.

1) We are trying to put a pojo inside the POJO cache but CPU usage is very high for Load test containing a number of threads. Moreover sometimes CPU usage ig greater for a small size pojo,why this happening?

2) Also it seems sometimes Jboss cache is working better than Pojo cache, why this happening ,I mean in terms of CPU usage.

For eg:we have the following CPU usage:-

For 200 threads only, and this increases with number of threads: For example:-

|  %1,2% CPUUSAGE   Cpu(s):0.8%us,1.3%sy,0.0%ni,97.9%id,0.0%wa,0.0%hi,0.0%si,0.0%st |
|  %1,2% CPUUSAGE   Cpu(s):1.0%us,1.6%sy,0.0%ni,97.4%id,0.0%wa,0.0%hi,0.0%si,0.0%st |
|  %1,2% CPUUSAGE   Cpu(s):31.3%us,2.9%sy,0.0%ni,65.3%id,0.0%wa,0.2%hi,0.3%si,0.0%st |
|  %1,2% CPUUSAGE t   Cpu(s):49.0%us,10.7%sy,0.0%ni,18.0%id,18.5%wa,0.3%hi,3.4%si,0.0%st |
|  %1,2% CPUUSAGE t   Cpu(s):4.9%us,3.2%sy,0.0%ni,46.1%id,44.5%wa,0.2%hi,1.1%si,0.0%st |
|  %1,2% CPUUSAGE   Cpu(s):1.8%us,2.0%sy,0.0%ni,96.2%id,0.0%wa,0.0%hi,0.0%si,0.0%st |
|  %1,2% CPUUSAGE   Cpu(s):1.0%us,1.3%sy,0.0%ni,97.6%id,0.2%wa,0.0%hi,0.0%si,0.0%st



With 1000 threads:- |
|  %1,4% CPUUSAGE   Cpu(s):28.9%us,3.3%sy,0.0%ni,67.2%id,0.2%wa,0.0%hi,0.5%si,0.0%st |
|  %1,4% CPUUSAGE   Cpu(s):77.4%us,10.3%sy,0.0%ni,9.4%id,0.2%wa,0.2%hi,2.6%si,0.0%st |
|  %1,4% CPUUSAGE t   Cpu(s):61.6%us,10.3%sy,0.0%ni,19.9%id,3.6%wa,0.0%hi,4.7%si,0.0%st |
|  %1,4% CPUUSAGE t   Cpu(s):54.8%us,25.8%sy,0.0%ni,11.3%id,0.2%wa,0.7%hi,7.3%si,0.0%st |
|  %1,4% CPUUSAGE   Cpu(s):1.8%us,1.6%sy,0.0%ni,93.0%id,3.4%wa,0.0%hi,0.2%si,0.0%st |
|  %1,4% CPUUSAGE   Cpu(s):1.3%us,2.1%sy,0.0%ni,96.4%id,0.2%wa,0.0%hi,0.0%si,0.0%st |
|  %1,4% CPUUSAGE   Cpu(s):1.0%us,1.3%sy,0.0%ni,97.7%id,0.0%wa,0.0%hi,0.0%si,0.0%st |
|  %1,4% CPUUSAGE   Cpu(s):1.3%us,1.5%sy,0.0%ni,96.9%id,0.3%wa,0.0%hi,0.0%si,0.0%st |
|  %1,4% CPUUSAGE   Cpu(s):3.9%us,1.3%sy,0.0%ni,94.5%id,0.2%wa,0.2%hi,0.0%si,0.0%st |
|  %1,4% CPUUSAGE   Cpu(s):2.4%us,2.9%sy,0.0%ni,92.7%id,1.6%wa,0.0%hi,0.3%si,0.0%st |
|  %1,4% CPUUSAGE   Cpu(s):1.0%us,1.3%sy,0.0%ni,97.7%id,0.0%wa,0.0%hi,0.0%si,0.0%st

This happens with only POJO cache if we use simple cache- HashTable then usage remains normal.

*+Can someone Please give the tips for increasing the performance and reducing the CPU usage also wa%+*


I tried :-
*Configuration.setExposeManagementStatistics(false);*
*CacheMode = REPL_ASYNC*
*No logging*
*removed TransactionManager*

*But this all is not increasing performance much, when I use *REPL_ASYNC ,it decreases wa% only.**

**What else can be done to improve CPU performance and its usage.?????** |

Thanks,
Rishabh

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/538421#538421]

Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100420/0fefa2ef/attachment.html 


More information about the jboss-user mailing list