Giter VIP home page Giter VIP logo

Comments (2)

 avatar commented on September 17, 2024

Fixed this it seems.
Edited src/daemon/rpc.h and changed:

  void run()
  {
    LOG_PRINT_L0("Starting core rpc server...");
    if (!m_server.run(2, false))
    {
      throw std::runtime_error("Failed to start core rpc server.");
    }
    LOG_PRINT_L0("Core rpc server started ok");
  }

to

  void run()
  {
    LOG_PRINT_L0("Starting core rpc server...");
    if (!m_server.run(10, false))
    {
      throw std::runtime_error("Failed to start core rpc server.");
    }
    LOG_PRINT_L0("Core rpc server started ok");
  }

This should be safe/stable?

EDIT: nopes, happens much less frequently with if (!m_server.run(10, false)) + 10 pool threads, but still happens.
Instead of every ~15mins with if (!m_server.run(2, false)) + 32 pool threads, Im down to once per hour.

2018-01-18 20:14:52 (Thread 2) Error polling getblockcount {"code":"ECONNRESET","errno":"ECONNRESET","syscall":"read"}
2018-01-18 20:14:53 (Thread 1) Error polling getblockcount {"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"127.0.0.1","port":19734}
.
.
2018-01-18 21:12:52 (Thread 2) Error polling getblockcount {"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"127.0.0.1","port":19734}
2018-01-18 21:12:52 (Thread 4) Error polling getblockcount {"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"127.0.0.1","port":19734}
2018-01-18 21:12:52 (Thread 4) Error polling getblockcount {"code":"ECONNRESET","errno":"ECONNRESET","syscall":"read"}
.
.
2018-01-18 22:07:39 (Thread 4) Error polling getblockcount {"code":"ECONNRESET","errno":"ECONNRESET","syscall":"read"}
2018-01-18 22:07:37 (Thread 5) Error polling getblockcount {"code":"ECONNRESET","errno":"ECONNRESET","syscall":"read"}
2018-01-18 22:07:38 (Thread 5) Error polling getblockcount {"code":"ECONNRESET","errno":"ECONNRESET","syscall":"read"}
2018-01-18 22:07:36 (Thread 7) Error polling getblockcount {"code":"ECONNRESET","errno":"ECONNRESET","syscall":"read"}
2018-01-18 22:07:39 (Thread 10) Error polling getblockcount {"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"127.0.0.1","port":19734}

Anyone with any insight? Sure seems to be something with sumokoind since changing rpc.h and threads has a big effect.

from sumokoin.

 avatar commented on September 17, 2024

Doesn't seem like more threads are needed. Just limit pool threads to max 4 regardless of the number of cpu cores. Had no performance issues what so ever even when testing with 10MH/s from nicehash.

from sumokoin.

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.