Oracle Creating Defunct Processes
Oracle Creating Defunct Processes
For the past week or two, we have on SOME days had a problem where
we have run out of server processes, stopping new connections to the
databases.
However, over night we restarted the DBs (as we always do) but not the
server. This morning no defunct processes at all.
Later in the morning, a few defuncts sprung up and as the morning has
progressed, this has increased slightly.
They ALL relate to parents processes which are JOB QUEUE process
(ORA_J00...)
We do not know why these are being created (I have checked a few
background jobs but see nothing unusual in the time frames)
Andrey
Since it's a fairly large ERP system the PL/SQL will be large - we
have no visibility of it.
I will now familiarise myself with the metalink note you kindly
provided.
regards
thanks
SELECT
a.ksppinm "Parameter",
a.ksppdesc "Description",
b.ksppstvl "Session Value",
c.ksppstvl "Instance Value"
FROM
x$ksppi a,
x$ksppcv b,
x$ksppsv c
WHERE
a.indx = b.indx
AND
a.indx = c.indx
AND
a.ksppinm = '_job_queue_interval'
but also select from user/dba_jobs (if you logged under job's owner
name or if you know job_id and have dba priviledges) can give a clue
of the value for that parameter
for instance:
oratest> create or replace procedure tj
2 as
3 d date;
4 begin
5 select sysdate into d from dual;
6 end;
7/
Procedure created.
Elapsed: 00:00:00.01
oratest> var n number
oratest>
oratest> exec dbms_job.submit(:n, 'tj;', sysdate, 'sysdate + 2/86400')
Elapsed: 00:00:00.00
oratest> commit;
Commit complete.
Elapsed: 00:00:00.00
Elapsed: 00:00:00.00
oratest> /
Elapsed: 00:00:00.00
Andrey
Thank you once again for your continued support - it's nice to know
someone can help when Google fails!
Thanks
ie if four jobs get submitted at the same time, what effect that has,
second by second.
Thanks
Andrey
There are 3213 jobs from midnight (mind you, DB shut down fro
about 4am to 6am)
I ran the report for the past 7 days, to see a better indication:
Average: 1.907705
Highest: 4044 (!)
The conclusion here is that there are many jobs which run under 2
seconds, but many that do not.
For the 2nd report, there were 33968 jobs. 2,946 were longer than 2
seconds.
goryunov Re: Oracle creating defunct processes against Reply
job queue parent processes
Posts: 130 Posted: Nov 23, 2005 9:51 AM in response to: cubittm
From: Sydney, Australia
Registered: 11/10/04
I have no UNIX box to experiment on right now,
but I think the problem is that job coordinator process loses control
over jobs with long execution and after 16 failures they become
zombie processes. And I think the job_queue_processes parameter
equals to the number of jobs intensifies the situation.
By the way, what is the reason to run the job 1 so often? What does it
do? Is there any java code?
Andrey
The queue runs many different jobs which are supposed to be fast
finishers, such as stock checking, server polling, etc
Do the database generate trace files for job and job coordinator
processes?
Andrey
This morning, there was already a defunct at 0820 when the DB had
been up since 0615. At 0823 another ocurred.
Thanks