Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to the Developer Q&A for the
MultiChain
blockchain platform.
Please feel free to ask questions about the platform to receive answers from the MultiChain developers or other members of the community.
Related questions
Why did a subscribe API call take a long time?
How long does it take to propagate permissions and why?
Wallet address takes time to update the wallet balance after the transaction
Unable to load existing blockchain data into the explorer
Is lock time implemented? If yes, what is the easiest way to create a transaction to use it in multichain?
4,157
questions
4,370
answers
5,718
comments
Most popular tags
multichain
streams
assets
stream
transactions
json-rpc
blockchain
wallet
permissions
error
address
raw-transactions
asset
mining
node
api
issue
multichain-explorer
nodes
connect
multichaind
multisig
transaction
smart-filters
metadata
private-key
atomic-exchange
multichain-cli
multichain-web-demo
data
connection
performance
blocks
demo
web
json
database
storage
native-currency
bitcoin
private-blockchain
network
fee
smart-contracts
wallets
signrawtransaction
off-chain
exchange
multiple-nodes
getnewaddress
Why does the MultiChain Explorer sometimes takes a very long time to load
+1
vote
Nearly 50% of the time, I am able to access the Explorer. Are there alternatives to explorer or is there a way of optimizing it.
asked
Feb 3, 2017
by
makoya
Are you seeing the request logged on the command line when you open it in your browser? Is your chain doing a large transaction volume?
Are you talking about loading the sqlite database or loading the web pages?
my chain is not doing a large transaction volume. I used the command :
nohup python -m Mce.abe --config chain1.conf &
The database seems to take time loading data to web pages. The set up is on a dedicated server with about 4gb ram, we do not yet have much traffic or transactions. Sometimes it loads fast. So I was wondering how I can optimise the perfomance.
Are you certain it is not an issue of Internet connectivity?
yes I am certain that its not internet connectivity because the server is hosted as a dedicated server, wallet.zimquants.com is the domain where i put the files, so the web server is always up but when I click link to explorer installed on the same machine, it takes time.
Can you profile the code to see where it is spending its time? Based on online documentation, please try running the explorer like this:
python -m Mce.abe -m cProfile --config chain1.conf
Then after a while, quit it, and see what profiling information is output on the command line. You may need to add some other options depending on the version of Python you're using.
multichain@softcard:~/multichain-explorer$ python -m Mce.abe -m cProfile --config alpha.conf
Error: unknown option `-m'
See `python -m Abe.abe --help' for more information.
Sorry - my mistake - you can't have two -m options.
The key is to find out where the Python code is spending its time, and for this it should be run under a profiler. The methods are documented here:
https://docs.python.org/2/library/profile.html
Since the explorer uses compiled modules, I think you will need to modify the source code to integrate the profiling into it.
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
...