2000 server with sp4 to another Windows 2000 sever with sp4 that is hosting
a SQL 2000 server database with sp3a, but I reach an upper limit of about
30 - 40 connections.
Is osql limited to the number of simultaneous connections it can open to
another server? The database server isn't limited, so it must be the
client. If so, can that be increased?There isn't an OSQL limitation for connection requests other than the
resources on the box. There's something else going on if you can only make
30 to 40 connections. What happens when you try to make the 41st
connection? What error does the client receive?
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||This is the error I get for the jobs that failed after, in this case,
submitting 50 osql jobs simultaneously. 42 succeeded and 8 did not.
Application popup: osql.exe - Application Error : The application failed to
initialize properly (0xc0000142). Click on OK to terminate the application.
event id 26
"Kevin McDonnell [MSFT]" <kevmc@.online.microsoft.com> wrote in message
news:kMxpahY0DHA.3564@.cpmsftngxa07.phx.gbl...
quote:
> There isn't an OSQL limitation for connection requests other than the
> resources on the box. There's something else going on if you can only
make
quote:|||SQL Server uses a non-interactive desktop heap. The non-interactive desktop
> 30 to 40 connections. What happens when you try to make the 41st
> connection? What error does the client receive?
>
> Thanks,
> Kevin McDonnell
> Microsoft Corporation
> This posting is provided AS IS with no warranties, and confers no rights.
>
>
heap
may run out of memory if a lot of processes are created. When there is not
sufficient memory to satisfy an
allocation request, an error is returned and the user is notified that the
computer is low on memory. Some programs may not handle the
failure, and sometimes there may not be sufficient memory to create the
error
message dialog box. When there is not sufficient memory to create the error
message dialog box, the requested operation may fail without generating an
error message.
WARNING: If you use Registry Editor incorrectly, you may cause serious
problems that may require you to reinstall your operating system. Microsoft
cannot guarantee that you can solve problems that result from using
Registry
Editor incorrectly. Use Registry Editor at your own risk.
To work around this problem, follow these steps:
1. At a command prompt, type "REGEDT32.EXE" to start Registry Editor.
2. In Registry Editor, locate the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl
Set\Control\Session
Manager\SubSystems
3. In the right pane of Registry Editor, click "Windows".
4. On the "Edit" menu, click "Modify".
5. In the "Edit String" dialog box, locate the "SharedSection"
parameter string in the "Value
data" text box, and then specify an increased value for the
"SharedSection" parameter.
Note The SharedSection parameter specifies the system and desktop by using
the following
format, where <<xxxx>> defines the maximum size of the system-wide heap
(in
kilobytes), <<yyyy>> defines the size of the per desktop heap, and
<<zzzz>> is the size of the desktop heap for each desktop that is
associated with a non-interactive Windows station:
SharedSection=<<xxxx>>,<<yyyy>>,<<zzzz>>
6. Click "OK".
Increasing the non-interactive desktop heap by 256K or 512K
typically provides sufficient memory to resolve the problem.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||Does Windows Server 2003 still have the 48 MB limitation in
system-wide space for the heaps?
David Martin
kevmc@.online.microsoft.com (Kevin McDonnell [MSFT]) wrote in message news:<WfRfCD90DHA.2256@.cpmsftngxa07
.phx.gbl>...
quote:|||The Windows 2003 default setting is:
> SQL Server uses a non-interactive desktop heap. The non-interactive deskto
p
> heap
> may run out of memory if a lot of processes are created. When there is not
> sufficient memory to satisfy an
> allocation request, an error is returned and the user is notified that the
> computer is low on memory. Some programs may not handle the
> failure, and sometimes there may not be sufficient memory to create the
> error
> message dialog box. When there is not sufficient memory to create the erro
r
> message dialog box, the requested operation may fail without generating an
> error message.
>
> WARNING: If you use Registry Editor incorrectly, you may cause serious
> problems that may require you to reinstall your operating system. Microso
ft
> cannot guarantee that you can solve problems that result from using
> Registry
> Editor incorrectly. Use Registry Editor at your own risk.
>
> To work around this problem, follow these steps:
> 1. At a command prompt, type "REGEDT32.EXE" to start Registry Editor.
> 2. In Registry Editor, locate the following registry key:
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl
Set\Control\Session
> Manager\SubSystems
> 3. In the right pane of Registry Editor, click "Windows".
> 4. On the "Edit" menu, click "Modify".
> 5. In the "Edit String" dialog box, locate the "SharedSection"
> parameter string in the "Value
> data" text box, and then specify an increased value for the
> "SharedSection" parameter.
> Note The SharedSection parameter specifies the system and desktop by using
> the following
> format, where <<xxxx>> defines the maximum size of the system-wide hea
p
> (in
> kilobytes), <<yyyy>> defines the size of the per desktop heap, and
> <<zzzz>> is the size of the desktop heap for each desktop that is
> associated with a non-interactive Windows station:
> SharedSection=<<xxxx>>,<<yyyy>>,<<zzzz>>
> 6. Click "OK".
>
> Increasing the non-interactive desktop heap by 256K or 512K
> typically provides sufficient memory to resolve the problem.
>
> Thanks,
> Kevin McDonnell
> Microsoft Corporation
> This posting is provided AS IS with no warranties, and confers no rights.
SharedSection=1024,3072,512
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||That did the trick.
Thanks!
"Kevin McDonnell [MSFT]" <kevmc@.online.microsoft.com> wrote in message
news:d9bDOnU1DHA.3564@.cpmsftngxa07.phx.gbl...
quote:|||I'm having a problem that I think is related to this non-interactive
> The Windows 2003 default setting is:
> SharedSection=1024,3072,512
> Thanks,
> Kevin McDonnell
> Microsoft Corporation
> This posting is provided AS IS with no warranties, and confers no rights.
>
>
desktop heap thing. In Windows 2003, I'm using ASP.NET to start a
large number of processes (about 250 processes that use very little CPU
and about 2KB per process). After the first 150 or so are started, I
get the "The application failed to initialize properly (0xc0000142)"
error. The processes show up in Windows Task Manager but don't
function properly. The ASP.NET application runs in its own application
pool that runs under the System account. Also, after attempting to
launch this large number of processes from an ASP.NET page, all other
ASP.NET pages running under the same application pool randomly get a
"Compiler Error 128". I've tried changing the SharedSection key to
1024,3072,1024 which should be more than sufficient if this is the
problem. Any suggestions?
Kevin McDonnell [MSFT] wrote:
> *The Windows 2003 default setting is:
> SharedSection=1024,3072,512
> Thanks,
> Kevin McDonnell
> Microsoft Corporation
> This posting is provided AS IS with no warranties, and confers no
> rights. *
DavidGrampa
---
Posted via http://www.mcse.ms
---
View this thread: http://www.mcse.ms/message237589.html
No comments:
Post a Comment