SQL server 2014 is very slow

  • It sounds like your machine is completely underpowered. You need memory. I/O implies disk, but it includes reads and writes to memory plus reads and writes to disk. If you don't have enough memory, it has to write excess to disk temporarily and then read from disk later, again, adding lots of overhead. You're on a machine that just barely crosses the line for the minimum viable size. Depending on the size of your database, the size and number of transactions, you're just simply exceeding what that minimum possible machine is capable of.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • pranabpal - Friday, June 2, 2017 4:54 AM

    GilaMonster - Thursday, June 1, 2017 1:27 PM

    I give up.

    Firstly, those are all also useless waits, so get Glenn Berry's *latest* script, not one that's probably from 2005 looking at the excluded waits.

    Second. I DO NOT WANT the totals! 

    then calculate the *difference* in wait stats between two samples.


    And then post the  ones with the highest *difference* between the two time periods. Those totals are still useless.

    GilaMonster - Thursday, June 1, 2017 1:27 PMI give up.

    Firstly, those are all also useless waits, so get Glenn Berry's *latest* script, not one that's probably from 2005 looking at the excluded waits.

    Second. I DO NOT WANT the totals! 
    then calculate the *difference* in wait stats between two samples.
    And then post the ones with the highest *difference* between the two time periods. Those totals are still useless.

    Difference of these wait total are :
    wait Type Waits in sec

    DIRTY_PAGE_POLL50423.84
    HADR_FILESTREAM_IOMGR_IOCOMPLETION50424.11
    QDS_SHUTDOWN_QUEUE50460.93

    As you have mentioned these useless waits - so there are only ASYNC_NETWORK_IO waits in the database which exceeds 6 mins and others are with 1.5 mins like BACKUP IO. Tell what to do to over come these wait issue,

    Thank a lot.

     ASYNC_NETWORK_IO waits in the database which exceeds 24 hrs ie difference of two days  and BACKUP IO waits varies for 1~1.5min. So what needs to be done in the sql server?

  • in waits: ASYNC_NETWORK_IO waits in the database which exceeds 24 hrs ie difference of two days and BACKUP IO waits varies for 1~1.5min(ie difference). So what needs to be done in the sql server ?  is it causing slowness in sql database
    Server has 6GB ram and showing 25% usage using ESX and 5% CPU usage

  • Grant Fritchey - Friday, June 2, 2017 6:01 AM

    It sounds like your machine is completely underpowered. You need memory. I/O implies disk, but it includes reads and writes to memory plus reads and writes to disk. If you don't have enough memory, it has to write excess to disk temporarily and then read from disk later, again, adding lots of overhead. You're on a machine that just barely crosses the line for the minimum viable size. Depending on the size of your database, the size and number of transactions, you're just simply exceeding what that minimum possible machine is capable of.

    Can you tell me based on what parameter you are recommending the solution. I will grateful if you can provide me the parameter name and their values for taking such  decision.

  • pranabpal - Monday, June 5, 2017 3:06 AM

    Grant Fritchey - Friday, June 2, 2017 6:01 AM

    It sounds like your machine is completely underpowered. You need memory. I/O implies disk, but it includes reads and writes to memory plus reads and writes to disk. If you don't have enough memory, it has to write excess to disk temporarily and then read from disk later, again, adding lots of overhead. You're on a machine that just barely crosses the line for the minimum viable size. Depending on the size of your database, the size and number of transactions, you're just simply exceeding what that minimum possible machine is capable of.

    Can you tell me based on what parameter you are recommending the solution. I will grateful if you can provide me the parameter name and their values for taking such  decision.

    6 GB of memory is not a lot for SQL Server, and you also indicated that the max memory for your server is 4 GB.  From looking at your first screenschot, your SLQ memory is almost completely utilized.  This means that pretty much any query that is pulling in more than 500 MB of data (data here is not just the rows you are asking for, but back end stuff like query plan) will need to be dumped to disk.  This will create a lot of I/O which is what you are seeing.  The backup I/O waits could be a lot of different things, but likley related to this too.

    Give your box more memory and you will see a performance increase.

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • bmg002 - Monday, June 5, 2017 9:02 AM

    pranabpal - Monday, June 5, 2017 3:06 AM

    Grant Fritchey - Friday, June 2, 2017 6:01 AM

    It sounds like your machine is completely underpowered. You need memory. I/O implies disk, but it includes reads and writes to memory plus reads and writes to disk. If you don't have enough memory, it has to write excess to disk temporarily and then read from disk later, again, adding lots of overhead. You're on a machine that just barely crosses the line for the minimum viable size. Depending on the size of your database, the size and number of transactions, you're just simply exceeding what that minimum possible machine is capable of.

    Can you tell me based on what parameter you are recommending the solution. I will grateful if you can provide me the parameter name and their values for taking such  decision.

    6 GB of memory is not a lot for SQL Server, and you also indicated that the max memory for your server is 4 GB.  From looking at your first screenschot, your SLQ memory is almost completely utilized.  This means that pretty much any query that is pulling in more than 500 MB of data (data here is not just the rows you are asking for, but back end stuff like query plan) will need to be dumped to disk.  This will create a lot of I/O which is what you are seeing.  The backup I/O waits could be a lot of different things, but likley related to this too.

    Give your box more memory and you will see a performance increase.

    I am not able to convince my infrastructure team that memory usage is high and ie why the disk usage is high. %idle time is 90%. Disk is not used always. So they do not like to add additional RAM.

    Can anyone time tell me what could be other ways to resolve the performance issue?

  • pranabpal - Tuesday, June 6, 2017 8:21 AM

    bmg002 - Monday, June 5, 2017 9:02 AM

    pranabpal - Monday, June 5, 2017 3:06 AM

    Grant Fritchey - Friday, June 2, 2017 6:01 AM

    It sounds like your machine is completely underpowered. You need memory. I/O implies disk, but it includes reads and writes to memory plus reads and writes to disk. If you don't have enough memory, it has to write excess to disk temporarily and then read from disk later, again, adding lots of overhead. You're on a machine that just barely crosses the line for the minimum viable size. Depending on the size of your database, the size and number of transactions, you're just simply exceeding what that minimum possible machine is capable of.

    Can you tell me based on what parameter you are recommending the solution. I will grateful if you can provide me the parameter name and their values for taking such  decision.

    6 GB of memory is not a lot for SQL Server, and you also indicated that the max memory for your server is 4 GB.  From looking at your first screenschot, your SLQ memory is almost completely utilized.  This means that pretty much any query that is pulling in more than 500 MB of data (data here is not just the rows you are asking for, but back end stuff like query plan) will need to be dumped to disk.  This will create a lot of I/O which is what you are seeing.  The backup I/O waits could be a lot of different things, but likley related to this too.

    Give your box more memory and you will see a performance increase.

    I am not able to convince my infrastructure team that memory usage is high and ie why the disk usage is high. %idle time is 90%. Disk is not used always. So they do not like to add additional RAM.

    Can anyone time tell me what could be other ways to resolve the performance issue?

    Get rid of the infrastructure team, if they cannot help you in this instance then they are insufficiently well informed to hold the position. Invest the money saved in hardware and a holiday for yourself.

    “Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

    For fast, accurate and documented assistance in answering your questions, please read this article.
    Understanding and using APPLY, (I) and (II) Paul White
    Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden

  • pranabpal - Tuesday, June 6, 2017 8:21 AM

    bmg002 - Monday, June 5, 2017 9:02 AM

    pranabpal - Monday, June 5, 2017 3:06 AM

    Grant Fritchey - Friday, June 2, 2017 6:01 AM

    It sounds like your machine is completely underpowered. You need memory. I/O implies disk, but it includes reads and writes to memory plus reads and writes to disk. If you don't have enough memory, it has to write excess to disk temporarily and then read from disk later, again, adding lots of overhead. You're on a machine that just barely crosses the line for the minimum viable size. Depending on the size of your database, the size and number of transactions, you're just simply exceeding what that minimum possible machine is capable of.

    Can you tell me based on what parameter you are recommending the solution. I will grateful if you can provide me the parameter name and their values for taking such  decision.

    6 GB of memory is not a lot for SQL Server, and you also indicated that the max memory for your server is 4 GB.  From looking at your first screenschot, your SLQ memory is almost completely utilized.  This means that pretty much any query that is pulling in more than 500 MB of data (data here is not just the rows you are asking for, but back end stuff like query plan) will need to be dumped to disk.  This will create a lot of I/O which is what you are seeing.  The backup I/O waits could be a lot of different things, but likley related to this too.

    Give your box more memory and you will see a performance increase.

    I am not able to convince my infrastructure team that memory usage is high and ie why the disk usage is high. %idle time is 90%. Disk is not used always. So they do not like to add additional RAM.

    Can anyone time tell me what could be other ways to resolve the performance issue?

    Start by showing them this thread, I suppose.  Then get your manager to persuade their manager to give you what you want.  Frankly, if they're going to make it so difficult for you to get something as trifling as 16GB of RAM, what's going to happen when you need something significant?  Could well be time to look for a new job.

    John

  • Just send them the memory requirements for SQL Server.

    From the MS website:
    All other editions: At least 4 GB and should be increased as database size increases to ensure optimal performance.
    (https://docs.microsoft.com/en-us/sql/sql-server/install/hardware-and-software-requirements-for-installing-sql-server)

    Presuming this is a VM, getting them to give you more RAM for a quick demo should be quick and easy on their part.  If it is a physical machine, then it is a little bit more work and money, but even then I'd try to fight for it.  Get a long running query and execute it to show them how long it takes to complete.  Get them to throw more memory at the machine (and change the max memory for the SQL instance to use the newly added memory, but make no other changes) and re-run the query.
    Even if you can only get the extra memory short term for that demo, you have then proved that memory will help performance.

    Otherwise, I'd recommend going above the infrastructure team.  Tell them and their supervisor and your supervisor that "As the DBA, your recommendation and the recommendation from the SQL community is to get more memory in the machine.  We are at the minimum recommended memory for SQL Server and performance is only going to degrade as the database grows."

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • pranabpal - Tuesday, June 6, 2017 8:21 AM

    bmg002 - Monday, June 5, 2017 9:02 AM

    pranabpal - Monday, June 5, 2017 3:06 AM

    Grant Fritchey - Friday, June 2, 2017 6:01 AM

    It sounds like your machine is completely underpowered. You need memory. I/O implies disk, but it includes reads and writes to memory plus reads and writes to disk. If you don't have enough memory, it has to write excess to disk temporarily and then read from disk later, again, adding lots of overhead. You're on a machine that just barely crosses the line for the minimum viable size. Depending on the size of your database, the size and number of transactions, you're just simply exceeding what that minimum possible machine is capable of.

    Can you tell me based on what parameter you are recommending the solution. I will grateful if you can provide me the parameter name and their values for taking such  decision.

    6 GB of memory is not a lot for SQL Server, and you also indicated that the max memory for your server is 4 GB.  From looking at your first screenschot, your SLQ memory is almost completely utilized.  This means that pretty much any query that is pulling in more than 500 MB of data (data here is not just the rows you are asking for, but back end stuff like query plan) will need to be dumped to disk.  This will create a lot of I/O which is what you are seeing.  The backup I/O waits could be a lot of different things, but likley related to this too.

    Give your box more memory and you will see a performance increase.

    I am not able to convince my infrastructure team that memory usage is high and ie why the disk usage is high. %idle time is 90%. Disk is not used always. So they do not like to add additional RAM.

    Can anyone time tell me what could be other ways to resolve the performance issue?

    It's unlikely that you will reveal a "go faster" switch by checking wait states on a server throttled by too little RAM, but there are perhaps some improvements available to you. Have you examined the slowest queries yet? Someone has already mentioned Glenn Berry's scripts. A bunch of them are designed to show you the slowest and most expensive queries. Have a look, judge for yourself if there's any room for improvement. Also, check out indexing. Refactoring your indexes is an opportunity to reduce the memory footprint of your data.

    “Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

    For fast, accurate and documented assistance in answering your questions, please read this article.
    Understanding and using APPLY, (I) and (II) Paul White
    Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden

  • ChrisM@Work - Tuesday, June 6, 2017 9:15 AM

    pranabpal - Tuesday, June 6, 2017 8:21 AM

    bmg002 - Monday, June 5, 2017 9:02 AM

    pranabpal - Monday, June 5, 2017 3:06 AM

    Grant Fritchey - Friday, June 2, 2017 6:01 AM

    It sounds like your machine is completely underpowered. You need memory. I/O implies disk, but it includes reads and writes to memory plus reads and writes to disk. If you don't have enough memory, it has to write excess to disk temporarily and then read from disk later, again, adding lots of overhead. You're on a machine that just barely crosses the line for the minimum viable size. Depending on the size of your database, the size and number of transactions, you're just simply exceeding what that minimum possible machine is capable of.

    Can you tell me based on what parameter you are recommending the solution. I will grateful if you can provide me the parameter name and their values for taking such  decision.

    6 GB of memory is not a lot for SQL Server, and you also indicated that the max memory for your server is 4 GB.  From looking at your first screenschot, your SLQ memory is almost completely utilized.  This means that pretty much any query that is pulling in more than 500 MB of data (data here is not just the rows you are asking for, but back end stuff like query plan) will need to be dumped to disk.  This will create a lot of I/O which is what you are seeing.  The backup I/O waits could be a lot of different things, but likley related to this too.

    Give your box more memory and you will see a performance increase.

    I am not able to convince my infrastructure team that memory usage is high and ie why the disk usage is high. %idle time is 90%. Disk is not used always. So they do not like to add additional RAM.

    Can anyone time tell me what could be other ways to resolve the performance issue?

    It's unlikely that you will reveal a "go faster" switch by checking wait states on a server throttled by too little RAM, but there are perhaps some improvements available to you. Have you examined the slowest queries yet? Someone has already mentioned Glenn Berry's scripts. A bunch of them are designed to show you the slowest and most expensive queries. Have a look, judge for yourself if there's any room for improvement. Also, check out indexing. Refactoring your indexes is an opportunity to reduce the memory footprint of your data.

    Also, if you are more of a "GUI" guy, then have a look at Steve Stedman's database health monitor.  Since I expect you are a DBA, it would be good to know and understand Glenn Berry's scripts (he's a very smart guy), but sometimes it is nice to have a GUI with graphs to show off to the management type people to help explain why things are going badly.  It also has a fun little "technical debt" feature (which you can configure) so you can see how many objects might need modifying in the future.
    In his tool, I would recommend connecting to the SQL instance that is slow, look at the database that is being slow, and look at the following under real time:
    Statistics
    Long Running
    Needs Parameters
    One Time Use Queries
    Blocking

    As a little aside, how many SQL instances do you have running on that poor little machine?  Is there just the 1 (which I am hoping) or are there multiple?

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • You've never really put together the set of wait statistics that Gail asked for, let alone gathered them one day and then another day and compared between the two (using the scripts that everyone has been pointing you to over & over). However, if you did, you'd have a very good set of indicators as to what is running slow within the system.  You need to be very methodical and careful and take this one step at a time.

    Another option that you should look at (after doing what Gail explained) to check for low memory issues is to take a look at the os_memory_buffers as outlined in this article. If you're literally running out of memory, you can see messages there. The query in the article was written for SQL Server 2012. There's a comment that modifies it for 2008R2.

    As has already been stated, there isn't a magic "run faster" switch. The vast majority of the time the problems are related directly to the queries, so it's always a good idea to understand how your queries are being written, what they do, how they're called, etc. Following this, it's usually stale or incorrect statistics. It's sometimes poor data structures. Seldom is there a server setting that you can flip and performance improves. However, as has been pointed out repeatedly, you're operating with the extreme bare minimum of resources. Of course that's going to be a problem if there's any kind of significant load.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RmNotificationIndicatorsProcessIndicatorsSystemRmDateTimeTargetMemoryReserveMemoryCommitedMemorySharedMemoryPagesMemoryMemoryUtilizationTotalPhysicalMemoryAvailablePhysicalMemoryTotalPageFileAvailablePageFileTotalVirtualAddressSpaceAvailableVirtualAddressSpaceAvailableExtendedVirtualAddressSpace
    RESOURCE_MEMPHYSICAL_HIGH0126:05.64194280NULL414905603547664976290996549448809515619992281374389533441374219595440
    RESOURCE_MEMPHYSICAL_LOW0225:40.64149056NULL414905603546416976290996401032809515618382361374389533441374219595440
    RESOURCE_MEMPHYSICAL_LOW0225:40.64179776NULL417977603546416976290996393356809515618074201374389533441374219595440
    RESOURCE_MEMPHYSICAL_LOW0225:40.64181824NULL418182403546416976290996393396809515618053881374389533441374219595440
    RESOURCE_MEMPHYSICAL_LOW0225:40.64182848NULL418284803546416976290996393712809515618043681374389533441374219595440
    RESOURCE_MEMPHYSICAL_LOW0225:40.64183872NULL418387203546416976290996394180809515618417881374389533441374219595440
    RESOURCE_MEMPHYSICAL_LOW0225:40.64184896NULL418489603546416976290996394136809515618407721374389533441374219595440
    RESOURCE_MEMPHYSICAL_LOW0225:40.64185920NULL418592003546416976290996394116809515618397561374389533441374219595440
    RESOURCE_MEMPHYSICAL_LOW0225:40.64186944NULL418694403546416976290996393800809515618387441374389533441374219595440
    RESOURCE_MEMPHYSICAL_LOW0225:40.64187968NULL418796803546416976290996393428809515618377281374389533441374219595440
    RESOURCE_MEMPHYSICAL_LOW0225:40.64191040NULL419104003546416976290996394232809515618338041374389533441374219595440
    RESOURCE_MEM_STEADY0025:40.64149056NULL414905603546416976290996405460809515618382361374389533441374219595440
    RESOURCE_MEM_STEADY0025:40.64179776NULL417977603546416976290996393356809515618074321374389533441374219595440
    RESOURCE_MEM_STEADY0025:40.64181824NULL418182403546416976290996393396809515618053881374389533441374219595440
    RESOURCE_MEM_STEADY0025:40.64182848NULL418284803546416976290996393712809515618043681374389533441374219595440
    RESOURCE_MEM_STEADY0025:40.64183872NULL418387203546416976290996394180809515618417881374389533441374219595440
    RESOURCE_MEM_STEADY0025:40.64184896NULL418489603546416976290996394136809515618407721374389533441374219595440
    RESOURCE_MEM_STEADY0025:40.64185920NULL418592003546416976290996394116809515618397561374389533441374219595440
    RESOURCE_MEM_STEADY0025:40.64186944NULL418694403546416976290996393800809515618387441374389533441374219595440
    RESOURCE_MEM_STEADY0025:40.64187968NULL418796803546416976290996393428809515618377281374389533441374219595440
    RESOURCE_MEM_STEADY0025:40.64191040NULL419104003546416976290996394232809515618338041374389533441374219595440
    RESOURCE_MEMPHYSICAL_HIGH0104:07.64194280NULL419428003533096966290996590632809515619884801374389533441374219574880
    RESOURCE_MEM_STEADY0003:22.64194280NULL419428003775760966290996595168809515619884721374389533441374219574880
    RESOURCE_MEMPHYSICAL_LOW2003:20.64194280NULL419428003725768966290996594764809515619884441374389533441374219574880
    RESOURCE_MEMPHYSICAL_HIGH0102:09.64194280NULL403353603880888986290996687992809515621724481374389533441374219718800
    RESOURCE_MEMPHYSICAL_LOW0201:38.64033536NULL403353603880888986290996520824809515621400041374389533441374219718800
    RESOURCE_MEM_STEADY0001:38.64033536NULL403353603880888986290996618868809515621719241374389533441374219718800
    RESOURCE_MEMPHYSICAL_HIGH0142:23.64194280NULL409066403921520986290996612352809515621122161374389533441374219698240
    RESOURCE_MEM_STEADY0041:28.64090664NULL409066403921520986290996480108809515619746841374389533441374219698240
    RESOURCE_MEMPHYSICAL_LOW0241:26.64090664NULL409066403925768986290996391936809515619710641374389533441374219698240
    RESOURCE_MEMPHYSICAL_LOW0211:22.64103960NULL410396003939040986290996387152809515619076361374389533441374219698240
    RESOURCE_MEM_STEADY0111:22.64194280NULL410396003938856986290996535852809515620614841374389533441374219698240
    RESOURCE_MEMPHYSICAL_HIGH0111:22.64194280NULL410396003939040986290996393172809515619076361374389533441374219698240
    RESOURCE_MEMPHYSICAL_LOW0211:14.64103960NULL410396003939040986290996414652809515619089761374389533441374219698240
    RESOURCE_MEMPHYSICAL_LOW0211:14.64112152NULL411215203939040986290996393320809515618904441374389533441374219698240
    RESOURCE_MEM_STEADY0011:14.64103960NULL410396003939040986290996418232809515619089761374389533441374219698240
    RESOURCE_MEM_STEADY0011:14.64112152NULL411215203939040986290996393320809515618904441374389533441374219698240
    RESOURCE_MEMPHYSICAL_HIGH0146:11.64194280NULL411294403930408986290996537284809515620581881374389533441374219677680
    RESOURCE_MEMPHYSICAL_LOW0245:51.64112944NULL411294403930248986290996421112809515619007601374389533441374219677680
    RESOURCE_MEM_STEADY0045:51.64112944NULL411294403930248986290996423044809515619387881374389533441374219677680
    RESOURCE_MEMPHYSICAL_HIGH0130:38.64194280NULL412156003958568986290996495260809515619751721374389533441374219657120
    RESOURCE_MEMPHYSICAL_LOW0230:02.64121584NULL412156003981808986290996381612809515618574321374389533441374219677680
    RESOURCE_MEMPHYSICAL_LOW0230:02.64144112NULL414411203981808986290996394156809515618731321374389533441374219677680
    RESOURCE_MEMPHYSICAL_LOW0230:02.64145136NULL414513603981808986290996394156809515618721081374389533441374219677680
    RESOURCE_MEMPHYSICAL_LOW0230:02.64146160NULL414616003981808986290996393900809515618710841374389533441374219677680
    RESOURCE_MEM_STEADY0030:02.64121560NULL412156003979920986290996416388809515618955441374389533441374219677680
    RESOURCE_MEM_STEADY0030:02.64144112NULL414411203981808986290996394156809515618731321374389533441374219677680
    RESOURCE_MEM_STEADY0030:02.64145136NULL414513603981808986290996394156809515618721081374389533441374219677680
    RESOURCE_MEM_STEADY0030:02.64146160NULL414616003981808986290996393900809515618710841374389533441374219677680
    RESOURCE_MEM_STEADY0030:01.64149240NULL414924003981808986290996468540809515619468961374389533441374219677680
    RESOURCE_MEM_STEADY0030:01.64157432NULL415743203981808986290996393696809515618554721374389533441374219677680
    RESOURCE_MEMPHYSICAL_LOW0230:01.64149240NULL414924003981808986290996468528809515619468961374389533441374219677680
    RESOURCE_MEMPHYSICAL_LOW0230:01.64157432NULL415743203981808986290996393696809515618554721374389533441374219677680
    RESOURCE_MEMPHYSICAL_HIGH0111:49.64194280NULL415490403987552966290996533248809515619412161374389533441374219718800
    RESOURCE_MEM_STEADY0011:16.64154904NULL415490404014096966290996527716809515619306281374389533441374219718800
    RESOURCE_MEM_STEADY0011:15.64175392NULL417539204015424966290996394160809515617978561374389533441374219718800
    RESOURCE_MEM_STEADY0011:15.64176416NULL417641604015424966290996394156809515617968401374389533441374219718800
    RESOURCE_MEM_STEADY0011:15.64183584NULL418358404015424966290996394760809515617839441374389533441374219718800
    RESOURCE_MEMPHYSICAL_LOW0211:15.64154912NULL415490404015424966290996390424809515617803721374389533441374219718800
    RESOURCE_MEMPHYSICAL_LOW0211:15.64175392NULL417539204015424966290996394160809515617978561374389533441374219718800
    RESOURCE_MEMPHYSICAL_LOW0211:15.64176416NULL417641604015424966290996394156809515617968401374389533441374219718800
    RESOURCE_MEMPHYSICAL_LOW0211:15.64183584NULL418358404015424966290996394760809515617839441374389533441374219718800
    RESOURCE_MEMPHYSICAL_HIGH0118:16.64194280NULL418446404008384966290996510852809515619139641374389533441374219718800
    RESOURCE_MEMPHYSICAL_LOW0217:20.64184464NULL418446404008408966290996393320809515617875561374389533441374219718800
    RESOURCE_MEMPHYSICAL_LOW0217:20.64185488NULL418548804008408966290996393320809515617865321374389533441374219718800
    RESOURCE_MEM_STEADY0017:20.64184464NULL418446404008408966290996393320809515617875561374389533441374219718800
    RESOURCE_MEM_STEADY0017:20.64185488NULL418548804008408966290996393320809515617865321374389533441374219718800
    RESOURCE_MEMPHYSICAL_HIGH0101:59.64194280NULL408367203945104986290996667872809515621625321374389533441374219677680
    RESOURCE_MEM_STEADY0000:59.64083672NULL408367203945096986290996480524809515621602521374389533441374219677680
    RESOURCE_MEMPHYSICAL_LOW0200:58.64084816NULL408476803945336986290996380040809515620181321374389533441374219677680
    RESOURCE_MEMPHYSICAL_LOW0211:19.64159728NULL415972804000576986290996393156809515619017161374389533441374219739360
    RESOURCE_MEM_STEADY0111:19.64194280NULL415972804000576986290996523296809515620445881374389533441374219739360
    RESOURCE_MEMPHYSICAL_HIGH0118:50.64194280NULL415972803990240986290996534156809515620513801374389533441374219718800
    RESOURCE_MEMPHYSICAL_LOW0218:20.64159728NULL415972803990096986290996514220809515620218641374389533441374219718800
    RESOURCE_MEMPHYSICAL_LOW0218:20.64167920NULL416792003990096986290996393680809515618826801374389533441374219718800
    RESOURCE_MEM_STEADY0018:20.64159728NULL415972803990096986290996514220809515620218641374389533441374219718800
    RESOURCE_MEM_STEADY0018:20.64167920NULL416792003990096986290996393680809515618826801374389533441374219718800
    RESOURCE_MEMPHYSICAL_HIGH0125:04.64194280NULL415451203988104986290996550252809515620622921374389533441374219698240
    RESOURCE_MEMPHYSICAL_LOW0224:28.64154512NULL415451204003920986290996397564809515619054001374389533441374219698240
    RESOURCE_MEMPHYSICAL_LOW0224:28.64158608NULL415860804003920986290996393444809515619012281374389533441374219698240
    RESOURCE_MEMPHYSICAL_LOW0224:28.64189328NULL418932804003920986290996393568809515618605921374389533441374219698240
    RESOURCE_MEM_STEADY0024:28.64154512NULL415451204003920986290996400520809515619054001374389533441374219698240
    RESOURCE_MEM_STEADY0024:28.64158608NULL415860804003920986290996393448809515619012281374389533441374219698240
    RESOURCE_MEM_STEADY0024:28.64189328NULL418932804003920986290996393568809515618605921374389533441374219698240
    RESOURCE_MEMPHYSICAL_HIGH0111:45.64194280NULL418197604002032976290996528344809515619687441374389533441374219657760
    RESOURCE_MEMPHYSICAL_LOW0211:20.64181976NULL418197604010128966290996484092809515619192241374389533441374219657760
    RESOURCE_MEMPHYSICAL_LOW0211:20.64190168NULL419016804010128966290996394044809515618336961374389533441374219657760
    RESOURCE_MEMPHYSICAL_LOW0211:20.64191192NULL419119204010128966290996393860809515618326721374389533441374219657760
    RESOURCE_MEMPHYSICAL_LOW0211:20.64193240NULL419324004010128966290996394268809515618306241374389533441374219657760
    RESOURCE_MEM_STEADY0011:20.64181976NULL418197604010128966290996484092809515619192241374389533441374219657760
    RESOURCE_MEM_STEADY0011:20.64190168NULL419016804010128966290996394044809515618336961374389533441374219657760
    RESOURCE_MEM_STEADY0011:20.64191192NULL419119204010128966290996393860809515618326721374389533441374219657760
    RESOURCE_MEM_STEADY0011:20.64193240NULL419324004010128966290996394044809515618306241374389533441374219657760
    RESOURCE_MEMPHYSICAL_HIGH0100:14.64194280NULL4154248038133609462909961007212809515622334841374389533441374219839280
    RESOURCE_MEM_STEADY0000:14.64194280NULL4154248038132969462909961007212809515622334841374389533441374219839280
    RESOURCE_MEMPHYSICAL_LOW2000:13.64194280NULL415211203714424946290996992048809515621581921374389533441374219838640
    RESOURCE_MEMPHYSICAL_HIGH0136:10.63966104NULL374462402650640986290996442952809515618265921374389533441374219909880
    RESOURCE_MEMPHYSICAL_LOW0235:09.63745024NULL374502402396600986290996401008809515618013561374389533441374219971560
    RESOURCE_MEMPHYSICAL_LOW0235:09.63749120NULL374912002396600986290996393624809515617892241374389533441374219971560
    RESOURCE_MEMPHYSICAL_LOW

     

    0235:09.63750144NULL375014402396600986290996393356809515617962361374389533441374219972200

     Output of the os_memory_buffers is provided above.
    Can we conclude the system has problem?

  • Output of the query:
    SELECT TOP 10 SUBSTRING(qt.TEXT, (qs.statement_start_offset/2)+1,
    ((CASE qs.statement_end_offset
    WHEN -1 THEN DATALENGTH(qt.TEXT)
    ELSE qs.statement_end_offset
    END - qs.statement_start_offset)/2)+1),
    qs.execution_count,
    qs.total_logical_reads, qs.last_logical_reads,
    qs.total_logical_writes, qs.last_logical_writes,
    qs.total_worker_time,
    qs.last_worker_time,
    qs.total_elapsed_time/1000000 total_elapsed_time_in_S,
    qs.last_elapsed_time/1000000 last_elapsed_time_in_S,
    qs.last_execution_time,
    qp.query_plan
    FROM sys.dm_exec_query_stats qs
    CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) qt
    CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) qp
    ORDER BY qs.total_logical_reads DESC

    I do n' t think there is issue with query. Your view is highly appreciable.

    (No column name)execution_counttotal_logical_readslast_logical_readstotal_logical_writeslast_logical_writestotal_worker_timelast_worker_timetotal_elapsed_time_in_Slast_elapsed_time_in_Slast_execution_time
               
    DELETE FROM wen_benutzt_information WHERE umgebung =  @P0   AND quelle =  @P18360036458541250984557614491075039:33.6
    SELECT [BEST_NR],[UMGE_NAME],[EING_VORGANGS_ID],[EING_FEHLER_ID],[BEST_SONDERABW],[BEST_ZUSTAND],[BEST_IST_MASTER],[BEST_NUTZE_HOSTVER],[BEST_USER],[BEST_ANGELEGT],[BEST_BASELINE] FROM [BEST_BESTUECKUNG] WHERE [BEST_NR]=@1 AND [BEST_IST_MASTER]=@272536220685300489422504048:33.5
    SELECT [BEST_NR],[UMGE_NAME],[SOEL_NAME],[SOEV_ID_BEST],[SOEV_ID_RUECK],[BSTE_ZUSTAND],[BSTE_TOOL] FROM [BSTE_BESTELEM] WHERE [UMGE_NAME]=@1 AND [BEST_NR]=@21427457628400110175101048:33.4
    SELECT [BEST_NR],[UMGE_NAME],[EING_VORGANGS_ID],[EING_FEHLER_ID],[BEST_SONDERABW],[BEST_ZUSTAND],[BEST_IST_MASTER],[BEST_NUTZE_HOSTVER],[BEST_USER],[BEST_ANGELEGT],[BEST_BASELINE] FROM [BEST_BESTUECKUNG] WHERE [BEST_NR]=@1 AND [BEST_IST_MASTER]=@2150284572830099891801043:18.9
    SELECT * FROM wen_benutzt_information WHERE umgebung =  @P02445994459900279653927965398844:34.4
    SELECT [AUSL_NR],[AUSL_DATUM],[BEST_NR],[AUSL_LINIE],[AUSL_AUSLUMG],[AUSL_ZUSTAND] FROM [AUSL_AUSLIEFERUNG] WHERE [AUSL_NR]=@11922738454200100742501050:11.9
    SELECT [AUSL_NR],[AUSA_ABH_VON] FROM [AUSA_AUSL_ABH] WHERE [AUSA_ABH_VON]=@17235064487001731094260051050:11.2

  • To me, I still say your memory is over utilized for that server.  That was what my first post about it was and I stand by that claim still.
    You are sitting with 94-98% memory utilization as you can see in what you posted.  Your database is memory starved.  You need more RAM dedicated to the SQL instance.

    Get more RAM.  Page 2 of the comments, 5th post says that 4GB for SQL isn't very much.
    That and you should post what Gail asked for on page 1 of this thread... 5 pages of comments and still no useable wait stat information being posted...

    Might not hurt to hire a consultant, but first thing they will likely suggest is getting more resources onto that box...

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

Viewing 15 posts - 31 through 45 (of 48 total)

You must be logged in to reply to this topic. Login to reply