MongoDB Too many open file while reSync member

Did Ender ever learn that he killed Stilson and/or Bonzo?

How do I hide Chekhov's Gun?

How to explain that I do not want to visit a country due to personal safety concern?

Is it good practice to use Linear Least-Squares with SMA?

What is a ^ b and (a & b) << 1?

Simplify an interface for flexibly applying rules to periods of time

How do you talk to someone whose loved one is dying?

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

When to use a slotted vs. solid turner?

Most cost effective thermostat setting: consistent temperature vs. lowest temperature possible

PTIJ: Who should I vote for? (21st Knesset Edition)

Official degrees of earth’s rotation per day

Why do passenger jet manufacturers design their planes with stall prevention systems?

While on vacation my taxi took a longer route, possibly to scam me out of money. How can I deal with this?

Is honey really a supersaturated solution? Does heating to un-crystalize redissolve it or melt it?

How are passwords stolen from companies if they only store hashes?

Do the common programs (for example: "ls", "cat") in Linux and BSD come from the same source code?

As a new Ubuntu desktop 18.04 LTS user, do I need to use ufw for a firewall or is iptables sufficient?

Print a physical multiplication table

How to make healing in an exploration game interesting

Are all passive ability checks floors for active ability checks?

The German vowel “a” changes to the English “i”

Aluminum electrolytic or ceramic capacitors for linear regulator input and output?

Recruiter wants very extensive technical details about all of my previous work



MongoDB Too many open file while reSync member














0















I get the problem in many past days. I have MongoDB cluster with 3 shards and 3 replicas.



    1   2   3
A O S S
B S P S
C P O P

P - Primary state
S - Secoundary state
O - Other state


Alphabets are replica machine and numberic are shards.



I try to resync all data around 2TB in mongod machine with other state (A1 and C2). But I got error while resync data in primary that mongod service going down because Too many open file



2019-03-16T16:35:22.351+0000 E -        [conn28204] cannot open /dev/urandom Too many open files in system
2019-03-16T16:35:22.362+0000 I NETWORK [listener] Error accepting new connection on 0.0.0.0:27017: Too many open files in system
2019-03-16T16:35:22.362+0000 I NETWORK [listener] Error accepting new connection on 0.0.0.0:27017: Too many open files in system
2019-03-16T16:35:22.362+0000 I NETWORK [listener] Error accepting new connection on 0.0.0.0:27017: Too many open files in system


I already try to fixed ulimit as mongodb recommendation.



> ulimit -a

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 241518
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 64000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 241518
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited


and set in /etc/security/limits.conf like this



*            soft    nofile      64000
* hard nofile 64000
root soft nofile 64000
root hard nofile 64000


but all of this is not fix my problem. I still get mongod service down because Too many open file. I stuck for 3 days. Anyone have any ideas or solutions?









share







New contributor




