Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • crown-core crown-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 75
    • Issues 75
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Crown
  • crown-corecrown-core
  • Issues
  • #220

Closed
Open
Created Aug 09, 2018 by Artem B@artemOwner

Analyze memory usage, look for memory leaks

Summary

Many people experience weird behaviour of Crown wallet and MN/SN nodes like stuck on a specific block, hanging, crashes, some of them produce this error:

 ************************
 EXCEPTION: St9bad_alloc
 std::bad_alloc
 crown in ProcessMessages()

Steps to reproduce

No actual steps to reproduce

Expected behavior

Wallets and nodes run without problems, though if it's proved that 1 GB of RAM is not enough we might need to raise hardware requirements.

Problematic behavior

Crashes, hanging, stuck on a specific block

Crown-core environment info

Ubuntu 16.04, Windows 10x64

Crown-core application info

v0.12.5.0, v0.12.5.1

Relevant logs and/or screenshots

Usually the last messages when a node is stuck are about reserving memory for the keypool:

2018-08-09 13:13:57 keypool reserve 2
2018-08-09 13:13:57 keypool return 2

Possible fixes

  • Analyze current memory usage
  • Look for possible memory leaks

Monitoring Solutions

  • https://www.digitalocean.com/community/tutorials/how-to-install-and-use-graphite-on-an-ubuntu-14-04-server
  • sudo apt-get install htop
  • https://cacti.net/
  • Maybe Fabian can add 1 or 2?
Edited Aug 29, 2018 by Chris Kibble
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking