Return-Path: <root@fatcity.cts.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h0KIulc16930
 for <oracle-l@orafaq.net>; Mon, 20 Jan 2003 12:56:47 -0600
X-ClientAddr: 209.68.248.164
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h0KIulp16924
 for <oracle-l@orafaq.net>; Mon, 20 Jan 2003 12:56:47 -0600
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id HAA16649;
 Mon, 20 Jan 2003 07:38:12 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 005348E1; Mon, 20 Jan 2003 06:55:46 -0800
Message-ID: <F001.005348E1.20030120065546@fatcity.com>
Date: Mon, 20 Jan 2003 06:55:46 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Tim Gorman" <Tim@SageLogix.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Tim Gorman" <Tim@SageLogix.com>
Subject: Re: 100% CPU utilization, urgent
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative;	boundary="----=_NextPart_000_0BA5_01C2C058.F0B62880"
------=_NextPart_000_0BA5_01C2C058.F0B62880
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

100% CPU utilization, urgentIt would be more appropriate to determine =
whether SMON is consuming all the CPU first, before sending someone on =
some irrelevant wild-goose chase for "fragmented tablespaces".  More =
effective to first look for basic facts than to go off chasing after any =
theories at this point;  you might be right, but if you're wrong than a =
lot of time has been wasted and confusion sown...

---

Since the symptom is CPU usage, then we should look at some of the =
information about CPU usage that Oracle stores internally.  A quick and =
dirty starting point would be to query V$SESSTAT for the STATISTIC# =
related to the statistic "CPU used by this session", which you can find =
in V$STATNAME:
  SELECT   S.SID, S.PROGRAM, NVL(S.USERNAME, 'SYS'), S.TYPE, T.VALUE
  FROM     V$SESSION S, V$SESSTAT T, V$STATNAME N
  WHERE    N.NAME =3D 'CPU used by this session'
  AND      T.STATISTIC# =3D N.STATISTIC#
  AND      S.SID =3D T.SID
  ORDER    BY T.VALUE DESC;
Feel free to post the first 5-10 lines of output from this query back as =
a reply to the list, if you'd like us to help interpret it?

---

The very best approach is to take a STATSPACK level-5 (default level) =
reading during the period of 100% utilization and submit the resulting =
"sp_*.lst" file to http://www.oraperf.com for further analysis.  If SMON =
is the culprit, then you'll see SQL statements consuming tons of time =
updating the FET$ and UET$ tables in the SYS schema.  Otherwise, follow =
the hyperlinks to the "big" percentages to find out what is consuming =
most of the resources, especially CPU...

If you don't have STATSPACK installed, the next best thing would be to =
take a BSTAT/ESTAT report over the same time period when CPU is pegged =
at 100% and (again) submit that to www.oraperf.com to get the full YAPP =
report.  However, BSTAT/ESTAT will not provide information about SQL =
statements, so you'll need to find that separately.  Best to just =
install STATSPACK;  there is plenty of information on MetaLink...

---

Also, Oracle is supposed to supply some utility called "Performance =
Monitor for Windows" which is supposed to be helpful on that platform.  =
I searched MetaLink briefly but couldn't find explanatory information;  =
perhaps the standard doc-set on "otn.oracle.com" would have something?

Hope this helps...
  ----- Original Message -----=20
  From: Nikunj Gupta=20
  To: Multiple recipients of list ORACLE-L=20
  Sent: Monday, January 20, 2003 12:38 AM
  Subject: Re: 100% CPU utilization, urgent


  Check for fragmented tablespaces... There are chances that SMON is =
active and coalescing tablespaces.=20

    ----- Original Message -----=20
    From: Naveen Nahata=20
    To: Multiple recipients of list ORACLE-L=20
    Sent: Sunday, January 19, 2003 10:48 PM
    Subject: RE: 100% CPU utilization, urgent


    Hussain,

    We have a similar environment and we also hit 100%CPU utilization at =
times. But we never face problem because of tht. the DB keeps working =
fine during 100% CPU utilization also.

    Are you having a problem of logging into the DB during tht time?

    Regards
    Naveen
      -----Original Message-----
      From: Hussain Ahmed Qadri [mailto:hussain@skm.org.pk]
      Sent: Monday, January 20, 2003 11:14 AM
      To: Multiple recipients of list ORACLE-L
      Subject: 100% CPU utilization, urgent


      HI all=20
      We have a consistent problem of CPU utilization 100%. We have had =
this problem since Saturday, but it automatically subsided, I mean went =
back to normal after a few hours, and remained normal on Sunday as well. =
But its back to 100% since morning, that is when the load on the server =
has gone up again to 100% and over all work is non-existent.=20

      Our machine is Compaq Proliant ML350, 900 MB ram, 933 single =
Processor, Database size of roughly 5 GB. WINNT4.0, Oracle 8.1.7.

      I have checked the temporary tablespaces, they are normal.=20
      We have a 24x7 environment, a hospital, so please can you suggest =
the areas to look in to, its really very urgent.=20

      Regards,=20

      Hussain=20


    DISCLAIMER:
    This message (including attachment if any) is confidential and may =
be privileged. Before opening attachments please check them for viruses =
and defects. MindTree Consulting Private Limited (MindTree) will not be =
responsible for any viruses or defects or any forwarded attachments =
emanating either from within MindTree or outside. If you have received =
this message by mistake please notify the sender by return e-mail and =
delete this message from your system. Any unauthorized use or =
dissemination of this message in whole or in part is strictly =
prohibited. Please note that e-mails are susceptible to change and =
MindTree shall not be liable for any improper, untimely or incomplete =
transmission.=20


------=_NextPart_000_0BA5_01C2C058.F0B62880
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>100% CPU utilization, urgent</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>It would be more appropriate to =
determine whether=20
SMON is consuming all the CPU first, before sending someone on&nbsp;some =

irrelevant&nbsp;wild-goose chase for "fragmented =
tablespaces".&nbsp;&nbsp;More=20
effective to first look for basic facts than to go off chasing after any =

theories&nbsp;at this point;&nbsp; you might be right, but if you're =
wrong than=20
a lot of time has been wasted and confusion sown...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>---</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Since the symptom is CPU usage, =
then&nbsp;we should=20
look at some of the information about CPU usage that Oracle stores=20
internally.&nbsp; A&nbsp;quick and dirty starting point would be to =
query=20
V$SESSTAT for the STATISTIC# related to the statistic "CPU used by this=20
session", which you can find in V$STATNAME:</FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV><FONT face=3DCourier size=3D2>SELECT&nbsp;&nbsp; S.SID, =
S.PROGRAM,=20
  NVL(S.USERNAME, 'SYS'), S.TYPE, =
T.VALUE<BR>FROM&nbsp;&nbsp;&nbsp;&nbsp;=20
  V$SESSION S, V$SESSTAT T, V$STATNAME N<BR>WHERE&nbsp;&nbsp;&nbsp; =
N.NAME =3D=20
  'CPU used by this session'<BR>AND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
T.STATISTIC# =3D=20
  N.STATISTIC#<BR>AND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S.SID =3D=20
  T.SID<BR>ORDER&nbsp;&nbsp;&nbsp; BY T.VALUE =
DESC;</FONT></DIV></BLOCKQUOTE>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Feel free to post the first 5-10 lines =
of output=20
from this query back as a reply to the list, if you'd like us to help =
interpret=20
it?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>---</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The very best approach is to take a =
STATSPACK=20
level-5 (default level) reading during the period of 100% utilization =
and submit=20
the resulting "sp_*.lst" file to <A=20
href=3D"http://www.oraperf.com">http://www.oraperf.com</A> for further=20
analysis.&nbsp; If SMON is the culprit, then you'll see SQL statements =
consuming=20
tons of time updating the FET$ and UET$ tables in the SYS schema.&nbsp;=20
Otherwise, follow the hyperlinks to the "big" percentages to find out =
what is=20
consuming most of the resources, especially CPU...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If you don't have STATSPACK installed, =
the next=20
best thing would be to take a BSTAT/ESTAT report over the same time =
period when=20
CPU is pegged at 100% and (again) submit that to <A=20
href=3D"http://www.oraperf.com">www.oraperf.com</A> to get the full YAPP =

