<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <DIV>Hi,<BR>Memcache is really easy and efficient. It is actually a fast cache implementation I have come across in comparison to others. Gr8 work!<BR>I have two queries regarding memcache(Java version) environment setup. :-<BR>1. I am going to put memcache onto production environment. We have a CentOS 4.3 i686 - v3.1.0, with dual processors and 2 GB RAM; We will be running memcache server on one of them, what is the ideal configuration of memcache on such a server? Shud I run memcache on its full server capacity ie. 2 GB or less than that? What shud the SocketIO Pool config have? I mean are there any pre - defined config paras for it which are best suited for such servers? (The servers here wud be handling a lot of load ie. 10K hits on app server which in turn will hit memcache for data. Per hit = 10-12 hits on memcache).</DIV>  <DIV>2. I am having 2 application servers
 on which I am accessing same Memcache Server. <BR>Suppose, If both the servers want to access and modify the same object from memcache, is there any way to restrict one of the servers from accessing or modifying that object until the first server is done with that object. How do I control such a concurrency problem? <BR>Consider this situation:-<BR>A list with numeric values: 1,2,3</DIV>  <DIV>Server1: Gets the list from memcache.<BR>Server2: Also gets the list from memcache.</DIV>  <DIV>Server1: Removes '1' from the list.<BR>Server2: Removes '3' from the list.</DIV>  <DIV>Server1: Puts back a list with 2,3 in list in memcache. <BR>Server2: Puts back a list with 1,2 in list in memcache.<BR>Note:Since, both servers have their instance of list objs. </DIV>  <DIV>This is not what we need to do. Becoz, both servers are putting an incorrect list in memcache.Ideally what shud have happened was that in the end a list with only '1' shud be put back in memcache. This problem occurs
 under load and happens in case of concurrent threads.<BR>What I want is that memcache shud restrict Server2 and a consistent list shud be there in memcache. How do I handle such problem in memcache environment?? I know we can handle at application server end by doing all these operations through a centralized place(gets and puts), but how do I handle it in Memcache????</DIV>  <DIV>Any help wud be appreciated?</DIV>  <DIV>Thanks,<BR>Abbey.</DIV>  <div></div></BLOCKQUOTE><BR><p>&#32;
        

        
                <hr size=1></hr> 
Find out what India is talking about on  - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers India</a> <BR> 
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. <a href="http://us.rd.yahoo.com/mail/in/messengertagline/*http://in.messenger.yahoo.com">Get it NOW</a>