-
Notifications
You must be signed in to change notification settings - Fork 136
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
Segmentation faults when stress testing #163
Comments
Could you produce backtrace, by running OM through |
I was able to produce four distinct errors that crashed OM while stress testing. I think only the third is related to this issue specifically, but I wanted to include the others in case they're useful. First:
Second:
Third:
Fourth:
|
Thanks will look. In case you get the error again in Also, do you use OM pyton script from stress testing? https://github.com/moneroexamples/openmonero/tree/master/scripts I could try to reproduce it. Just a stupid question, if you run 5000 search tasks, are you sure you are not running out of ram or mysql connections, as I see some errors |
Thank you for the suggestion! I hadn't used
I wrote a script in TypeScript for testing. I'd be happy to share it as a gist if that would help out.
I initially ran out of mysql connections and had to up the max limit. I'm not so sure about the RAM usage though. I don't think the server was capped, but I can't yet confirm. |
The If you can share the |
My availability this week is rather poor, but I'll post the gist and backtraces as soon as possible! |
Here's the https://gist.github.com/skubakdj/668bbc9f186213f17026163567566071 I was only able to recreate and obtain backtraces for the second and fourth errors described above. Second:
Fourth:
|
I can experience the issues when there is large number of threads. All of them seem to be related to mysql connections, either dropping, disconnecting or running out of tcp/ip sockets. I'm looking into it. But so far I haven't been able to pin point the cause. It seems as there is a combinations of issues related to mysql. Everytime I run strees test, I get different results. Sometimes it works, other times there are mysql connection errors, tcp/ip soccets problems, etc. I keep looking into it. But if you have any more insights, please let me now. Any bit of info can help. |
Thanks for taking a look! I'll add more info if I come across any. |
I've been stress testing OpenMonero to try and understand the max limits of (1) concurrent imports and (2) search threads. When testing either scenario, I've sporadically run into OM crashing. Here's a snippet grabbed while running 50 imports:
No other errors seem to be produced and none of the system resources seem to be maxed out. Interestingly, I'm not always able to replicate under the same conditions -- spinning up 5000 search threads for (2) will sometimes run successfully for hours, while other times OM will crash after 20 minutes.
I'm running from commit
1e6c13f
on thedevel
branch, synced to mainnet. Please let me know what I can do to help debug!The text was updated successfully, but these errors were encountered: