-
Notifications
You must be signed in to change notification settings - Fork 19
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
EVerest crash issue observed when using v0.19.1 framework #223
Comments
Can you capture a core dump of the crash and post the backtrace you will get? As a workaround you can downgrade everest-framework to v0.18.1, there are no API changes between those versions that necessitate changes in everest-core. |
This is reproducible 100% of the time, we also checked with docker image using ubuntu 22.04 version and also ran Everest standalone using our config file. We are getting same result. In our setup when we are running EVerest with config file having OCPP enabled with security profile 3 then we are getting this crash, same issue with security profile 2. I will try to capture core dump and update here. |
@hikinggrass This issue is not related to OCPP or any other module. This is related to system resources are getting exhausated when we are using new everest framework. With everest framework v0.18.1, number of threads creation are less as compared to v0.19.1 Below is the analysis, Process number of threads Last Log ############################################################################# Process number of threads
With same code base and config file We are getting extra number of threads created with v0.19.1 With v0.18.1 With v0.19.1 Due to this increase in thread in v0.19.1 everest framework, everest is crashing. We tried increasing the thread max param, stack size and pid max but none of the stuff resolving the issue. @hikinggrass why the number of thread increased with v0.19.1 with same code base and config file? we need v0.19.1 as everest start is quite fast with this version. @Pietfried Please let me know if you need more data on this |
Ah interesting, thanks for the detailed reply this is really helpful! |
@hikinggrass This is confirmed that this EVerest crash issue is due to the large number of threads spawns at start of EVerest. To resolve this crash issue we have to fine tune system thread max value by updating "/etc/sysctl.conf" with value This value change require system restart. With the shared pull request and v0.19.1, Everest works without any crash. |
@dev-enphase can you re-test this on your system with default max threads and the latest commit (7c539ac ) from #224 ? There was a bug where MessageHandlers for topics were being kept around even though there were no actual handlers registered anymore, resulting in a substantial amount of idle threads. For comparison here's the sil-ocpp config without the fix:
And here after the fix:
Some of the modules still have a suspiciously high threadcount even after the fix that still has to be investigated |
We are currently using the latest commit of Everest Core (EVerest/everest-core@6e669fd) in our repository, and we are experiencing a crash. After debugging the issue, we found that the crash occurs when using Everest-Framework v0.19.1 with the latest Everest Core commit (EVerest/everest-core@6e669fd). However, when we use Everest-Framework v0.18.1, everything works as expected, and no crash is observed.
I suspect that there might have been a change in the framework that is causing the crash immediately after Everest starts. One observation we made is that the crash happens only when the OCPP module is loaded. If the OCPP module is not loaded, the system runs fine without any issues.
We are using security level 3 for OCPP server connection. This whole OCPP server connection is working fine with October EVerest core release.
We are compiling and creating the Everest binaries on Ubuntu 22.04.03 with the stable release up to 2024.10.0. The crash issue appears to have been introduced with the following commit:
Commit ID: 50d8bacaab06dea0b5a58f5efd212ff1d25de239
Commit Message: "Bump Everest-Framework to 0.19.1 (#987)"
There are several changes between Everest-Framework v0.18.1 and v0.19.1 that we have been unable to debug to identify the root cause. Could someone from your team assist with investigating this crash issue?
Please let me know if you need any further information from my side.
The text was updated successfully, but these errors were encountered: