<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Troubleshooting Sybase ASE performance issues in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579372#M131344</link>
    <description>&lt;P&gt;Ooops. Thanks for the correction.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jun 2018 16:32:19 GMT</pubDate>
    <dc:creator>sladebe</dc:creator>
    <dc:date>2018-06-05T16:32:19Z</dc:date>
    <item>
      <title>Troubleshooting Sybase ASE performance issues</title>
      <link>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaq-p/579364</link>
      <description>&lt;P&gt;I'm new to Sybase ASE, but I had been a DBA for MS SQL Server in previous jobs. I'm now one of the development managers for SAP Data Services which using Sybase ASE. Note, I'm not the basis person for Data Services. The Data Services servers and corresponding Sybase ASE server are hosted by a PaaS provider.&lt;/P&gt;
  &lt;P&gt;At times, Data Services becomes inaccessible. I can't get to Data Services CMC or the Data Services Management Console.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;The PaaS provider is telling us a bad query is impacting the Sybase ASE server. I've asked them what database and what tables are being queried, but I never get an answer from them. I know I can determine this from MS SQL Server, but is it possible to identify what query is causing the issue in Sybase ASE? If so, what is the process of determining this?&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 20:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaq-p/579364</guid>
      <dc:creator>MelCalucin</dc:creator>
      <dc:date>2018-05-23T20:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting Sybase ASE performance issues</title>
      <link>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579365#M131337</link>
      <description>&lt;P&gt;Hello Mel,&lt;/P&gt;
  &lt;P&gt;From a database perspective, you have to ask the PaaS provider to start by sending you a sybdiag output from ASE. This is a collection of logs and configs that 'may' give you valuable information about the problem, if the latter writes an error in the ASE log. The sybdiag will also be helpful to check whether ASE needs tuning. Without the provider giving you details about the 'bad query', it'll be difficult to troubleshoot.&lt;/P&gt;
  &lt;P&gt;The ASE log is the first thing to check. If no errors are seen in the log at the time of the problem, then you need them to send you evidence of the bad query. That will allow you to check the related table.&lt;/P&gt;
  &lt;P&gt;Here is how to get a sybdiag :&lt;/P&gt;
  &lt;P&gt;1. Log in as sybase user. On Windows systems, make sure you open the cmd prompt in administrator mode &lt;/P&gt;
  &lt;P&gt;2. Execute the following on the command line &lt;/P&gt;
  &lt;P&gt; sybdiag -S&amp;lt;servername&amp;gt; -Usa -T asecore, keyfile, aseadd, osdata &lt;/P&gt;
  &lt;P&gt;For more details see : &lt;A href="https://launchpad.support.sap.com/#/notes/2041802" target="test_blank"&gt;https://launchpad.support.sap.com/#/notes/2041802&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Hope this helps&lt;/P&gt;
  &lt;P&gt;Mehrab&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 09:16:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579365#M131337</guid>
      <dc:creator>M-B</dc:creator>
      <dc:date>2018-05-24T09:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting Sybase ASE performance issues</title>
      <link>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579366#M131338</link>
      <description>&lt;P&gt;Welcome to SAP/Sybase ASE world !&lt;/P&gt;
  &lt;P&gt;MSSQL Server inherited a lot from former SQLServer now know as ASE. So the grounds should be familiar.&lt;/P&gt;
  &lt;P&gt;ASE has a few tools to help DBAs &lt;/P&gt;
  &lt;P&gt;- sysmon for overall server health&lt;/P&gt;
  &lt;P&gt;- MDA tables to narrow down to trouble makers.&lt;/P&gt;
  &lt;P&gt;- large number of out the box system procedures to help&lt;/P&gt;
  &lt;P&gt;- usual tools to know health of with server errorlog, sybdiag for health of indexes, tables, dbcc, etc&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;So start familiarizing with those, especially the MDA tables.&lt;/P&gt;
  &lt;P&gt;For a price, there are also third party tools like DPA from Solarwinds, Surveillance from Bradmark, etc.to help you.&lt;/P&gt;
  &lt;P&gt;HTH and Good luck&lt;/P&gt;
  &lt;P&gt;Avinash&lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 14:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579366#M131338</guid>
      <dc:creator>former_member89972</dc:creator>
      <dc:date>2018-05-25T14:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting Sybase ASE performance issues</title>
      <link>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579367#M131339</link>
      <description>&lt;P&gt;Avinash,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks! This is exactly what I'm looking for.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Mel&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 18:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579367#M131339</guid>
      <dc:creator>MelCalucin</dc:creator>
      <dc:date>2018-05-25T18:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting Sybase ASE performance issues</title>
      <link>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579368#M131340</link>
      <description>&lt;P&gt;One easy thing to check is to see if a resource is getting used up. Use: &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;sp_monitorconfig "all"&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;If you're looking for a bad query, you can use mon tables, but there are a lot of them. Here's a basic query I use for live monitoring (ie. for currently running queries):&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;set nocount on
