Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Long running COM component, solutions
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00763870
Message ID:
00763898
Vues:
25
Evan, inside your COM component you can make a call to the windows API to mark the process as low priority. This will prevent the COM component from using 100% of the processor.

Here is the documentation for API function to changes the priority:
http://www.news2news.com/vfp/?example=218&function=350

You can probably test this before you code it by setting the priority of the COM component to low with the Windows Task Manager and see how it behaves.

>Hi folks.
>
>I have a few reports that are in a COM EXE. I call these from an ASP.NET page and they can take anywhere from 1 to 9 minutes to complete. When the COM component is called it uses the server CPU almost to 100% and doesn't allow other request to the webserver to be served at all. Rick had warned me of this.
>
>Can I throttle back the process or somehow force the process to backoff when another request comes in?
Hector Correa
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform