Thanks David. 

-----Original Message-----
From: David E Jones [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 18, 2008 11:51 AM
To: [email protected]
Subject: Re: Stalled jobs


Right now the service engine will look at running jobs on startup and do
some resetting to put them back into persisted job queue.

For long-term scheduled jobs it is important to watch them around these
events, and restart them manually if needed (which can be done from
WebTools unless you have an older version). When manually killing them
it's good to look at the thread pool (in webtools too) of all servers
running against the database to make sure it isn't running.  
For some services it won't do any harm to have multiple copies running,
but will affect performance and server load.

-David


On Jan 18, 2008, at 10:45 AM, Mike Baschky wrote:

> Thanks Vince. My guess is my problem is in line with your second point

> - server stopped while the jobs are running. In this case did you 
> delete the jobs from the JobSandbox entity and manually re-schedule?
>
> -----Original Message-----
> From: Vince M. Clark [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 18, 2008 11:17 AM
> To: [email protected]
> Subject: Re: Stalled jobs
>
> Mike
>
> This won't give you an answer, but maybe some helpful insight. I have 
> not had a problem with standard jobs but have had a problem with jobs 
> we added to do synchronization with POS terminals. I've seen two 
> situations where the system seems to leave a job in a "running" status

> and not clear it out and reschedule on a restart.
> 1) Server encounters a heap space (out of memory) error. - Solved by 
> increasing max memory in startup.sh
> 2) Server (or POS client in our case) is stopped while a job is 
> running.
> - Haven't implemented a solution but we are planning on a "graceful 
> shutdown" on our POS terminals to make sure all entity sync jobs are 
> finished before shutting down.
>
>
> ----- Original Message -----
> From: "Mike Baschky" <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Friday, January 18, 2008 10:09:51 AM (GMT-0700) America/Denver
> Subject: Stalled jobs
>
> Hey All,
> I've got an odd issue I'm trying figure out. My service engine does
> not appear to be running jobs anymore. It appears to be just sitting
> there doing nothing (even for the standard ofbiz jobs like
> purgeOldJobs). When I look into the Jobsandbox table I see several  
> jobs
> in running status but nothing is happening. These jobs are a several
> days old so I'm guessing they are not really running. I've shut the
> system down an restarted but still nothing seems to happen. I'm not
> really seeing any error messages that help me out here. Thinking that
> maybe I've hit some sort of job limit I banked out the statusId on
> several jobs and then cancelled them in webtools - again no luck on
> kicking off the remaining jobs. One other item I noted in the thread
> list is there are 5 sleeping default-invoker-thread-xxx threads at the
> top of the page but I only see of these threads in the Java threads
> listed below (not sure if this means anything).
>
> I'm not sure where to look next. Can anyone point me in the right
> direction on how to track this issue down. Thanks.
>
> -Mike

Reply via email to