[SERVER-331] Unexpected MongoConnectionException Created: 01/Oct/09 Updated: 17/Oct/09 Resolved: 02/Oct/09 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 1.0.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ivan Petrov | Assignee: | Kristina Chodorow (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
centos 5.3, php 5.3 |
||
| Attachments: |
|
| Participants: |
| Description |
|
on 451 connect mongo say Exception 20:53: Fatal error: Uncaught exception 'MongoConnectionException' with message '127.0.0.1:3412' in /var/www/vhosts/pirates/script/MyMongo.php:16 thrown in /var/www/vhosts/pirates/script/MyMongo.php on line |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 02/Oct/09 ] |
| Comment by Kristina Chodorow (Inactive) [ 02/Oct/09 ] |
|
Which makes this... Eliot's problem! Moving to Core Server. |
| Comment by Ivan Petrov [ 02/Oct/09 ] |
|
I think best way is make MongoDB used epoll for linux and kqueue for bsd |
| Comment by Ivan Petrov [ 02/Oct/09 ] |
|
no |
| Comment by Kristina Chodorow (Inactive) [ 02/Oct/09 ] |
|
Can you use persistent connections? If you change line 17 of MyMongo.php to: $this->connection = new Mongo(self::MONGO_CONNECTIONS, true, true); it reuses connections, instead of opening new ones. |
| Comment by Ivan Petrov [ 02/Oct/09 ] |
|
It is a problem of mongod service, It cant work without errors with more then 200-2000 connect()-s per second. Im tested server with sockTest.php |
| Comment by Ivan Petrov [ 01/Oct/09 ] |
|
Found that is not a problem of php driver, looks like a problem with OS call connect(). |