Thursday, March 29, 2012

Max. Thread Amount of Windows XP and / or Windows Server 2003

Hi @dotnet.itags.org.ll,

I'm working on a web project which has to use multiple channels to
connect to receive several sources at once. The problem is, that I'm
not aware of the maximum amount of Threads i can allocate to my
channels.

Can i open 10 threads, 100 threads even 1000?

is there a general answer to it. my dev. environment runs on win. xp
and the application will run on a ms server 2003.

Kind regards,
Roni SchuetzYou can open as many threads as you want. It all depends on how much your
system can handle.

Shaun C McDonnell
Solutions Architect

> Hi @.ll,
> I'm working on a web project which has to use multiple channels to
> connect to receive several sources at once. The problem is, that I'm
> not aware of the maximum amount of Threads i can allocate to my
> channels.
> Can i open 10 threads, 100 threads even 1000?
> is there a general answer to it. my dev. environment runs on win. xp
> and the application will run on a ms server 2003.
> Kind regards,
> Roni Schuetz
You only need to post this question to one forum. Then sit and wait for an
answer.

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Professional VSTO.NET - Wrox/Wiley 2006
-----------------

<schuetz@.gmail.com> wrote in message
news:1146442850.367681.282510@.i40g2000cwc.googlegr oups.com...
> Hi @.ll,
> I'm working on a web project which has to use multiple channels to
> connect to receive several sources at once. The problem is, that I'm
> not aware of the maximum amount of Threads i can allocate to my
> channels.
> Can i open 10 threads, 100 threads even 1000?
> is there a general answer to it. my dev. environment runs on win. xp
> and the application will run on a ms server 2003.
> Kind regards,
> Roni Schuetz

Max. number od users in SQL server

How many users can access to SQL server at the same time with web aplication
written in C# 2005? What if my database is 1GB and 1000 people access at 1
second - some simple query. My web hosting acc will be
http://www.webhost4life.com or something simmilar!Hi,
The # of concurrent connection a SQL server handles depends on the
settings of the server.
However if you plan to have a 1000 concurrent users (and 1000 open
connection at a time) you should probably
- implement caching from start in your app.
- check this with your web hosting facility.
YvesL
Goran wrote:
> How many users can access to SQL server at the same time with web aplicati
on
> written in C# 2005? What if my database is 1GB and 1000 people access at 1
> second - some simple query. My web hosting acc will be
> http://www.webhost4life.com or something simmilar!
>
I've hosted websites at WH4L for several years myself noting I have yet to
deploy any applications that really generate significant demand. However, be
it WH4L or any other hosting provider there is no known way I have ever
heard of to test the performance of a hosting provider's shared hosting
services other than deploy the application and then test and measure
performance repeatedly.
When it becomes apparent your applications are generating significant demand
for resources it is then time to move from shared hosting to your own
server. A 1GB database with 1,000 users is virtually meaningless. SQL Server
can handle just about anything you can throw at it.
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=...38&z=17&l=0&m=h
"Goran" <gzelic@.gmail.com> wrote in message
news:em8spq$g9r$1@.sunce.iskon.hr...
> How many users can access to SQL server at the same time with web
> aplication written in C# 2005? What if my database is 1GB and 1000 people
> access at 1 second - some simple query. My web hosting acc will be
> http://www.webhost4life.com or something simmilar!
>

Max. number od users in SQL server

How many users can access to SQL server at the same time with web aplication
written in C# 2005? What if my database is 1GB and 1000 people access at 1
second - some simple query. My web hosting acc will be
http://www.webhost4life.com or something simmilar!Hi,
The # of concurrent connection a SQL server handles depends on the
settings of the server.

However if you plan to have a 1000 concurrent users (and 1000 open
connection at a time) you should probably
- implement caching from start in your app.
- check this with your web hosting facility.

YvesL

Goran wrote:

Quote:

Originally Posted by

How many users can access to SQL server at the same time with web aplication
written in C# 2005? What if my database is 1GB and 1000 people access at 1
second - some simple query. My web hosting acc will be
http://www.webhost4life.com or something simmilar!
>
>


I've hosted websites at WH4L for several years myself noting I have yet to
deploy any applications that really generate significant demand. However, be
it WH4L or any other hosting provider there is no known way I have ever
heard of to test the performance of a hosting provider's shared hosting
services other than deploy the application and then test and measure
performance repeatedly.

When it becomes apparent your applications are generating significant demand
for resources it is then time to move from shared hosting to your own
server. A 1GB database with 1,000 users is virtually meaningless. SQL Server
can handle just about anything you can throw at it.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=...38&z=17&l=0&m=h
"Goran" <gzelic@.gmail.comwrote in message
news:em8spq$g9r$1@.sunce.iskon.hr...

Quote:

Originally Posted by

How many users can access to SQL server at the same time with web
aplication written in C# 2005? What if my database is 1GB and 1000 people
access at 1 second - some simple query. My web hosting acc will be
http://www.webhost4life.com or something simmilar!
>

