Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Danial Adamz
  Where is Danial Adamz?
 
 Malaysia
 Danial Adamz
 To: Bernard Bout
  Where is Bernard Bout?
 Brisbane
 Australia
 Bernard Bout
 Tags
Subject: RE: ISAPI app hangs often
Thread ID: 248242 Message ID: 248712 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Web Applications
Date: Tuesday, December 22, 2009 1:48:06 PM         
   


Hi

Thanks for the links, Ive read it and so this is what I did

eg. my link is http://localhost/scripts/foxisapi.dll/test.test01

so in my ini i added

[test.test01]
test1.server=5
test2.server=5
test.server=5

is this correct?


> > Hi
> >
> > I am a total newbie and I dont know anything abt VFP so bear with me if my question doesnt make any sense :P
> >
> > The company I work with is using an in-house web based system using VFP & ISAPI.
> >
> > The problem is whenever more than 4 users uses the system the EXE process hangs tends to ALOT and needs to be killed manually all the time using Process Explorer. Its quite a burden for everybody.
> >
> > My question is, is there anyway possible to make the EXE not hang so much? or is there a script i can use to automatically kill the process every time it hangs after 5-10 seconds?
> >
> > please advice me guys I am really lost
>
> Daniel
>
> If you are using FOXISAPI to power the web pages then you MUST read this article and others like it on this website for all the answers:
>
> http://www.west-wind.com/presentations/foxisapi/foxisapi.htm
>
> http://www.west-wind.com/articles.aspx
>
> Quoted from the above article:
>
> Multiple servers are configured via the FoxISAPI.INI startup config file:
>
> [foxisapi]
> busytimeout = 5
> releasetimeout=13
> statusurl = Status
> reseturl= Reset
> SingleModeModeUrl = SingleMode
> MultiModeUrl = MultiMode
>
> [wwFoxISAPI.TFoxISAPI]
> wwFoxISAPI.TFoxISAPI=2
> R_FoxIsapi.T_R_Foxisapi=1
>
> [foxis.employee]
> foxisr2.employee=2
> foxisr1.employee=1
> foxis.employee = 2
>
>
>
> The first keys in the [FOXISAPI] section determine how you can manage servers. The various URL keys allow you to customize the commands used on the URL to run that command:
>
> foxisapi.dll/status
> foxisapi.dll/reset
> foxisapi.dll/singlemode
>
>
>
> The Status URL displays a list of all servers that are currently loaded. Reset releases all servers. SingleMode releases all servers but the first so you can run maintainenence operations that require EXCLUSIVE access to the data.
>
> The actual Automation servers are configured with a separate section in FoxISAPI.INI. The section serves as a map to translate your ClassID passed on the URL to translate to the actual ClassIDs that you want to call. Since you can call both the same server or a local and remote server. Since locals and remote must have different class ids this mechanism allows you transparently to load the remote with the same URL as the local.
>
> In the [foxis.employee] example above FoxISAPI would first load the FoxISr2 server when starting up. Once this server gets busy it would load another instance since the key value is 2. When both of these are busy foxisr1 would get loaded. Finally, a local copy gets started and two instances of that can be running before requests start queuing.
>
> Typically, you'd want to load the local servers first, but it depends on your server load.

>
> But you need to read the full article. In fact print it out and keep it handy.
>
> Bernard
>
> ** If you see someone without a smile, give em one of yours :) **
> My Blog

ENTIRE THREAD

ISAPI app hangs often Posted by danial adamz @ 12/16/2009 8:16:00 PM
RE: ISAPI app hangs often Posted by claude fox @ 12/17/2009 1:14:16 AM
RE: ISAPI app hangs often Posted by Danial Adamz @ 12/17/2009 11:45:54 AM
RE: ISAPI app hangs often Posted by claude fox @ 12/18/2009 4:34:40 AM
RE: ISAPI app hangs often Posted by Danial Adamz @ 12/20/2009 11:27:30 PM
RE: ISAPI app hangs often Posted by claude fox @ 12/21/2009 1:54:17 PM
RE: ISAPI app hangs often Posted by Danial Adamz @ 12/21/2009 4:46:29 PM
RE: ISAPI app hangs often Posted by claude fox @ 12/21/2009 8:35:38 PM
RE: ISAPI app hangs often Posted by Danial Adamz @ 12/23/2009 1:30:54 PM
RE: ISAPI app hangs often Posted by Bernard Bout @ 12/22/2009 3:29:43 AM
RE: ISAPI app hangs often Posted by Danial Adamz @ 12/22/2009 1:48:06 PM