report.&nbsp; However, BSTAT/ESTAT will not provide information about =
SQL=20
statements, so you'll need to find that separately.&nbsp; Best to just =
install=20
STATSPACK;&nbsp; there is plenty of information on =
MetaLink...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>---</DIV>
<DIV>&nbsp;</DIV>
<DIV>Also, Oracle is supposed to supply some utility called "Performance =
Monitor=20
for Windows" which is supposed to be helpful on that platform.&nbsp; I =
searched=20
MetaLink briefly but couldn't find explanatory information;&nbsp; =
perhaps the=20
standard doc-set on "otn.oracle.com" would have something?</DIV>
<DIV>&nbsp;</DIV>Hope this helps...</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dgood_dba@hotmail.com =
href=3D"mailto:good_dba@hotmail.com">Nikunj=20
  Gupta</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3DORACLE-L@fatcity.com=20
  href=3D"mailto:ORACLE-L@fatcity.com">Multiple recipients of list =
ORACLE-L</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, January 20, 2003 =
12:38=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: 100% CPU =
utilization,=20
  urgent</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Check for fragmented tablespaces... =
There are=20
  chances that SMON is active and coalescing tablespaces. </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV=20
    style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
    <A title=3Dnaveen_nahata@mindtree.com=20
    href=3D"mailto:naveen_nahata@mindtree.com">Naveen Nahata</A> </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3DORACLE-L@fatcity.com=20
    href=3D"mailto:ORACLE-L@fatcity.com">Multiple recipients of list =
ORACLE-L</A>=20
    </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Sunday, January 19, =
2003 10:48=20
    PM</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: 100% CPU =
utilization,=20
    urgent</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
    class=3D246484506-20012003>Hussain,</SPAN></FONT></DIV>
    <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
    class=3D246484506-20012003></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D246484506-20012003>We=20
    have a similar environment and we also hit 100%CPU utilization at =
times. But=20
    we never face problem because of tht. the DB keeps working fine =
during 100%=20
    CPU utilization also.</SPAN></FONT></DIV>
    <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
    class=3D246484506-20012003></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
    class=3D246484506-20012003>Are you having a problem of logging into =
the DB=20
    during tht time?</SPAN></FONT></DIV>
    <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
    class=3D246484506-20012003></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
    class=3D246484506-20012003>Regards</SPAN></FONT></DIV>
    <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
    class=3D246484506-20012003>Naveen</SPAN></FONT></DIV>
    <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
      <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
      size=3D2>-----Original Message-----<BR><B>From:</B> Hussain Ahmed =
Qadri=20
      [mailto:hussain@skm.org.pk]<BR><B>Sent:</B> Monday, January 20, =
2003 11:14=20
      AM<BR><B>To:</B> Multiple recipients of list =
ORACLE-L<BR><B>Subject:</B>=20
      100% CPU utilization, urgent<BR><BR></FONT></DIV>
      <P><FONT size=3D2>HI all</FONT> <BR><FONT size=3D2>We have a =
consistent=20
      problem of CPU utilization 100%. We have had this problem since =
Saturday,=20
      but it automatically subsided, I mean went back to normal after a =
few=20
      hours, and remained normal on Sunday as well. But its back to 100% =
since=20
      morning, that is when the load on the server has gone up again to =
100% and=20
      over all work is non-existent. </FONT></P>
      <P><FONT size=3D2>Our machine is Compaq Proliant ML350, 900 MB =
ram, 933=20
      single Processor, Database size of roughly 5 GB. WINNT4.0, Oracle=20
      8.1.7.</FONT></P>
      <P><FONT size=3D2>I have checked the temporary tablespaces, they =
are=20
      normal.</FONT> <BR><FONT size=3D2>We have a 24x7 environment, a =
hospital, so=20
      please can you suggest the areas to look in to, its really very=20
      urgent.</FONT> </P>
      <P><FONT size=3D2>Regards,</FONT> </P>
      <P><FONT size=3D2>Hussain</FONT> </P></BLOCKQUOTE>
    <P></P>
    <P>DISCLAIMER:<BR>This message (including attachment if any) is =
confidential=20
    and may be privileged. Before opening attachments please check them =
for=20
    viruses and defects. MindTree Consulting Private Limited (MindTree) =
will not=20
    be responsible for any viruses or defects or any forwarded =
attachments=20
    emanating either from within MindTree or outside. If you have =
received this=20
    message by mistake please notify the sender by return e-mail and =
delete this=20
    message from your system. Any unauthorized use or dissemination of =
this=20
    message in whole or in part is strictly prohibited. Please note that =
e-mails=20
    are susceptible to change and MindTree shall not be liable for any =
improper,=20
    untimely or incomplete transmission.=20
</P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0BA5_01C2C058.F0B62880--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Tim Gorman
  INET: Tim@SageLogix.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

