Category Archives: microsoft

No buffer space available (maximum connections reached?)

Caused by: java.net.SocketException: No buffer space available (maximum connections reached?): connect

This is most likely due to the number of ephemeral TCP ports being exhausted, the server has too many active client connections due to which the ephemeral TCP ports are all used up and in this case no more ports can be allocated to a new client connection request resulting in the behaviour we see here that no new connections can be setup.

Quoting from Wikipedia entry:
http://en.wikipedia.org/wiki/Ephemeral_port

“Ephemeral port is a transport protocol port for Internet Protocol (IP) communications allocated automatically from a predefined range by the TCP/IP Stack Software. It is typically used by the TCP, UDP or SCTP as port for the client end of a client-server communication when the application doesn’t bind the socket to a specific port number, or by a server application to free up service’s well known listening port and establish a service connection to the client host. The allocations are temporary and only valid for the duration of the connection. After completion of the communication session the ports become available for reuse, although most implementations simply increment the last used port number until the ephemeral port range is exhausted.”

This is a known issue on Windows boxes, a hotfix is available from Microsoft: “Kernel sockets leak on a multiprocessor computer that is running Windows Server 2008 R2 or Windows 7” – http://support.microsoft.com/kb/2577795

http://rwatsh.blogspot.be/2012/04/resolution-for-no-buffer-space.html
http://dbaktiar-on-java.blogspot.be/2010/03/hudson-shows-buffer-space-available.html

Windows XP SP3 wsus client not updating

When you run the WSUS Client Diagnostics Tool, you get the following error at the end :

WinHttpDownloadFileToMemory(szURLDest, NULL, 0, NULL, NULL, NULL, &downloadBuffe r) failed with hr=0x80072efd

A connection with the server could not be established

In addition, your WSUS server is most likely not configured to listen on port 80.

In my case manually updating the WUAgent to v7.4 (x86 | x64) solved the problem.

I suspect the client is trying to execute a selfupdate but this fails because the WSUS server is not responding on port 80.

Invalid XSL format (or) file name.

Are you executing some wmic commands, most likely with a format command and getting the following error : Invalid XSL format (or) file name.

for example : wmic process list FULL /FORMAT:CSV

You running on Windows 7 (64-bit) or Windows 2008 R2 and have installed additional keyboards or language settings.

It seems that some wmic commands use files that are located in a localized folder:

on 32-bit : C:WindowsSystem32wbemen-US
on 64-bit : C:WindowsSysWOW64wbemen-US

If you have for example a UK keyboard layout installed, simply copy C:WindowsSysWOW64wbemen-US to C:WindowsSysWOW64wbemen-GB.

Your format command above should work fine now.

Disable UAC for Windows Servers through Group Policy

In Computer Configuration | Policies | Windows Settings | Security Settings | Local Policies | Security Options configure the following values:

– User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode
– User Account Control: Detect application installations and prompt for elevation
– User Account Control: Turn on Admin Approval Mode

Source.

Pagefile Management for Windows Server Core

First you need to disable the automatic management:

wmic
>computersystem where name=”hostname” set AutomaticManagedPagefile=False

Next, you select where to put the pagefile and how big it should be (expressed in MB)

wmic
>pagefileset where name=”C:\pagefile.sys” set InitialSize=8192,MaximumSize=8192

More info : http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2007/12/27/page-files-in-server-core.aspx

Free eBook: Understanding Microsoft Virtualization R2 Solutions

Learn about the latest Microsoft Virtualization technologies, including Hyper-V and Windows Azure. Download Understanding Microsoft Virtualization R2 Solutions, written by industry expert Mitch Tulloch along with the Microsoft Virtualization team.

http://blogs.technet.com/b/johnbaker/archive/2011/11/04/free-ebook-understanding-microsoft-virtualization-r2-solutions.aspx

Hyper-V Guides

Nice compilation of hyper-v guides, touching some of the following subjects:

– Learn about Microsoft virtualization technologies.
– Make decisions about the right licenses for the right scenarios.
– Plan your Hyper-V deployment.
– Manage a virtual machines environment.
– Apply security best practices.

Read it here.

How to Fix Project Server Events Service and Queue Service Event ID: 7000 Error

The following errors will show up in your event log:

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7009
Date: 9/7/2009
Time: 9:24:42 PM
User: N/A
Computer: PS07
Description:
Timeout (30000 milliseconds) waiting for the Microsoft Office Project Server Events Service service to connect.

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7000
Date: 9/7/2009
Time: 9:24:42 PM
User: N/A
Computer: PS07
Description:
The Microsoft Office Project Server Events Service service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion.

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7009
Date: 9/7/2009
Time: 9:24:42 PM

User: N/A
Computer: PS07
Description:
Timeout (30000 milliseconds) waiting for the Microsoft Office Project Server Queue Service service to connect.

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7000
Date: 9/7/2009
Time: 9:24:42 PM

User: N/A
Computer: PS07
Description:
The Microsoft Office Project Server Queue Service service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion.


You will face this error most likely if your project server is not connected to the internet. Yet again a simple solution, add the CRL of Microsoft and your service will start again 🙂

Source and full description: http://rperreaux.spaces.live.com/blog/cns!5D7BD18D324CBEEF!529.entry