Dear,<div>I use VisualVN and I got(with testcase 500000 key and every key has value is byte array with length= 1024)</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><div>Size: 985,858,048 B~940MB</div>
<div>Used: 627,454,760 B~598MB</div><div>Max: 1,073,741,824 B</div><div>and <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 18px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><b> </b></span>940MB above is the same as in Ubuntu System monitor.</div>
<div>if the used size above ~ in memcached. it ok.</div><div><br></div><div>thanks galder very much.</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><br>
<div class="gmail_quote">2011/3/10 Galder Zamarreño <span dir="ltr"><<a href="mailto:galder@redhat.com">galder@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Based on a private response you sent me, you say you got the info from the system monitor:<br>
<div class="im"><br>
"I use ubuntu and I see the memory column from "System Monitor(in Ubuntu) for Infinispan."<br>
<br>
</div>This might be misleading cos that might be the memory allocated by the Java process, but after garbage collection has occurred, not all of that memory might be in use. C apps have no garbage collection, so what you see in the system monitor is what you get. So, you should use jvisualvm or similar to figure out how much of that allocated memory is actually in use after your test.<br>
<div><div></div><div class="h5"><br>
On Mar 10, 2011, at 9:43 AM, Galder Zamarreño wrote:<br>
<br>
> Btw, what parameter are you using to figure out the memory consumption of Infinispan after test has finished? In other words, where do you get that 58MB and 920MB from?<br>
><br>
> On Mar 10, 2011, at 9:41 AM, Galder Zamarreño wrote:<br>
><br>
>> Hi,<br>
>><br>
>> Although the differences are noticeable, I think it's very hard for a Java based app to be able to compete on memory consumption with a C app, because the latter provides memory management capabilities that do not exist in Java.<br>
>><br>
>> Having said that however, we're currently working on some data stress testing with the aim to reduce memory consumption in Infinispan servers.<br>
>><br>
>> One question about your test, I assume that each key is being modified once, correct?<br>
>><br>
>> Cheers,<br>
>><br>
>> On Mar 10, 2011, at 5:28 AM, Nguyễn Hồng Nhựt wrote:<br>
>><br>
>>> Hi Infinispan Devs,<br>
>>> I used memcached all time. I am research Infinispan and make a compare with memcached.<br>
>>> I have just make a memory test between memcached and infinispan to choose which one better(best memory saved).<br>
>>><br>
>>> I run Infinispan from command line: ./startServer.sh -r memcached -p 4567 ( I am fresh download and run it with no custom any config file)<br>
>>> and also memcached from command line: /usr/bin/memcached -m 1024 -u nobody -p 11211 -l 127.0.0.1<br>
>>><br>
>>> with testcase 10000 key and every key has value is byte array with length= 1024<br>
>>> Infinispan : => memory: 58MB<br>
>>> Memcached: => memory: 14MB<br>
>>><br>
>>> with testcase 500000 key and every key has value is byte array with length= 1024<br>
>>> Infinispan : => memory: 920MB<br>
>>> Memcached: => memory: 565MB<br>
>>><br>
>>> In Infinispan, any config param familiar with memory cost? and how i can reduce this cost?<br>
>>><br>
>>> thanks and best regards.<br>
>>><br>
>>> _______________________________________________<br>
>>> infinispan-dev mailing list<br>
>>> <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
>>> <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
>><br>
>> --<br>
>> Galder Zamarreño<br>
>> Sr. Software Engineer<br>
>> Infinispan, JBoss Cache<br>
>><br>
>><br>
>> _______________________________________________<br>
>> infinispan-dev mailing list<br>
>> <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
><br>
> --<br>
> Galder Zamarreño<br>
> Sr. Software Engineer<br>
> Infinispan, JBoss Cache<br>
><br>
><br>
> _______________________________________________<br>
> infinispan-dev mailing list<br>
> <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<br>
--<br>
Galder Zamarreño<br>
Sr. Software Engineer<br>
Infinispan, JBoss Cache<br>
<br>
<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></div></div></blockquote></div><br></div>