I'm using php Mongo Extention, and I'm trying to test it a bit.
I've setup a simple test script, that does a find and update on some
data I preloaded.
Everything goes well, till I hit about 25K of requests (concurrency of
10).
Then php starts throwing:
MongoConnectionException: : Cannot assign requested address in
<filepath> <linenumer>
Everything becomes extra slow, and does not recover until requests do
not stop. Any idea what's going on ?
Thanks
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
Are there any configs in mongoDB/PHP Mongo Extention that I should
check before doing any sort of stress test ?
I'm holding only ~15 small documents in MongoDB so the database is
small.
Do you know of a way that would allow me to watch my free ports while
running stress test? I'm on linux...
Thanks.
> > mongodb-user...@googlegroups.com<mongodb-user%2Bunsubscribe@google groups.com>
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
I've found the reason for my troubles. It looks like I was running
under high traffic, and my connections were not set to persist.
I switched to persistent connections
---------------
$connection = new Mongo('mongodb://localhost', array('persist' =>
'php'));
---------------
and that solved I my issues.
Thanks.