[SERVER-19717] Why the binary file I compiled is so large Created: 03/Aug/15  Updated: 04/Aug/15  Resolved: 04/Aug/15

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.0.5
Fix Version/s: None

Type: Question Priority: Minor - P4
Reporter: rujun Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

I compiled with "scons -j 8 mongo mongos mongod", then got the file is so large(mongodb 3.0.5):
-rwxr-xr-x 1 root root 156409888 Aug 1 18:55 mongo
-rwxr-xr-x 1 root root 413742161 Aug 1 19:04 mongod
-rwxr-xr-x 1 root root 182125590 Aug 1 19:03 mongos

but I download from mongodb.org is(mongodb 3.0.5):
rw-rr- 1 root root 11241856 Jul 28 01:43 mongo
rw-rr- 1 root root 21507296 Jul 28 01:43 mongod
rw-rr- 1 root root 10200704 Jul 28 01:43 mongos

Which option should I choose?
thanks



 Comments   
Comment by Ramon Fernandez Marina [ 04/Aug/15 ]

rujun, the file you compiled has debugging information, but the one you download doesn't. You can use strip(1) to remove debugging information from binariles.

Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group.

Regards,
Ramón.

Generated at Thu Feb 08 03:51:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.