Afrihost ASP .NET shared hosting with process restarts every 1-2 minutes

GoB

Expert Member
Joined
Jan 7, 2008
Messages
1,578
Reaction score
269
Location
Cape Town (Bellville)
Hi,

Does anyone have experience with what to expect from Afrihost's shared Windows hosting?

I have a very simple ASP .NET MVC (almost static) site.
Static content response times are fine.
Dynamic content response times are mostly < 0.1 seconds, however every 1-2 minutes it will take 20 seconds - checked with Fiddler.
That means that a single user can not even click around the site continuously without experiencing the 20 second delay.

Printing out Process.GetCurrentProcess().StartTime show that the delay is linked to a new process starting up to service the request.

To me it seems silly to even have such a hosting option because it is practically unusable.

This was Afrihost's response:

The only way to get a 100% dedicated application pool is to be on a dedicated server. However though the application pool you have is dedicated but limited as you are on a shared hosting server.


Have a great day and please let me know if I can help with anything else!
 
Hi,

However though the application pool you have is dedicated but limited as you are on a shared hosting server.
Have a great day and please let me know if I can help with anything else!
They've created an isolated application pool with limits, and your application is hitting those limits and causing IIS to restart the app pool.
My suggestion is to PM Afriman and ask them to take a screenshot of the application pool settings and send it to you and I can advise.

The only other idea that comes to mind is that there is an idle timeout, but based on what you have described I dont think this is the case.
 
It's silly for Afrihost to give such an answer when it is additional overhead on their shared server to have the application pool recycle like that constantly.

Just also be mindful of what you are doing in your code that could cause the app pool to recycle, for example changing files that could force a recompile (usually code-behind) etc.

I'm sure their app pool limits are set to a decent amount, so unless your site is getting so many visitors that, within 20 seconds it refreshes the app pool, I'd rather investigate the code than look for fault at your host.

https://blogs.msdn.microsoft.com/te...ost-session-variables-and-appdomain-recycles/
 
Hi,

Does anyone have experience with what to expect from Afrihost's shared Windows hosting?

I have a very simple ASP .NET MVC (almost static) site.
Static content response times are fine.
Dynamic content response times are mostly < 0.1 seconds, however every 1-2 minutes it will take 20 seconds - checked with Fiddler.
That means that a single user can not even click around the site continuously without experiencing the 20 second delay.

Printing out Process.GetCurrentProcess().StartTime show that the delay is linked to a new process starting up to service the request.

To me it seems silly to even have such a hosting option because it is practically unusable.

This was Afrihost's response:

The only way to get a 100% dedicated application pool is to be on a dedicated server. However though the application pool you have is dedicated but limited as you are on a shared hosting server.


Have a great day and please let me know if I can help with anything else!

Hi Gob,

That's very short. You cant setup the IIS recycle pool to 5-10 minutes? I also host asp.net site and I dont see this problem on my hosting. 1-2 minutes is really short time.
 
Top
Sign up to the MyBroadband newsletter
X