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. Web Development
  3. ASP.NET
  4. Web service: resource managment

Web service: resource managment

Scheduled Pinned Locked Moved ASP.NET
performancewcfwindows-adminlearning
3 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.
  • T Offline
    T Offline
    teejayem
    wrote on last edited by
    #1

    I have a webservice that takes a byte[] parameter and writes it out to the filesystem. The byte[] is about 120k in length (on average). The webservice can be hit about 20x per minute (so that puts it at about 2.5mb/min). The system administrator is saying this service is causing bottlenecks and other web services/web apps are also failing as a result. He suggest that i change the code to speed up the webservice because it's using up too much resources. The code is pretty straight forward. I don't understand how this webservice is breaking the other applications/services. I was under the impression that the resource management (thread managment, memory manamgement) is all done under IIS not in the code behind. If i'm not correct what could i possibly do (either in the web.config or code behind) to prevent this from happening. Someone suggested that i monitor the threads in the webservice but that really doesn't make sense to me. I'm totally confused on this subject. Thanks,

    Don't be overcome by evil, but overcome evil with good

    A 1 Reply Last reply
    0
    • T teejayem

      I have a webservice that takes a byte[] parameter and writes it out to the filesystem. The byte[] is about 120k in length (on average). The webservice can be hit about 20x per minute (so that puts it at about 2.5mb/min). The system administrator is saying this service is causing bottlenecks and other web services/web apps are also failing as a result. He suggest that i change the code to speed up the webservice because it's using up too much resources. The code is pretty straight forward. I don't understand how this webservice is breaking the other applications/services. I was under the impression that the resource management (thread managment, memory manamgement) is all done under IIS not in the code behind. If i'm not correct what could i possibly do (either in the web.config or code behind) to prevent this from happening. Someone suggested that i monitor the threads in the webservice but that really doesn't make sense to me. I'm totally confused on this subject. Thanks,

      Don't be overcome by evil, but overcome evil with good

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      well it happens sometimes to send lots of data to the webservice and also return a lot. Try to check if you are not sending or receiving any unnecessary data. Also for your webservice, each time it is called the web server spawns a new thread and runs it. Try not to open any new thread from the web service if not absolutely necessary. And in IIS host the webservice in a new application pool.

      Abhishek Sur My Latest Articles Working with Excel using MDAC
      Basics on LINQ and Lambda Expressions
      Create .NET Templates

      T 1 Reply Last reply
      0
      • A Abhishek Sur

        well it happens sometimes to send lots of data to the webservice and also return a lot. Try to check if you are not sending or receiving any unnecessary data. Also for your webservice, each time it is called the web server spawns a new thread and runs it. Try not to open any new thread from the web service if not absolutely necessary. And in IIS host the webservice in a new application pool.

        Abhishek Sur My Latest Articles Working with Excel using MDAC
        Basics on LINQ and Lambda Expressions
        Create .NET Templates

        T Offline
        T Offline
        teejayem
        wrote on last edited by
        #3

        thanks for the info!

        Don't be overcome by evil, but overcome evil with good

        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