In the startup batch i replaced the following lines
 
I've replaced the following lines : 

:: These are all of the scratch files used to configure and launch the app.
:: NOTE: There had better be no spaces in any of these directories
::       or filenames, hence the use of SDRNM.
set APPID=%APPNAME%-%RANDOM%     

by

:: Generates a unique timestamp
for /f "tokens=1-5 delims=/:.," %%a in ("%date%%time%") do set 
TSTAMP=%%a%%b%%c%%d%%e

:: These are all of the scratch files used to configure and launch the app.
:: NOTE: There had better be no spaces in any of these directories
::       or filenames, hence the use of SDRNM.
set APPID=%APPNAME%-%RANDOM%-%TSTAMP%  

Note that the problem could still occur if the files are generated whithin the 
same millisecond..

I will now send the fix onto our production servers and wait... ;-)


Le 5 janv. 2010 à 11:22, Cheong Hee (Gmail) a écrit :

> Hi
>  
> I noticed that the .txt/.cmd files are created in my development XP.  I could 
> simulate to see if it is behaving the same way.  I could not check if Win2K 
> or Win2KSP3 is used since the production server is at customer site.  I 
> recalled if could probably Win2kSP3 since it is the recommended upgrade and 
> stable one. 
> Is the problem solved now, whereabout the timestamp that are you adding?  XP 
> may have the same behaviour since I could see the .txt/.cmd files did create 
> for my test run woa application.
>  
> Cheers
>  
> Cheong Hee
> ----- Original Message -----
> From: Frédéric JECKER
> To: Cheong Hee (Gmail)
> Cc: [email protected]
> Sent: Tuesday, January 05, 2010 5:54 PM
> Subject: Re: Strange temporary files behaviour
> 
> Hi,
> 
> These files are generated by each woa bootstrap cmd file to parse the command 
> line args and are generally deleted upon the task's completion.
> The name of each file is composed this way :  <application's 
> name>-<random>-<number>.txt/cmd
> The number is fixed in the cmd, the only "variable" part is the random number.
> Based on the files in my Temp dir, i suspect that the ms-dos %RANDOM% 
> generator is not so random : 
> I think that when starting multiple instances at the same time, more that one 
> random part with the same value is generated.
> This way, one instance is overwriting existing cmd files... which results in 
> inconsistent batch scripts and leads to infinite loops we get on our 
> production servers.
> Note that we didn't had this problem on Win2K but only on Win2K3.
> Adding a timestamp to the temp files should solve the problem
> 
> Regards
> 
> Frédéric JECKER
> GIP s...@ris
> 
> Le 5 janv. 2010 à 05:32, Cheong Hee (Gmail) a écrit :
> 
>> Hi Frederic
>>  
>> I have not seen this problem in WO5.2/Win2K.  But then I am using Apache not 
>> IIS.  I am just curious could it due to IIS that is the one keep writing the 
>> file.  Just 2c.
>>  
>> Cheers
>>  
>> Cheong Hee
>> ----- Original Message -----
>> From: Frédéric JECKER
>> To: [email protected]
>> Sent: Monday, January 04, 2010 10:44 PM
>> Subject: Strange temporary files behaviour
>> 
>> Hi,
>> 
>> On some of our production servers, wotaskd creates temporary files that 
>> randomly keep on growing until a total server crash.
>> We are running WO 5.2/IIS/Win2K3.
>> 
>> The C:\Document ans settings\USER\Local Settings\Temp folder contains two 
>> kind of files :
>> ".cmd" files named after the application's instances followed by an ID ex : 
>> Application-11538-1.cmd
>> Their content is variable ie : 
>> 
>> @echo off
>> :PARSARGS
>> if not '%1'=='' (
>> echo %1 >> 
>> C:\DOCUME~1\Symaris\LOCALS~1\Temp\ApplicationCariatides-11538-8.TXT 
>>     shift
>>     goto :PARSARGS
>> )
>> set JVARGS=
>> for /F "tokens=*" %%a in ('findstr /R "\-D.*EqualsDelimiterToken.*" 
>> C:\DOCUME~1\Symaris\LOCALS~1\Temp\ApplicationCariatides-11538-8.TXT') do if 
>> not '%%a'=='' set JVARGS=!JVARGS!%%a 
>> if defined JVARGS echo %JVARGS:EqualsDelimiterToken==% > 
>> C:\DOCUME~1\Symaris\LOCALS~1\Temp\ApplicationCariatides-11538-10.TXT 
>> set NONXARGS=
>> for /F "tokens=*" %%a in 
>> (C:\DOCUME~1\Symaris\LOCALS~1\Temp\ApplicationCariatides-11538-8.TXT) do if 
>> not '%%a'=='' set NONXARGS=!NONXARGS!%%a
>> if defined NONXARGS echo %NONXARGS:EqualsDelimiterToken==% >> 
>> C:\DOCUME~1\Symaris\LOCALS~1\Temp\ApplicationCariatides-11538-9.TXT 
>> 
>> For each ".cmd" file a text file is generated containing the app command 
>> line args (the textfile is merely generated by the cmd file)
>> 
>> Sometimes (I didn't find out why), something gets wrong and the text file 
>> keeps on growing growing growing.... 
>> 
>> What are these files for ? is it possible to deactivate their execution ... 
>> or solve the growing problem ;-)
>> Maybe a clue, some of the ".cmd" files content seems like it has been 
>> overwritten and contains duplicates parts/labels.. which could maybe lead to 
>> infinite loops.
>> 
>> Thanks
>> 
>> Frédéric JECKER
>> GIP s...@ris
>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-deploy mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-deploy/chng34%40gmail.com
>> 
>> This email sent to [email protected]
> 
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to