Solved

Problem with running out of named pipe instances

Posted on 1998-03-04
6
574 Views
Last Modified: 2013-12-23
In the process of running and debugging an application that makes named pipe requests to a named pipe server, I was getting an error indicating that the pipe was busy.  It appears that all of the named pipe instances were in use.  Is there any way to see what is using all of the instances.  Also, is there any way to increase the number of instances that NT allows (i.e. registry value).
0
Comment
Question by:dhoman
  • 4
  • 2
6 Comments
 
LVL 1

Expert Comment

by:kuk010998
ID: 1571247
From Resource Kit Message Reference:
"All pipe instances are busy.
[Kernel32]
The pipe cannot be accessed because another process is using it.
Try the operation again later
"

Sounds like your message. So your app has opened the pipe, and has not closed it. Either you caused this by forgetting close calls, by skipping the close, or by stopping the app. You´d need to end the *process* that holds these opened pipes - possibly with restarting the debugger. Also, think about opening the pipe with different share options.

Some misc stuff:
Registry entries for workstation service described in Q102981 - timeouts for nonblocking requests where there is no data available.
"Limit of 49 Named Pipe Connections from a Single Workstation" = KB Q141709.

Other than Server Manager, I know of no way to " see what is using all of the (pipe) instances" but perhaps the www.ntinternals.com guys have something.

Good luck.

0
 
LVL 1

Expert Comment

by:kuk010998
ID: 1571248
You should *definitely* check http://www.ntinternals.com/nthandlex.htm.
0
 

Author Comment

by:dhoman
ID: 1571249
What determines how many pipes are available.  Does the pipe server controller this.  Does NT control how many pipes are available per process.  If it is controlled by the pipe server, how do you set it progammatically.  If its controlled by NT is there any way to set it via the registry
0
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 
LVL 1

Expert Comment

by:kuk010998
ID: 1571250
I do not think there is an inherent limit to the number of pipes per se. The server does limit the number of pipe connections *per client*, that´s what Q141709 says. You can push this limit by setting HKLM\System\ccs\Services\LanmanServer\Parameters\MaxMpxCt REG_DWORD on the pipe server (thought you´d get this out of Q141709 yourself, never hurts to read KB articles in full detail), but the range for this value is only 1 to 100, so you won´t gain too much. As pipes are implemented as pseudo-filesystem (npfs - just like msfs are the mailslots) you should experience more or less the same limits as with open file handles....

Nevertheless, I still think your program should not need more than one instance per pipe, and that you should check your debugging habits, Close calls, and sharing approach...
0
 
LVL 1

Accepted Solution

by:
kuk010998 earned 200 total points
ID: 1571251
I do not think there is an inherent limit to the number of pipes per se. The server does limit the number of pipe connections *per client*, that´s what Q141709 says. You can push this limit by setting HKLM\System\ccs\Services\LanmanServer\Parameters\MaxMpxCt REG_DWORD on the pipe server (thought you´d get this out of Q141709 yourself, never hurts to read KB articles in full detail), but the range for this value is only 1 to 100, so you won´t gain too much. As pipes are implemented as pseudo-filesystem (npfs - just like msfs are the mailslots) you should experience more or less the same limits as with open file handles....

Nevertheless, I still think your program should not need more than one instance per pipe, and that you should check your debugging habits, Close calls, and sharing approach...
0
 

Author Comment

by:dhoman
ID: 1571252
Thanks for the help.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DHCP setup on Windows Server 2012 11 165
VLAN Tag for chained network device. 11 70
RRAS AND DNS 15 61
How do i de-activate my Visual Studio 2012 Professional license 3 33
The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
Resolve DNS query failed errors for Exchange
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question