Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 8th, 2003, 08:16 AM
Bom Bom is offline
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default CPU utilization:Thread Pooling



Hi,

I have a requirement where i am creating a Web based app which retrieves the data from different data sources.For this purpose i'av created a thread pool in which i am queing the request for data from different data sources.As of now i'av queued 50 request in the pool.

This is working fine but it is consuming 100% of CPU :(.After getting data from different data sets i merge it into a single dataset which contains around 1000 records.

What shall i do to reduce the CPU usage?Is there any other approach to this kind of requirement.

Regards,
Bom
 
Old October 11th, 2003, 01:03 PM
Registered User
 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you running 50 threads? You said that you've queued 50 requests -- but it sounds like you're running 50 at a time. Naturally, this is going to kill a single processor box. It would be faster to execute each request (I'm assuming these are all coming from different web clients) in sequence.

Is this SQLServer? Given the nature of IIS and connection pooling provided by SQLServer are you sure you want to be creating another thread pool? Just curious.

Also, are the clients request different data or is the page doing the same queries many times. If the later, take a look at the ASP.NET provided caching which can cache the page for a specified time so that as other clients request it, it's just returned from the cache.

I hope I'm not just wasting your time with the obvious but it's sort of hard to tell what's going on from just reading the post.







Similar Threads
Thread Thread Starter Forum Replies Last Post
To minimize the CPU Utilization on DB server Scorpio1 J2EE 0 January 22nd, 2008 02:59 AM
cpu information !! angelboy C# 2005 1 February 26th, 2007 09:31 AM
optimal utilization of network bandwidth sabansingh C# 14 May 7th, 2006 12:05 AM
CPU Speed soccers_guy10 Pro VB 6 4 February 6th, 2004 12:14 AM
CPU utilization:Thread Pooling Bom VS.NET 2002/2003 0 October 8th, 2003 08:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.