Skip to content

pascalverlinden/perfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

perfo

This repo contains code to reproduce a problem with monax.

Issue

Creating many contracts leads to high CPU load and performance problems with the chain. After stopping the chain the CPU usage drops, but then it is no longer possible to start the chain as this leads to an error "panic: Paniced on a Sanity Check: Expected storeHeight (1867) and stateHeight (1866) to match", which seems to be a problem with Tendermint ( see tendermint/tendermint#388 ). There has been a fix in Tendermint (version 0.9) but this version is not used yet by monax, apparently.

There might be a relation with the following issue: hyperledger-archives/burrow#611

Version info

Monax CLI Version: 0.17.0 & 0.18

Instructions

To run tests:

  1. Create a simplechain (1 full account) and start the chain
  2. Deploy the contracts using deploy.yaml
  3. Copy the keys of the 'full' user of the chain to keys.json.
  4. Enter the PID of the (Monax) process (e.g. VBoxHeadless) of which CPU usage you want to monitor in lib/status.js.
  5. install pidusage: npm install pidusage
  6. run node many_contracts.jsor node grow_array.js CSV data is printed to stdout. Type Ctrl-C to exit.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published