-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance issues #25
Comments
Do you have some Python tool that lets you trace which piece of code it's stuck on? |
I can install and configure anything we need to get to the bottom of this, but I have no clue on the python ecosystem. An educated guess, all these transactions are in one stream. Abe can handle the bitcoin blockchain with 90gb even on sqlite. So probably in the additions for streams that are triggered for the homepage. |
You should be able to use the basic pdb Python debugger – see the documentation here: https://docs.python.org/2/library/pdb.html We haven't tried it yet, but you should be able to add an |
@roderik Are you using dummy/test data? If yes, maybe you could share all the chain and explorer data so we can try and replicate. |
Have a similar issue. Debugged a little:
These queries look suboptimal when you have a significant amount of transactions (as any multichain-explorer/Mce/DataStore.py Line 3734 in 4446685
multichain-explorer/Mce/DataStore.py Lines 3894 to 3898 in 4446685
In my case it's actually not that large but already quite problematic:
|
Did anyone have time to look at this issue? It looks critical for networks with significant number of transactions. @gidgreen @bitcartel |
This should be fixable by adding the appropriate indexes at the time of table creation. Do you want to try to add these indexes during initialization in |
Adding indexes didn't help. Implemented a workaround by using more optimal queries: chainstack#4. |
I'm running a quite active network (20tx/block, 10s blocktime, 124k blocks) and the explorer has died completely.
The log is full of the following, but no more pages are being served.
curl -i http://localhost:2750
just stallsThe explorer just goes to 100% CPU on one core and stays there indefinitely.
Any clue on how to revive the explorer?
The text was updated successfully, but these errors were encountered: