I am running memcache on an Amazon EC2 "large" instance (7.5GB RAM, 64 bit, high i/o, etc). Is there a way to compute the optimum amount of storage space and number of connections? I ask because I am right now using a pulled-out-of-thin-air startup of:
/usr/bin/memcached -d -r -u nobody -m 7000 -c 4096 When we get enough (I'm not sure what enough is exactly - either max connections or close to it), memcache stops responding entirely. You try to telnet to port 11211 and it just hangs. I have to reboot the box when this happens. Obviously sub-optimal. Is this expected behavior? I would have hoped to just get a quick "connection refused", instead it gums up the connecting apache processes for a long time, which is not good. Even better, I would like to find some way to avoid running out of connections. If I can only get 3000 connections with this configuration then so be it, I'll just add more nodes. Would really like to know for sure one way or the other though. Thanks -jsd-
