Code Monkey home page Code Monkey logo

Comments (9)

aborkar-ibm avatar aborkar-ibm commented on August 11, 2024

Hi Allen,

Yes, mongo build does take a long time (2 -3 hrs). The issue that you see might be related to memory.
I have seen similar issue when running on a 2GB/4GB RAM VM. I could build when I moved on to a higher memory VM.
Can you let me know your VM configuration (RAM, Disk space) on which you are building the same.

Regards,
Amod

from docs.

AllenGNg avatar AllenGNg commented on August 11, 2024

Hello Amod,

Thanks for the quick answer! I am running the Docker Container on a LinuxONE Community Cloud Instance. The one I have set there has 2 CPUs, and 2GB of RAM. As for Disk Space I am not to sure, but when I do df -h the largest number I see is 45GB. I can relaunch an Instance this time that can have 4 GB of RAM and try again and see if that works. I do not think I can go above 4GB though since 2 and 4 are the only option.

Thanks,
Allen

from docs.

aborkar-ibm avatar aborkar-ibm commented on August 11, 2024

Hi Allen,

4GB RAM might just work. Regarding 45GB, make sure you build in the folder which has than much space.
Do let me know the results.

Regards,
Amod

from docs.

MaStr avatar MaStr commented on August 11, 2024

Hey,
If you still run out-of-memory, you can use some GB of your disk space as additional swap space and change the over-commitment ratio of the system. That will make the build slower, but probably make it then.

best regards Matthias

from docs.

AllenGNg avatar AllenGNg commented on August 11, 2024

Hello All,

I retried building MongoDB on my LinuxONE Community Cloud Instance, but this time with 4GB RAM and it failed again with the same error. Not to sure what to do now.
@MaStr I do not think I can do that. Whenever I launch an Instance, it only allows me to change the amount of RAM I have. I have emailed LinuxONE to see if I could get a new instance with more than 4GB of RAM. Hopefully they say yes. :)

(Sorry for the late reply, it took a whole day for my LinuxONE Instance to delete, so I could create a new one with 4 GB of RAM, due to an LinuxONE Cloud Component malfunctioning, had to manually email LinuxONE for them to delete it. Another reason was that the download speeds were very slow. Apt-get Update was taking an hour to complete when it usually took a few seconds. This has been happening for the past few days and is still happening sadly. Here is an example, it took 31 minutes to download 17.6MBs. I was averaging 9570 B/s)

Thanks,
Allen

from docs.

aborkar-ibm avatar aborkar-ibm commented on August 11, 2024

Hi Allen,

There is one more option you could try.
Command "scons --opt --use-system-v8 --allocator=system all" builds all components. You could try building them individually.
Try building mongo, mongod and mongos individually using the following commands:
scons --opt --use-system-v8 --allocator=system mongo
scons --opt --use-system-v8 --allocator=system mongod
scons --opt --use-system-v8 --allocator=system mongos

Let me know if this works.

Regards,
Amod

from docs.

AllenGNg avatar AllenGNg commented on August 11, 2024

Hello Amod,

This seemed to have worked! It finished all three without any errors and I have all three as executables.

mongo

Does this mean I am now done with building MongoDB and can move onto building the MongoDB tools? Do I need the MongoDB tools?

Thank you very much for the help so far,
Allen

from docs.

cwsolee avatar cwsolee commented on August 11, 2024

Totally depends on what you're planning to do, but https://docs.mongodb.com/manual/tutorial/install-mongodb-on-linux/#run-mongodb is a good starting point.

from docs.

AllenGNg avatar AllenGNg commented on August 11, 2024

Hello All,

Thank you very much for help. I am pretty sure I have gotten MongoDB to run. If I run into more problems, which hopefully won't happen, I'll be sure to post them.

Thank you again for the help, I greatly appreciate it,
Allen

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.