Alaska Software Inc. - Starting two soapserver using Xb2net
Username: Password:
AuthorTopic: Starting two soapserver using Xb2net
Raffaele LafrattaStarting two soapserver using Xb2net
on Mon, 27 Feb 2012 10:23:05 +0100
Hi all

I need to start two soapserver running on the same server and answering on 
different ports.
The problem is that when the second sopaserver starts it acts very slowly 
while the first one seems to remain ok

Any suggestion ?

Thanks to all

Raffaele Lafratta
Brian WolfsohnRe: Starting two soapserver using Xb2net
on Mon, 27 Feb 2012 15:50:09 +0100
"Raffaele Lafratta" <lafratta@logico.it> wrote in
news:41fbd625$4d5b3b42$16fd7@news.alaska-software.com: 

Raffaelle,

We have multiple soapservers AND regular xn2net servers (as many as 12) 
running on the same server.  Our situation is same port different ip#'s. 
but that shouldn't make a difference...

It sounds like the first soapserver may not be giving up cpu slices 
properly to the rest of the machine... What is your cpu utilization 
running when 1 server is active ?? and when both are active ?? 

I can certify there is no inherent problem in running multiples..

> Hi all
> 
> I need to start two soapserver running on the same server and
> answering on different ports.
> The problem is that when the second sopaserver starts it acts very
> slowly while the first one seems to remain ok
> 
> Any suggestion ?
> 
> Thanks to all
> 
> Raffaele Lafratta 
> 
> 
>
Raffaele LafrattaRe: Starting two soapserver using Xb2net
on Mon, 27 Feb 2012 16:41:05 +0100
Thanks Brian
Thanks Boris

When I stop the first one the second start to go well
If I flip the two ports always the second one is slower

It seems the second server thread has lowest priority.
If so there is a way to give them same priority ?

Thanks again

Raffaele



<Brian Wolfsohn> ha scritto nel messaggio 
news:XnsA00663F5C111Fblwcuscom@87.106.143.233...
> "Raffaele Lafratta" <lafratta@logico.it> wrote in
> news:41fbd625$4d5b3b42$16fd7@news.alaska-software.com:
>
> Raffaelle,
>
> We have multiple soapservers AND regular xn2net servers (as many as 12)
> running on the same server.  Our situation is same port different ip#'s.
> but that shouldn't make a difference...
>
> It sounds like the first soapserver may not be giving up cpu slices
> properly to the rest of the machine... What is your cpu utilization
> running when 1 server is active ?? and when both are active ??
>
> I can certify there is no inherent problem in running multiples..
>
>> Hi all
>>
>> I need to start two soapserver running on the same server and
>> answering on different ports.
>> The problem is that when the second sopaserver starts it acts very
>> slowly while the first one seems to remain ok
>>
>> Any suggestion ?
>>
>> Thanks to all
>>
>> Raffaele Lafratta
>>
>>
>>
>
Boris BorzicRe: Starting two soapserver using Xb2net
on Mon, 27 Feb 2012 20:04:40 +0100
"Raffaele Lafratta" <lafratta@logico.it> wrote in news:72ce7777$764090dc
$180f4@news.alaska-software.com:

> When I stop the first one the second start to go well
> If I flip the two ports always the second one is slower
> 
> It seems the second server thread has lowest priority.
> If so there is a way to give them same priority ?

This is strange, I have never seen this behaviour. The 2 apps should have 
the same priorities. You can easily modify thread priority by doing this:

oServer:Thread:SetPriority( nPriority )

You can also change the CPU affinity. Look at the Alaska sample:
.\xppw32\source\samples\solution\smp


Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Boris BorzicRe: Starting two soapserver using Xb2net
on Mon, 27 Feb 2012 15:58:51 +0100
"Raffaele Lafratta" <lafratta@logico.it> wrote in
news:41fbd625$4d5b3b42$16fd7@news.alaska-software.com: 

> I need to start two soapserver running on the same server and
> answering on different ports.
> The problem is that when the second sopaserver starts it acts very
> slowly while the first one seems to remain ok

There should be no problem doing this. Do you perhaps have some sort of 
record locking or mutex condition that is causing the 2nd server to respond 
more slowly? Another thing to look at is the possibility that the port # of 
the slower server is going through some type of NAT filtering. It's easy to 
test this by flipping the port #'s to see if there is any difference.

BTW, you can also run multiple HTTP/SOAP servers within the same EXE.

Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Raffaele LafrattaRe: Starting two soapserver using Xb2net
on Fri, 02 Mar 2012 15:28:49 +0100
Problem solved
The two webserver running had reference to the same transaction log path...

Thanks to all

Raffaele Lafratta

<Boris Borzic> ha scritto nel messaggio 
news:XnsA006656EB2B19SQLExpress@87.106.143.233...
> "Raffaele Lafratta" <lafratta@logico.it> wrote in
> news:41fbd625$4d5b3b42$16fd7@news.alaska-software.com:
>
>> I need to start two soapserver running on the same server and
>> answering on different ports.
>> The problem is that when the second sopaserver starts it acts very
>> slowly while the first one seems to remain ok
>
> There should be no problem doing this. Do you perhaps have some sort of
> record locking or mutex condition that is causing the 2nd server to 
> respond
> more slowly? Another thing to look at is the possibility that the port # 
> of
> the slower server is going through some type of NAT filtering. It's easy 
> to
> test this by flipping the port #'s to see if there is any difference.
>
> BTW, you can also run multiple HTTP/SOAP servers within the same EXE.
>
> -- 
> Best regards,
> Boris Borzic
>
> http://xb2.net
> http://sqlexpress.net
> industrial strength Xbase++ development tools