MaxConnections

I've written an HTTPHandler that implements IHttpAsyncHandler. This handler
makes a call to a webservice that will send back a byte[] to be sent back to
the webrowser as an image.
I've set the maxconnections setting on the web.config for the handler and
the webservice to:
<system.net>
<connectionManagement>
<add address="*" maxconnection="20"/>
</connectionManagement>
</system.net>
But when debugging I can see that it is still only making 2 requests at a
time. How can I make a handler that will allow for more than 2 requests at
a time.
TIASomeone correct me if I'm wrong, but there is a limit at the TCP/IP layer
that means you can only have two TCP/IP connections to the same machine on
the same port at a time. Point IE at a graphic-heavy site and you'll see it
downloads images 2 at a time. As this limit is at the TCP/IP layer you
can't control it from IIS or ASP.
"MattC" <m@.m.com> wrote in message
news:e38S7XhlHHA.3736@.TK2MSFTNGP03.phx.gbl...
> I've written an HTTPHandler that implements IHttpAsyncHandler. This
> handler makes a call to a webservice that will send back a byte[] to be
> sent back to the webrowser as an image.
> I've set the maxconnections setting on the web.config for the handler and
> the webservice to:
> <system.net>
> <connectionManagement>
> <add address="*" maxconnection="20"/>
> </connectionManagement>
> </system.net>
> But when debugging I can see that it is still only making 2 requests at a
> time. How can I make a handler that will allow for more than 2 requests
> at a time.
> TIA
>
>
>
Windows Server 2003 SP1 removed the need to set a higher limit for maxconnec
tions.
The number of simultaneous connections in W2K3 SP1 is now limited
only by available system resources or the MaxConnections registry entry.
You *can* set a higher number of connections in an unpatched Windows Server
2003:
Registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl
Set\Services\HTTP\Parameters
Registry entry
MaxConnections
Value Type
DWORD
Valid data value ranges for this entry are 0 to 4294967295.
Matt, you seem to have a typo :
<add address="*" maxconnection="20"/>
That should be :
<add address="*" maxconnections="20"/>
In any case, if you're running an unpatched W2K3, try setting the registry e
ntry, per the above.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Aidy" <aidy@.noemail.xxxa.com> wrote in message news:tOmdnZdpgPVu2tXbnZ2dnUVZ8taknZ2d@.bt
.co
m...
> Someone correct me if I'm wrong, but there is a limit at the TCP/IP layer
that means you can only
> have two TCP/IP connections to the same machine on the same port at a time
. Point IE at a
> graphic-heavy site and you'll see it downloads images 2 at a time. As thi
s limit is at the TCP/IP
> layer you can't control it from IIS or ASP.
> "MattC" <m@.m.com> wrote in message news:e38S7XhlHHA.3736@.TK2MSFTNGP03.phx.
gbl...
Juan,
Thanks but the limit is impossed by the web browsers request queue in this
case. So IE only ever makes 2 concurrent requests and will block until each
requests returns before sending the next.
I did find that altering:
HKEY_CURRENT_USER\Software\Microsoft\Win
dows\CurrentVersion\Internet
Settings\MaxConnectionsPerServer
and setting to 20 odd really helps, but that isn't somethign I can tell
users to do :s
Also I'm using .NET2.0 so the system.net entry is maxconnection, it
complains of unknown attribute with maxconnectionS.
regards
Matt
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:eHYlTCilHHA.5048@.TK2MSFTNGP04.phx.gbl...
> Windows Server 2003 SP1 removed the need to set a higher limit for
> maxconnections.
> The number of simultaneous connections in W2K3 SP1 is now limited
> only by available system resources or the MaxConnections registry entry.
> You *can* set a higher number of connections in an unpatched Windows
> Server 2003:
> Registry path
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl
Set\Services\HTTP\Parameters
> Registry entry
> MaxConnections
> Value Type
> DWORD
> Valid data value ranges for this entry are 0 to 4294967295.
> Matt, you seem to have a typo :
> <add address="*" maxconnection="20"/>
> That should be :
> <add address="*" maxconnections="20"/>
> In any case, if you're running an unpatched W2K3, try setting the registry
> entry, per the above.
>
>
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaol : http://asp.net.do/foros/
> ======================================
> "Aidy" <aidy@.noemail.xxxa.com> wrote in message
> news:tOmdnZdpgPVu2tXbnZ2dnUVZ8taknZ2d@.bt
.com...
>
>
>
If I am undestanding correctly, you are talking about client connections,
and not server connections?
If so, this is an IE thing and can be altered only through the registry with
the Internet Settings\MaxConnectionsPerServer key.
I see Juan has jumped in as well. If it is server side, and you are using
Windows Server 2003, I would go there first.
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
****************************************
*****
Think outside the box!
****************************************
*****
"MattC" <m@.m.com> wrote in message
news:e38S7XhlHHA.3736@.TK2MSFTNGP03.phx.gbl...
> I've written an HTTPHandler that implements IHttpAsyncHandler. This
> handler makes a call to a webservice that will send back a byte[] to be
> sent back to the webrowser as an image.
> I've set the maxconnections setting on the web.config for the handler and
> the webservice to:
> <system.net>
> <connectionManagement>
> <add address="*" maxconnection="20"/>
> </connectionManagement>
> </system.net>
> But when debugging I can see that it is still only making 2 requests at a
> time. How can I make a handler that will allow for more than 2 requests
> at a time.
> TIA
>
>
>

