VPS Restart app pool on site error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
Just recently starting using an Ionos Windows VPS and having issues occasionally where the site will error. Kind of frustrating when the site is down for several hours during non-business hours. Little embarrassing.I haven't been able to track down why it errors initially, but restarting the app pool seems to fix the issue each time. Does anyone have any suggestions to alleviate this problem without having to manually restart?
3 years ago
Are there amy messages in the System > Log?       Or, any in Event Viewer in Windows Server?
3 years ago
The only thing in System > Log is the app restart afterwards. No errors that I see before hand.
Event Viewer shows (which is right around the time of error/site down):
A worker process with process id of '7712' serving application pool 'DSP Site' has requested a recycle because the worker process reached its allowed processing time limit.

Not 100% sure, but I believe this was triggered from some settings I set in Application Pools > Advanced Settings > Rapid-Fail Protection

Current settings there are:
Service Unavailable Response Type: HttpLevel
Enabled: True
Failure Interval (mins.): 1
Maximum Failures: 5
3 years ago
could be that the app pool fails to release a file during the recycle, and the new app pool can't start because of the file lock (most likely a plugin)
https://serverfault.com/questions/268841/website-fails-after-application-pool-recyle

lots to read through here:
https://www.nopcommerce.com/en/boards/topic/49851/serious-iis-application-pool-recycling-bugdesign-flaw/page/3
3 years ago
Interesting. I'll give it a read through. I assumed it was failing before and not recycling.
3 years ago
It could be, do you have any custom long running processes that may hit a timeout limit?  Do you have automatic / timed interval app pool recycling disabled, or is it set to the default of 29 hours?
3 years ago
This is what I was looking for. It's setup at fixed regular intervals every 1740 mins. Which must be default. Now that I'm seeing this I can attempt to set a schedule to recycle at a specific time. I may start with this and see if I still run into issues.
3 years ago
If that coincides with the timestamps of the errors in the windows logs I'd say you're on the right track.  Also check the IIS Performance section here:  https://www.nopcommerce.com/en/common-tips-settings-recommendations-to-optimize-performance-in-nopcommerce
3 years ago
in appsettings.json file

enable the CopyLockedPluginAssembilesToSubdirectoriesOnStartup setting

if  still happening

try

disable the UsePluginsShadowCopy setting
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.