SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
12k leak each time a batch file is run
Goto page 1, 2  Next
 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
12k leak each time a batch file is run
Author Message
Luc Cloutier



Joined: 31 Jul 2000
Posts: 10

Post 12k leak each time a batch file is run Reply with quote

A test batch file containing only "@ECHO OFF" without the quote mark is being called every minute by the scheduler.

Each time, my used memory jumps. 90% it's a 12k jump. The rest of the time, it can go up to 100k or to 8k.

The memory used by all applications remain stable at all times. The only thing different is that page definition for 24/7 increments by 44 in task manager column almost every second.

The batch file is called from a network drive.

Example H:\WINDOWS\24x7\submitstratto.bat

If i run the same command line from the run dialog box of windows NT4 SP4, the memory jumps for the execution and then goes back to where it was.

I then tried C:\WINNT\SYSTEM32\CMD /C H:\WINDOWS\24x7\submitstratto.bat to force the end of CMD with no success.

Am i missing anything ?

Thanks !

Thu Aug 17, 2000 10:05 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6505

Post Re: 12k leak each time a batch file is run Reply with quote

1. Disable logging for a job that runs every minute (but keep "notify" on error).
2. Set reasonable maximum log size in the 24x7 system options.

: A test batch file containing only "@ECHO OFF" without the quote
: mark is being called every minute by the scheduler.

: Each time, my used memory jumps. 90% it's a 12k jump. The rest of the time,
: it can go up to 100k or to 8k.

: The memory used by all applications remain stable at all times. The only
: thing different is that page definition for 24/7 increments by 44 in task
: manager column almost every second.

: The batch file is called from a network drive.

: Example H:\WINDOWS\24x7\submitstratto.bat

: If i run the same command line from the run dialog box of windows NT4 SP4,
: the memory jumps for the execution and then goes back to where it was.

: I then tried C:\WINNT\SYSTEM32\CMD /C H:\WINDOWS\24x7\submitstratto.bat to
: force the end of CMD with no success.

: Am i missing anything ?

: Thanks !

Thu Aug 17, 2000 10:22 am View user's profile Send private message
Luc Cloutier



Joined: 31 Jul 2000
Posts: 10

Post Re: 12k leak each time a batch file is run Reply with quote

: 1. Disable logging for a job that runs every minute (but keep
: "notify" on error).
: 2. Set reasonable maximum log size in the 24x7 system options.

I disabled loggin in the program options and on the task and set the log count in options to 10.

I restarted the program... no success. The 12k pattern remains.

Thu Aug 17, 2000 10:39 am View user's profile Send private message
Mark Richards



Joined: 05 Jun 2000
Posts: 31

Post Re: 12k leak each time a batch file is run Reply with quote

: I disabled loggin in the program options and on the task and set the log
: count in options to 10.

: I restarted the program... no success. The 12k pattern remains.

We found that if the job type was set asynchronous, you can almost guarantee this problem.

Our workaround has been to use the scheduler to call another instance of itself and launch the job. Use run "24x7 /JOB" (see help file). Change the job type to synchronous. I think then the problem will go away.

We had great support from the 24x7 folks in resolving several other issues as well. The result is a very powerful and stable system.

Good luck with it.

-m-

Thu Aug 17, 2000 11:24 am View user's profile Send private message
Luc Cloutier



Joined: 31 Jul 2000
Posts: 10

Post Re: 12k leak each time a batch file is run Reply with quote

: We found that if the job type was set asynchronous, you can almost guarantee
: this problem.

: Our workaround has been to use the scheduler to call another instance of
: itself and launch the job. Use run "24x7 /JOB" (see help file).
: Change the job type to synchronous. I think then the problem will go away.

: We had great support from the 24x7 folks in resolving several other issues as
: well. The result is a very powerful and stable system.

: Good luck with it.

: -m-

Thanks for the input. I will surely try it.

Thu Aug 17, 2000 11:26 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6505

Post Re: 12k leak each time a batch file is run Reply with quote

What do you use to track the memory?
I setup a job like yours and could not reproduce it. I used NT permonace Monitor, checked Private bytes, Working bytes and Working Set. All of them stop changing after about 10-15 minutes of work. Check if you have some other processes started by the scheduler, may be they cause this memory leak.

: I disabled loggin in the program options and on the task and set the log
: count in options to 10.

: I restarted the program... no success. The 12k pattern remains.

Thu Aug 17, 2000 11:29 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6505

Post Re: 12k leak each time a batch file is run Reply with quote

He is running "program type" job. It does not matter how the job is setup as async. or as sync.

: We found that if the job type was set asynchronous, you can almost guarantee
: this problem.

: Our workaround has been to use the scheduler to call another instance of
: itself and launch the job. Use run "24x7 /JOB" (see help file).
: Change the job type to synchronous. I think then the problem will go away.

: We had great support from the 24x7 folks in resolving several other issues as
: well. The result is a very powerful and stable system.

: Good luck with it.

: -m-

Thu Aug 17, 2000 11:31 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6505

Post Re: 12k leak each time a batch file is run Reply with quote

Yes, "24x7 /JOB" is anothet option. By the way, I believe that async. script problems were fixed in the last build 2.3.2.

: We found that if the job type was set asynchronous, you can almost guarantee
: this problem.

: Our workaround has been to use the scheduler to call another instance of
: itself and launch the job. Use run "24x7 /JOB" (see help file).
: Change the job type to synchronous. I think then the problem will go away.

: We had great support from the 24x7 folks in resolving several other issues as
: well. The result is a very powerful and stable system.

: Good luck with it.

: -m-

Thu Aug 17, 2000 11:35 am View user's profile Send private message
Luc Cloutier



Joined: 31 Jul 2000
Posts: 10

Post Re: 12k leak each time a batch file is run Reply with quote

: Yes, "24x7 /JOB" is anothet option. By the way, I believe that
: async. script problems were fixed in the last build 2.3.2.

I didn't pinpoint the leak yet using perfmon. All i am sure of at this point is that using task manager, performance, the memory increases by 12k when the dos box pops to run the batch file.

I appreciate all of your feedback.

Val

Thu Aug 17, 2000 11:50 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6505

Post Re: 12k leak each time a batch file is run Reply with quote

What parameter do you check?
In the processes, select 24x7 and check memusage column (after a little while it jumps back and forth around the same number, no matter how many times you ran your batch)

Another thing, why the dos box pops to run the batch file?
For a batch containing just "echo" command, it blinks so quickly that it is not always possible to see it... If you change the task window to run "hidden" or "minimized" you will not see it at all.

: I didn't pinpoint the leak yet using perfmon. All i am sure of at this point
: is that using task manager, performance, the memory increases by 12k when
: the dos box pops to run the batch file.

: I appreciate all of your feedback.

: Val

Thu Aug 17, 2000 12:55 pm View user's profile Send private message
Luc Cloutier



Joined: 31 Jul 2000
Posts: 10

Post Re: 12k leak each time a batch file is run Reply with quote

: What parameter do you check?
: In the processes, select 24x7 and check memusage column (after a little while
: it jumps back and forth around the same number, no matter how many times
: you ran your batch)

: Another thing, why the dos box pops to run the batch file?
: For a batch containing just "echo" command, it blinks so quickly
: that it is not always possible to see it... If you change the task window
: to run "hidden" or "minimized" you will not see it at
: all.

I was checking memory usage in task manager. The reason why i kept the popup even if it only blinks is to check what was moving when it occured. 24/7 doesn't seem to be grabbing more memory and none of the process in there seems to grab any memory but still, my available memory is loosing 12k each time the batch is run. I just got back from lunch and i will try to isolate the leak.

Thanks !

Thu Aug 17, 2000 1:13 pm View user's profile Send private message
Luc Cloutier



Joined: 31 Jul 2000
Posts: 10

Post Re: 12k leak each time a batch file is run Reply with quote

: What parameter do you check?
: In the processes, select 24x7 and check memusage column (after a little while
: it jumps back and forth around the same number, no matter how many times
: you ran your batch)

: Another thing, why the dos box pops to run the batch file?
: For a batch containing just "echo" command, it blinks so quickly
: that it is not always possible to see it... If you change the task window
: to run "hidden" or "minimized" you will not see it at
: all.

Ok, i have been looking around all afternoon and this is what i found. There is a handle leak. When the batch file is called, the number of handles and associated memory grows until the system dies. Problem is... i found no program that pinpoint 24x7 as being the leak. I am sure that if it runs the batch, the handle leak starts. A way to view this is to select in perfmon, object, threads. The count goes up and up. Shouldn't it go down when the batch finished executing ? Also, running the batch from a shortcut does not change the handle count. Hope it helps !

Thu Aug 17, 2000 5:30 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6505

Post Re: 12k leak each time a batch file is run Reply with quote

I send a request for "in depth" investigation to support. I will keep you posted.

: Ok, i have been looking around all afternoon and this is what i found. There
: is a handle leak. When the batch file is called, the number of handles and
: associated memory grows until the system dies. Problem is... i found no
: program that pinpoint 24x7 as being the leak. I am sure that if it runs
: the batch, the handle leak starts. A way to view this is to select in
: perfmon, object, threads. The count goes up and up. Shouldn't it go down
: when the batch finished executing ? Also, running the batch from a
: shortcut does not change the handle count. Hope it helps !

Fri Aug 18, 2000 8:18 am View user's profile Send private message
Luc Cloutier



Joined: 31 Jul 2000
Posts: 10

Post Re: 12k leak each time a batch file is run Reply with quote

: I send a request for "in depth" investigation to support. I will
: keep you posted.

Thanks !

Fri Aug 18, 2000 2:17 pm View user's profile Send private message
Luc Cloutier



Joined: 31 Jul 2000
Posts: 10

Post Re: 12k leak each time a batch file is run Reply with quote

: I send a request for "in depth" investigation to support. I will
: keep you posted.

Thanks !

Fri Aug 18, 2000 2:18 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.