Help about long process

Discussion in 'ASP.NET 2.0' started by hoaian83, Dec 16, 2009.

  1. Hi all,

    My application takes about 30 to 40 mins to touch the result. It downloads a csv file (about 40MB) from another site then updates data to database. The system will be idle if there is no http request in 20 mins. Is there a way to keep the system away of idle?

    Thanks,
    An
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    You have to use some sort of keep alive script or create a scheduled task to ping your website every 15 mimnutes
     
  3. do you have any example?

    I did it but It was not effective... Another suggestion?
     
  4. So you have a scheduled task recursively requesting some page within a 20min interval and this should ensure that the app pool does not recycle. However it doesn't ensure that your asp.net runtime will not kill the request if it tries to execute for too long. Have you tried something like <httpRuntime executionTimeout="3600"/> in your web.config?
     
  5. yeah, I did..
     
  6. Maybe the app pool is recycling for some other reason; e.g. exceeding allowed CPU usage or memory allocation.
     
  7. mjp

    mjp

    Yeah, I would say if you are trying to dump 40mb of data into the database from the application you are likely running into resource issues. Open a support ticket and they may be able to tell you where it's dying.
     

Share This Page