Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Multiple processes with the same ID

Multiple processes with the same ID

Scheduled Pinned Locked Moved Database
csharpasp-netdatabasesql-serversysadmin
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JacquesDP
    wrote on last edited by
    #1

    Hi, I currently have a site in ASP.NET connecting to SQL Server 2005, what we have picked up is that there are a lot of processes with the same process id. i.e. 64 appears 7 times in the activity monitor, half of which is either sleeping or suspended, the other 3 is runnable. How is this happening? is it possible to have more than one process with the same ID? and a lot of these processed has a wait type of CXPacket. Just want to state that I'm no sql guru so its a process of head bumping at this stage. :doh: Thanks in advance

    No matter how long he who laughs last laughs, he who laughs first has a head start!

    W 1 Reply Last reply
    0
    • J JacquesDP

      Hi, I currently have a site in ASP.NET connecting to SQL Server 2005, what we have picked up is that there are a lot of processes with the same process id. i.e. 64 appears 7 times in the activity monitor, half of which is either sleeping or suspended, the other 3 is runnable. How is this happening? is it possible to have more than one process with the same ID? and a lot of these processed has a wait type of CXPacket. Just want to state that I'm no sql guru so its a process of head bumping at this stage. :doh: Thanks in advance

      No matter how long he who laughs last laughs, he who laughs first has a head start!

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      Hi, You are seeing parallel execution of statements which is basically a good thing. However it can also be a problem (depending on the application) in which case you should reduce the amount of parallelism or even disable it. Usually if this is the case you also see very high (~100%) CPU load and actually your CPU becomes the bottleneck. Mika

      J 1 Reply Last reply
      0
      • W Wendelius

        Hi, You are seeing parallel execution of statements which is basically a good thing. However it can also be a problem (depending on the application) in which case you should reduce the amount of parallelism or even disable it. Usually if this is the case you also see very high (~100%) CPU load and actually your CPU becomes the bottleneck. Mika

        J Offline
        J Offline
        JacquesDP
        wrote on last edited by
        #3

        The problem at this stage is that it is causing the database to slow to a snail pace which is pulling the site down completely. Is there a way that I can disable parallelism on only one database or do I have to do it on the entire sql server?

        No matter how long he who laughs last laughs, he who laughs first has a head start!

        W 1 Reply Last reply
        0
        • J JacquesDP

          The problem at this stage is that it is causing the database to slow to a snail pace which is pulling the site down completely. Is there a way that I can disable parallelism on only one database or do I have to do it on the entire sql server?

          No matter how long he who laughs last laughs, he who laughs first has a head start!

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          Unfortunately you have to configure parallelism for the whole SQL Server. However you can configure parallel query so that it will not happen so often: 1. set cost threshold for parallelism for a higher value. For example if the value for this is 5, it means that if the operation is expected to take more than 5 seconds, parallelism shall be used. You can increase this value so that only 'long' operations use parallelism (say set theshold to 30 seconds or whatever is suitable). 2. don't let the database use all processors. If you have 4 processors, you can set max degree of parallelism to 2 which means that only 2 processors are used simultaneously. Value 0 means that all processors are used To list your configuration use either Management studio or by T-SQL by configuring to see advanced options and then listing all option:

          sp_configure 'show advanced options', 1;
          GO
          RECONFIGURE;
          GO
          sp_configure;
          GO

          Hope that this helps, Mika

          J 1 Reply Last reply
          0
          • W Wendelius

            Unfortunately you have to configure parallelism for the whole SQL Server. However you can configure parallel query so that it will not happen so often: 1. set cost threshold for parallelism for a higher value. For example if the value for this is 5, it means that if the operation is expected to take more than 5 seconds, parallelism shall be used. You can increase this value so that only 'long' operations use parallelism (say set theshold to 30 seconds or whatever is suitable). 2. don't let the database use all processors. If you have 4 processors, you can set max degree of parallelism to 2 which means that only 2 processors are used simultaneously. Value 0 means that all processors are used To list your configuration use either Management studio or by T-SQL by configuring to see advanced options and then listing all option:

            sp_configure 'show advanced options', 1;
            GO
            RECONFIGURE;
            GO
            sp_configure;
            GO

            Hope that this helps, Mika

            J Offline
            J Offline
            JacquesDP
            wrote on last edited by
            #5

            Thanks a mil, I'll give it a bash and hopefully it sorts the problem

            No matter how long he who laughs last laughs, he who laughs first has a head start!

            W 1 Reply Last reply
            0
            • J JacquesDP

              Thanks a mil, I'll give it a bash and hopefully it sorts the problem

              No matter how long he who laughs last laughs, he who laughs first has a head start!

              W Offline
              W Offline
              Wendelius
              wrote on last edited by
              #6

              You're welcome :) Mika

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups