SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
24x7 Task grows larger over the week

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
24x7 Task grows larger over the week
Author Message
Matthew



Joined: 17 Jan 2006
Posts: 6

Post 24x7 Task grows larger over the week Reply with quote

Wondering if you can help.

We have 24x7 running. Our server is rebooted once per weak.

When 24x7 first loads it is about 13MB. Through the week this grows to ~250MB.

There is a job which runs once every minute which checks a database and fires a second job if required. It would only fire a second job 1-6 times per day. Is there any rerason for this increasing memory usage...are there anythings we can put into place to stop it? Anything to look for in the job running once a minute which wouold cause this memory increase?

Let me know if you require more information.

Regards

Matt

Tue Jan 17, 2006 7:50 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7974

Post Re: 24x7 Task grows larger over the week Reply with quote

Sounds like a memory leak caused by the database connection. The solution is simple: Set the database job to run detached.

After that if you have time you can make it even more efficient by redesigning the job. Instead of having a job connecting/disconnecting to db every minute change it to a job that starts one connects to db and then every minute runs the same query never leaving the loop.

Example:

DatabaseConnect "my profile"
LoopWhile True, END_LOOP
DatabaseRetrieve ...
If .. check results
Wait 60
END_LOOP:

: Wondering if you can help.

: We have 24x7 running. Our server is rebooted once per weak.

: When 24x7 first loads it is about 13MB. Through the week this grows to
: ~250MB.

: There is a job which runs once every minute which checks a database and fires
: a second job if required. It would only fire a second job 1-6 times per
: day. Is there any rerason for this increasing memory usage...are there
: anythings we can put into place to stop it? Anything to look for in the
: job running once a minute which wouold cause this memory increase?

: Let me know if you require more information.

: Regards

: Matt

Tue Jan 17, 2006 10:55 pm View user's profile Send private message
Matthew



Joined: 17 Jan 2006
Posts: 6

Post Re: 24x7 Task grows larger over the week Reply with quote

Thanks Will try it out and let you know.

: Sounds like a memory leak caused by the database connection. The solution is
: simple: Set the database job to run detached.

: After that if you have time you can make it even more efficient by
: redesigning the job. Instead of having a job connecting/disconnecting to
: db every minute change it to a job that starts one connects to db and then
: every minute runs the same query never leaving the loop.

: Example: DatabaseConnect "my profile"
: LoopWhile True, END_LOOP
: DatabaseRetrieve ...
: If .. check results
: Wait 60
: END_LOOP:


Tue Jan 24, 2006 8:49 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
Page 1 of 1

 
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.