DUAS: Sometimes Windows jobs aborted

Document ID : KB000086998
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
Job log may contain either one of the following error message:


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
=" == "" echo Cannot find uproc 000 version in area EXP && goto :EOF was unexpected at this time.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Or

~~~~~~~~~~~~~~~~~~~~~~~~ 
Cannot load environment 
~~~~~~~~~~~~~~~~~~~~~~~~ 

Patch level detected:Dollar Universe 6.3.41
Product Version: Dollar.Universe 6.3.41

Description :Sometimes jobs aborted.
Environment:
OS: Windows Server 2008
Cause:
Cause type:
Configuration
Root Cause: For the following error message, the error message is coming from the U_POST_UPROC script in which "uxlst upr" is executed to check if the uproc exists or not.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~The line in U_POST_UPROC is the following. Thisline is in the fuction called GET_UPR_LABEL. What we did was to comment out the line that calls the fucntion GET_UPR_LABEL so that it will not run the line below.
for /F "tokens=1 usebackq delims=" %%A in (`%UNI_DIR_EXEC%\uxlst upr %P_AREA% upr^=\"%P_OBJECT%\" vupr^=%P_VERSION% ^| %UNI_DIR_ROOT%\data\nodefiles\tail +5`)
The error message is present in u_batch.bat:C:\WINDOWS\system32>CALL "C:\Opt\Universe\ABCPRD\unienv.bat" BATCH 1>nul
C:\Opt\Universe\ABCPRD\bin>"C:\Opt\Universe\ABCPRD\bin\unibatchenv.exe" -online
C:\Opt\Universe\ABCPRD\bin>if not -1073741502 == 0 goto ERR_ENV
C:\Opt\Universe\ABCPRD\bin>echo Cannot load environment
Resolution:
This issue is related to the user's heap size on Windows.

####################
To increase the desktop heap memory size, do the following steps:

1. Run the Registry Editor (usually found as drive:\Windows\regedit.exe).

2. Go to HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Control -> Session Manager -> SubSystems.

3. Double-click on the Windows string to edit it(windows.jpg attached).

4. If you check the Value data(Value.jpg attached), it should be something like this :-
%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,3072,512 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16


5.The portion of interest is "SharedSection=1024,3072,512".
The three values under Shared Section determines how much memory in kilobytes (KB) is allocated to each component of the desktop heap.

The first value is the shared heap size, common to all desktops. It's used to store the global handle table and shared system settings.
By default, it's set to 1024KB. You generally do not need to modify this value.

The second value is the desktop heap size for each desktop associated with the "interactive" window station. It's used to store user objects like hooks, menus, strings and windows. By default, it's set to 3072KB. The more users log into the system, the more desktops are created. Consequently, the total "interactive" desktop heap size will increase to reflect the number of desktops created. But each desktop will only have an "interactive" desktop heap of 3072KB.

The third value is the desktop heap size for each desktop associated with the "non-interactive" window station. By default, it's set to 512KB. But if this value is not present, the size of the "non-interactive" window station will be the same as that of the "interactive" window station. If the existing value is 512 then change the value to 1024

For more details refer the URL:
http://blogs.msdn.com/ntdebugging/archive/2007/01/04/desktop-heap-overview.aspx
http://www.techarp.com/showarticle.aspx?artno=238&pgno=1

See Article titled "The job failed with no job log and another uproc goes to pending state then abort after some time and with no job log."
####################

Fix Status: No Fix
 
Additional Information:
Workaround :
N/A