Bongsakorn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I get the problem in many past days. I have MongoDB cluster with 3 shards and 3 replicas.



        1   2   3
    A O S S
    B S P S
    C P O P

    P - Primary state
    S - Secoundary state
    O - Other state


    Alphabets are replica machine and numberic are shards.



    I try to resync all data around 2TB in mongod machine with other state (A1 and C2). But I got error while resync data in primary that mongod service going down because Too many open file



    2019-03-16T16:35:22.351+0000 E -        [conn28204] cannot open /dev/urandom Too many open files in system
    2019-03-16T16:35:22.362+0000 I NETWORK [listener] Error accepting new connection on 0.0.0.0:27017: Too many open files in system
    2019-03-16T16:35:22.362+0000 I NETWORK [listener] Error accepting new connection on 0.0.0.0:27017: Too many open files in system
    2019-03-16T16:35:22.362+0000 I NETWORK [listener] Error accepting new connection on 0.0.0.0:27017: Too many open files in system


    I already try to fixed ulimit as mongodb recommendation.



    > ulimit -a

    core file size (blocks, -c) 0
    data seg size (kbytes, -d) unlimited
    scheduling priority (-e) 0
    file size (blocks, -f) unlimited
    pending signals (-i) 241518
    max locked memory (kbytes, -l) 64
    max memory size (kbytes, -m) unlimited
    open files (-n) 64000
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 241518
    virtual memory (kbytes, -v) unlimited
    file locks (-x) unlimited


    and set in /etc/security/limits.conf like this



    *            soft    nofile      64000
    * hard nofile 64000
    root soft nofile 64000
    root hard nofile 64000


    but all of this is not fix my problem. I still get mongod service down because Too many open file. I stuck for 3 days. Anyone have any ideas or solutions?









    share







    New contributor




    Bongsakorn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I get the problem in many past days. I have MongoDB cluster with 3 shards and 3 replicas.



          1   2   3
      A O S S
      B S P S
      C P O P

      P - Primary state
      S - Secoundary state
      O - Other state


      Alphabets are replica machine and numberic are shards.



      I try to resync all data around 2TB in mongod machine with other state (A1 and C2). But I got error while resync data in primary that mongod service going down because Too many open file



      2019-03-16T16:35:22.351+0000 E -        [conn28204] cannot open /dev/urandom Too many open files in system
      2019-03-16T16:35:22.362+0000 I NETWORK [listener] Error accepting new connection on 0.0.0.0:27017: Too many open files in system
      2019-03-16T16:35:22.362+0000 I NETWORK [listener] Error accepting new connection on 0.0.0.0:27017: Too many open files in system
      2019-03-16T16:35:22.362+0000 I NETWORK [listener] Error accepting new connection on 0.0.0.0:27017: Too many open files in system


      I already try to fixed ulimit as mongodb recommendation.



      > ulimit -a

      core file size (blocks, -c) 0
      data seg size (kbytes, -d) unlimited
      scheduling priority (-e) 0
      file size (blocks, -f) unlimited
      pending signals (-i) 241518
      max locked memory (kbytes, -l) 64
      max memory size (kbytes, -m) unlimited
      open files (-n) 64000
      pipe size (512 bytes, -p) 8
      POSIX message queues (bytes, -q) 819200
      real-time priority (-r) 0
      stack size (kbytes, -s) 8192
      cpu time (seconds, -t) unlimited
      max user processes (-u) 241518
      virtual memory (kbytes, -v) unlimited
      file locks (-x) unlimited


      and set in /etc/security/limits.conf like this



      *            soft    nofile      64000
      * hard nofile 64000
      root soft nofile 64000
      root hard nofile 64000


      but all of this is not fix my problem. I still get mongod service down because Too many open file. I stuck for 3 days. Anyone have any ideas or solutions?









      share







      New contributor




      Bongsakorn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I get the problem in many past days. I have MongoDB cluster with 3 shards and 3 replicas.



          1   2   3
      A O S S
      B S P S
      C P O P

      P - Primary state
      S - Secoundary state
      O - Other state


      Alphabets are replica machine and numberic are shards.



      I try to resync all data around 2TB in mongod machine with other state (A1 and C2). But I got error while resync data in primary that mongod service going down because Too many open file



      2019-03-16T16:35:22.351+0000 E -        [conn28204] cannot open /dev/urandom Too many open files in system
      2019-03-16T16:35:22.362+0000 I NETWORK [listener] Error accepting new connection on 0.0.0.0:27017: Too many open files in system
      2019-03-16T16:35:22.362+0000 I NETWORK [listener] Error accepting new connection on 0.0.0.0:27017: Too many open files in system
      2019-03-16T16:35:22.362+0000 I NETWORK [listener] Error accepting new connection on 0.0.0.0:27017: Too many open files in system


      I already try to fixed ulimit as mongodb recommendation.



      > ulimit -a

      core file size (blocks, -c) 0
      data seg size (kbytes, -d) unlimited
      scheduling priority (-e) 0
      file size (blocks, -f) unlimited
      pending signals (-i) 241518
      max locked memory (kbytes, -l) 64
      max memory size (kbytes, -m) unlimited
      open files (-n) 64000
      pipe size (512 bytes, -p) 8
      POSIX message queues (bytes, -q) 819200
      real-time priority (-r) 0
      stack size (kbytes, -s) 8192
      cpu time (seconds, -t) unlimited
      max user processes (-u) 241518
      virtual memory (kbytes, -v) unlimited
      file locks (-x) unlimited


      and set in /etc/security/limits.conf like this



      *            soft    nofile      64000
      * hard nofile 64000
      root soft nofile 64000
      root hard nofile 64000


      but all of this is not fix my problem. I still get mongod service down because Too many open file. I stuck for 3 days. Anyone have any ideas or solutions?







      mongodb





      share







      New contributor




      Bongsakorn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Bongsakorn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Bongsakorn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 4 mins ago









      BongsakornBongsakorn

      1




      1




      New contributor




      Bongsakorn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Bongsakorn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Bongsakorn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "182"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Bongsakorn is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f232349%2fmongodb-too-many-open-file-while-resync-member%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Bongsakorn is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Bongsakorn is a new contributor. Be nice, and check out our Code of Conduct.













          Bongsakorn is a new contributor. Be nice, and check out our Code of Conduct.












          Bongsakorn is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Database Administrators Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f232349%2fmongodb-too-many-open-file-while-resync-member%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Anexo:Material bélico de la Fuerza Aérea de Chile Índice Aeronaves Defensa...

          Always On Availability groups resolving state after failover - Remote harden of transaction...

          update json value to null Announcing the arrival of Valued Associate #679: Cesar Manara ...