go
set flushmessage on
go
select * into #old from monProcessActivity
waitfor delay "00:00:05"
select * into #new from monProcessActivity
while(1=1)
begin
  select new.SPID, login=suser_name(new.ServerUserID),
         CPUTime=new.CPUTime-old.CPUTime,
         PhysicalReads=new.PhysicalReads-old.PhysicalReads, LogicalReads=new.LogicalReads-old.LogicalReads,
         PhysicalWrites=new.PhysicalWrites-old.PhysicalWrites, new.LocksHeld
         from #old old, #new new
         where old.SPID=new.SPID and old.KPID=new.KPID
         and ( new.CPUTime-old.CPUTime&amp;gt;0 or new.PhysicalReads-old.PhysicalReads&amp;gt;0 or
               new.LogicalReads-old.LogicalReads&amp;gt;0 or new.PhysicalWrites-old.PhysicalWrites&amp;gt;0 )
         order by new.CPUTime-old.CPUTime desc

  truncate table #old
  insert into #old select * from #new
  truncate table #new
  waitfor delay "00:00:05"
  -- Whoops, missed this line.  Added in a later edit:
  insert into #new select * from monProcessActivity
end
go
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;You can also use monProcessSQLText to see what SQL is running for a given spid (make sure to sort by SPID,BatchID, LineNumber SequenceInLine)&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;If you want to look at historical data, it's a little more complicated. You can use monCachedProcedures to see accumulated stats for cached procedures (stats go away if the stored proc gets pushed out of cache. There can be multiple cached copies of the same stored proc). There's also monCachedStatement, but you have to have the statement cache enabled for this to work. Cached statements can sometimes have "needs to be recompiled" type side effects (cached statement scans when it shouldn't)&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 20:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579368#M131340</guid>
      <dc:creator>sladebe</dc:creator>
      <dc:date>2018-05-30T20:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting Sybase ASE performance issues</title>
      <link>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579369#M131341</link>
      <description>&lt;P&gt;This is awesome!&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I'll give this a try.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;-Mel&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 15:13:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579369#M131341</guid>
      <dc:creator>MelCalucin</dc:creator>
      <dc:date>2018-06-05T15:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting Sybase ASE performance issues</title>
      <link>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579370#M131342</link>
      <description>&lt;P&gt;Re: sysmon for overall server health&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;One thing to watch for in sysmon: in the "Kernel Utilization" section, the "I/O Busy" percentages can be erroneously high when running ASE in the new threaded mode. From Knowledge Base Article 1863319:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;* The I/O Busy count does not have the same meaning in threaded mode as it does in process mode. The reason being is that engines are not performing I/Os in threaded mode. Other designated threads (not engines) are performing I/Os in threaded mode.  &lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;* Currently, when in threaded mode, engines are counted as "I/O Busy" if ASE has any I/O outstanding and the engine is idle. If there is one I/O outstanding and three engines sitting idle, each engine is counted as "I/O Busy". &lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;* The issue has been identified and logged under SAP CR 757246. Its description reads, "sp_sysmon IO Busy is over weighted in threaded kernel mode.".&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;* Resolution - There is currently no target SAP ASE Service Pack scheduled for this issue (SAP CR 757246). It is being reviewed by our Product Group. Please mark this KBA as a Favorite to be automatically notified when the CR is fixed.&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jun 2018 15:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579370#M131342</guid>
      <dc:creator>sladebe</dc:creator>
      <dc:date>2018-06-05T15:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting Sybase ASE performance issues</title>
      <link>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579371#M131343</link>
      <description>&lt;P&gt;Mel You have to add : &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;"insert into #new select * from monProcessActivity" &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; after &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; truncate table #new &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;inside the while loop to make the code Ben work !&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;You may also want to do "set flushmessage on" to get the outputs out quickly.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;HTH Avinash&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 16:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579371#M131343</guid>
      <dc:creator>former_member89972</dc:creator>
      <dc:date>2018-06-05T16:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting Sybase ASE performance issues</title>
      <link>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579372#M131344</link>
      <description>&lt;P&gt;Ooops. Thanks for the correction.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 16:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/troubleshooting-sybase-ase-performance-issues/qaa-p/579372#M131344</guid>
      <dc:creator>sladebe</dc:creator>
      <dc:date>2018-06-05T16:32:19Z</dc:date>
    </item>
  </channel>
</rss>