Max. Thread Amount of Windows XP and / or Windows Server 2003

Hi @dotnet.itags.org.ll,
I'm working on a web project which has to use multiple channels to
connect to receive several sources at once. The problem is, that I'm
not aware of the maximum amount of Threads i can allocate to my
channels.
Can i open 10 threads, 100 threads even 1000?
is there a general answer to it. my dev. environment runs on win. xp
and the application will run on a ms server 2003.
Kind regards,
Roni SchuetzYou can open as many threads as you want. It all depends on how much your
system can handle.
Shaun C McDonnell
Solutions Architect

> Hi @.ll,
> I'm working on a web project which has to use multiple channels to
> connect to receive several sources at once. The problem is, that I'm
> not aware of the maximum amount of Threads i can allocate to my
> channels.
> Can i open 10 threads, 100 threads even 1000?
> is there a general answer to it. my dev. environment runs on win. xp
> and the application will run on a ms server 2003.
> Kind regards,
> Roni Schuetz
You only need to post this question to one forum. Then sit and wait for an
answer.
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Professional VSTO.NET - Wrox/Wiley 2006
----
<schuetz@.gmail.com> wrote in message
news:1146442850.367681.282510@.i40g2000cwc.googlegroups.com...
> Hi @.ll,
> I'm working on a web project which has to use multiple channels to
> connect to receive several sources at once. The problem is, that I'm
> not aware of the maximum amount of Threads i can allocate to my
> channels.
> Can i open 10 threads, 100 threads even 1000?
> is there a general answer to it. my dev. environment runs on win. xp
> and the application will run on a ms server 2003.
> Kind regards,
> Roni Schuetz
>

Maximise screen automatically

Hi,

When the user opens my homepage (the first page of the application) I'm wanting the page to automatically maximise, since at 1024x768 everything fits in nicely (all the users are at this resolution btw) but when it's not maximised it looks horrid and you have to manually maximise the window to start browsing.

Any ideas??

Cheers again,
AndrewTry to open the page with a javascript function like;

window.open("your.asp", "", 'toolbar=yes, directories=yes,location=yes, status=yes, menubar=yes, resizable=yes, scrollbars=yes, left =0, top=0, height = ' + screen.availHeight + ', width = ' + screen.availWidth);

Does it solve your issue ?
Kinda - so there's nothing in VB.NET / ASP.NET which tells the page to maximise?

If there's not then I guess I'll have to use a Javascript function.

Thanks udayakumar_jr!

Andrew

Maximising Windows

Hi,
I know this is not an ASP.NET issue, but I thought I would ask the question
of all you guys here.
I know how to mazimize a window using the javascript resizeTo( h , w )
method of the window object. However, it doesent actually maximise the
window to fill the whole screen. it stops short of that.
Does anyone know if there is a way to do this ?
CheersOn Mar 26, 5:48=A0pm, "Microsoft Newsserver" <m...@.nowhere.com> wrote:
> Hi,
> I know this is not an ASP.NET issue, but I thought I would ask the questio=[/color
]
n
> of all you guys here.
> I know how to mazimize a window using the javascript resizeTo( =A0h , w )
> method of the window object. However, it doesent actually maximise the
> window to fill the whole screen. it stops short of that.
> Does anyone know if there is a way to do this ?
> Cheers
For IE you can use window.open with the 'fullscreen' option
var newwin =3D window.open('default.aspx','','fullscreen');
Thanks.
Although that does in fact work, it makes it's not quite what I wanted as it
fills the screen rather than makes the window fit the screen. Thanks for the
help tho.
"Alexey Smirnov" <alexey.smirnov@.gmail.com> wrote in message
news:74b18f44-39aa-4024-99c5-687cb3dd9a66@.i7g2000prf.googlegroups.com...
On Mar 26, 5:48 pm, "Microsoft Newsserver" <m...@.nowhere.com> wrote:
> Hi,
> I know this is not an ASP.NET issue, but I thought I would ask the
> question
> of all you guys here.
> I know how to mazimize a window using the javascript resizeTo( h , w )
> method of the window object. However, it doesent actually maximise the
> window to fill the whole screen. it stops short of that.
> Does anyone know if there is a way to do this ?
> Cheers
For IE you can use window.open with the 'fullscreen' option
var newwin = window.open('default.aspx','','fullscreen');