[JAVA-3619] Memory consumption - com.mongo.MongoNamespace.checkDatabaseNameValidity Created: 04/Feb/20 Updated: 28/Oct/23 Resolved: 21/Feb/20 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Internal |
| Affects Version/s: | 3.11.2 |
| Fix Version/s: | 4.1.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Lucas Pouzac | Assignee: | John Stewart (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
Hi, Following the migration of the mongodb driver from version 3.4.2 to version 3.11.2, we noticed an overconsumption of memory during our load tests. This overconsumption was already existing in 3.4.2, but was accentuated in more recent versions following the addition of characters to check in the name of the database. (com.mongo.MongoNamespace.checkDatabaseNameValidity) This overconsumption can be avoided, since the concatenated message is only necessary if the name of the database is not correct, whereas currently the message is concatenated with each call. Several solutions to fix this :
Example for second option :
|
| Comments |
| Comment by Githook User [ 21/Feb/20 ] |
|
Author: {'username': 'jstewart-mongo', 'name': 'John Stewart', 'email': 'john.stewart@mongodb.com'}Message: Improve performance of MongoNamespace.checkDatabaseNameValidity
|
| Comment by Githook User [ 21/Feb/20 ] |
|
Author: {'name': 'John Stewart', 'username': 'jstewart-mongo', 'email': 'john.stewart@mongodb.com'}Message: Improve performance of MongoNamespace.checkDatabaseNameValidity
|
| Comment by Githook User [ 21/Feb/20 ] |
|
Author: {'name': 'John Stewart', 'username': 'jstewart-mongo', 'email': 'john.stewart@mongodb.com'}Message: Improve performance of MongoNamespace.checkDatabaseNameValidity
|
| Comment by Githook User [ 21/Feb/20 ] |
|
Author: {'name': 'John Stewart', 'username': 'jstewart-mongo', 'email': 'john.stewart@mongodb.com'}Message: Improve performance of MongoNamespace.checkDatabaseNameValidity
|