This is a long one:
Cannot create a new session with a large number of users
Date: 7/22/2009
Product Line: MAS 200
Application: System Setup
Application Level: All
Number: SS3003-ABC
The error message ""WindX client connection: Connection Timed Out waiting for your application to start"" occurs or a blank white screen displays when opening Sage MAS 200 tasks (for example: Sales Order Entry, Customer Inquiry, Invoice Data Entry, Purchase Order Entry). After this issue, Sage MAS 200 appears unresponsive. In addition, various error messages may occur at the server including ""Pvxwin32.exe DLL Initialization Error"". Windows 2000/2003/2008 may be limiting the number of processes that can run simultaneously. This issue occurs when a large number of users run Sage MAS 200 concurrently.
By default, Windows 2000/2003/2008 systems are optimized for desktop applications over services. This means that more instances of a Windows program can opened as a desktop application than as a service. This issue surfaces frequently when the Sage MAS 200 Host is configured to run as a service and there are at least 50 to 75 pvxwin32.exe tasks running at the same time.
If your system is optimized to run more instances of desktop applications over services (which is the default in Windows 2000/2003/2008), simply switching the Sage MAS 200 Host to run as a desktop application from a service will, in all likelihood, instantly allow you to open 125 to 300 concurrent pvxwin32.exe tasks. In most cases, this is all that is needed to resolve this issue. It is highly recommended you attempt this solution before attempting to edit the Windows registry as detailed later in this document.
Switching the Sage MAS 200 Host from a Service to a Desktop Application
Go to the Services applet, and stop the ""MAS90cs Host 10000"" service. If the Port ID in the description is a number other than 10000 make a note of the number.
Change the service Startup type from ""Automatic"" to ""Manual"". This is the reverse of the process detailed in the ""Configuring the Service"" section of the Sage MAS 200 Installation Guides.
Create a shortcut from ...\Mas90\Home\Host.exe to the desktop. Right-click Host.exe, point to ""Send To"", and then click ""Desktop (Create Shortcut)"". If the Port ID from step 1 was not 10000, modify the properties of the shortcut that's now located on the desktop. In the properties, add a space and the correct Port ID to the end of the ""Target Path"":
Example 1: D:\Apps\Mas90\Home\Host.exe 9500
Example 2: ""C:\Program Files\Best\Mas90\Home\Host.exe"" 9999
Note: When the directory path contains spaces (for example: ""Program Files""), the entire path up to the file name must be quoted.
A user account that is a member of the Administrators or Domain Administrators group must now always be logged on to the server, directly at the server, and then start the Host program. Sage MAS 200 for SQL requires that the original account running the Host service always be logged on the server's desktop.
General Information on the Registry Modification
The following section provides information on the registry modifications needed to allow a greater number of processes to run simultaneously in Windows 2000/2003/2008. This procedure is not recommended unless you must run the Host as a service or you are already running the Host as a desktop application and still need to increase the number of pvxwin32.exe tasks. Perform this procedure on the server where the Sage MAS 200 Host resides.
Warning: Modifying the registry incorrectly may cause serious damage to your system and require reinstallation of the operating system. Sage cannot guarantee that you can solve problems that result from modifying the registry incorrectly. Prior to modifying the registry, perform a backup of the registry by creating an Emergency Repair Disk (ERD) and performing a full system backup or at least a backup of the Windows system state.
This registry modification affects all programs that run on the server along with Sage MAS 200. Some applications will be incompatible with certain values entered for the registry edit. Specifically, Backup Exec and Windows Task Scheduler have proven to be incompatible with the maximum value of 8192 assigned to the services heap value. It is your responsibility to verify that all your desktop applications and services start and run correctly with the registry changes.
Note: The process limitation issue can usually be corrected by modifying a value in a string located in the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems\Windows
This parameter may appear in one of the following forms:
SharedSection=1024, 3072, 512 (Windows 2000 default)
SharedSection=1024, 3072, 512,512 (Windows 2000/2003 with Terminal Services)
SharedSection=1024,12288,768 (Server 2008 32-bit)
SharedSection=1024,20480,768 (Server 2008 64-bit)
Value one (1024) defines the maximum size of the Windows system-wide heap. Do not modify value one (1024).
Value two (3072,12288 or 20480 respectively) defines the heap size for desktop applications.
Value three (512,768 for Server 2008) defines the heap size for services.
Value four (512) is the Terminal Services heap size (this value might not exist on all systems running Windows Terminal Services). Do not modify value four (512).
Some applications will modify the third value so it does not inherit the second value. Sage does not recommend omitting the third value if it is present at the start of the edit. The first and the fourth values should not be modified.
Registry Modification to run the Host as a Service
Try the following setting if only two or three values exist:
SharedSection=1024,3072,1536
Try the following setting if four values exist:
SharedSection=1024,3072,1536,512
Note that the third value is changed from the default (from 512 to 1536) (Windows 2000/2003/2008). This is offered as a starting point for ""tuning"" the third value to an optimal setting compatible with all programs running on the server. After rebooting the server, view the System log and Application log in the Windows Event Viewer and look for any error messages, especially those of services failing to start. If some applications or services do not start up or run properly after editing the registry, try lowering the third value in 512k increments and rebooting the server until you find a combination that works with all your programs. If problems do not occur, and you still need more concurrent pvxwin32.exe tasks you can raise the third value by increments of 512k to a maximum value of 8192. The maximum value is not recommended.
Veritas Backup Exec and Windows Task Scheduler and other programs and services are known to be incompatible with the maximum (8192) setting. It is also possible some programs and services will be incompatible or be adversely affected with a high setting less than 8192. As mentioned above, consider 512 as the starting point for ""tuning"" the third value to an optimal setting compatible with all programs running on the server. It is your responsibility to test and verify that all programs and services are functioning correctly after making the edit and rebooting the server.
Note: If you are running Veritas Backup Exec and must run the Host as a service and cannot tune the third value optimally to be compatible with both applications, consider running Sage MAS 200 and Backup Exec on separate servers. The Backup Exec software will be loaded on one server and Backup Exec remote agent software will be loaded on the server running Sage MAS 200. Please consult Veritas or your hardware professional for more information. Sage Customer Support Services cannot provide assistance in this area.
Registry Modification to run the Host on the desktop
If you are running the Host on the desktop generally a registry modification is not required. However, if you are still running into the process limitation issue, consider the following:
Try the following setting if only two or three values exist:
SharedSection=1024,8192,512
Try the following setting if four values exist:
SharedSection=1024,8192,512,512
Notes:
Due to the default heap size for Windows Server 2008 has increased past the previous 8192 maximum. If change is required, follow the instructions are below and make changes in 512 increments following all the considerations and cautions in this article.
Note that the second value is changed from the default of 3072 to 8192 (Windows 2000 and Windows 2003) and that the third value is set to 512. This is offered as a starting point for ""tuning"" the second value to an optimal setting compatible with all programs running on the server. View the System log and Application log in the Event Viewer after rebooting the server to look for error messages, especially those of services failing to start. Also look for visual error messages on the screen. Also verify that all of your applications that run on the server continue to run normally.
Currently, there are no reports of applications or services that are incompatible with the second value set to the maximum 8192. If any applications or services do not start up or run properly as a result of changing the entry, the second value can be lowered in 512k increments. The valid range of vales for the 2nd number is between 3072 and 8192. It is your responsibility to test and verify that all programs and services are functioning correctly after making the edit and rebooting the server.
Additional Information
For more information on the values contained in this key, refer to the following Knowledge Base articles located on the Microsoft Web site. Please note that some of these articles recommend settings that are different than the settings contained in this article.
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q142/6/76.asp&NoWebContent=1
http://support.microsoft.com/default.aspx?scid=kb;en-us;126962
http://support.microsoft.com/default.aspx?scid=kb;en-us;158308