Bug 60198 - Configuration location for ApplicationPoolRecycling
Summary: Configuration location for ApplicationPoolRecycling
Status: NEEDINFO
Alias: None
Product: Tools
Classification: Mono
Component: other ()
Version: 5.2 (2017-04)
Hardware: Other Linux
: Low normal
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-10-16 04:27 UTC by CRT
Modified: 2017-11-08 21:51 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 60198 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEEDINFO

Description CRT 2017-10-16 04:27:38 UTC
Using Mono and Fastcgi or Hyperfastcgi to serve an aspx application it appears that after a set number of requests or time an application will be recycled.

This results in user session information loss and what appears to be a recompile of the app, which can effectively stall a production instance with an outage.

Settings for when this happens, can apparently be configured in IIS - 

https://docs.microsoft.com/en-us/iis/configuration/system.applicationHost/applicationPools/add/recycling/periodicrestart/index

However on Ubuntu 16.04 LTS and Mono 5.2 there is no access to Microsoft.Web.Administration.

How can this config be accessed and changed?
Comment 1 Ludovic Henry 2017-11-08 21:10:12 UTC
IIS is not supported or Linux, or at least is not supported with Xamarin, so I am not sure what exactly recycle your application. Which HTTP server do you use to run the Mono with Fastcgi or Hyperfastcgi?
Comment 2 CRT 2017-11-08 21:17:03 UTC
We have used both Fastcgi and Hyperfastcgi in the past and the recycling effect happens on both.

Currently we use Hyperfastcgi.
Comment 3 Ludovic Henry 2017-11-08 21:47:07 UTC
Which HTTP server are you using on ubuntu? IIUC Hyperfastcgi is the way the HTTP server invoke mono, so are you talking about https://github.com/xplicit/HyperFastCgi?
Comment 4 CRT 2017-11-08 21:51:15 UTC
Sorry, I misread.

We use Nginx.

...and yes https://github.com/xplicit/HyperFastCgi

I already created this issue:

https://github.com/xplicit/HyperFastCgi/issues/84

...but have had no response.