.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Unknown CPU spike during high volume UDP processing

Posted By:      Posted Date: October 06, 2010    Points: 0   Category :.NET Framework
I have tried this numerous ways on Windows 7 and always end up with a CPU spike every 10-15 seconds.  I have no idea what is
causing it.  Basically, I am connecting to a UDP port and echoing the received data back out and testing it with 500 packets/sec.  Between spikes, the CPU is at roughly 0%, and the spikes are between 50% and 75%.  Any ideas?  It seems to be down in the ReceiveFrom/ReceiveFromAsync/SendTo functions, since everything else has been systematically tested.

    public partial class MainWindow : Window
        Udp udp;
        public MainWindow()
            udp = new Udp(7000);
            udp.ReceivedMessage += new Udp.ReceiveHandler(udp_ReceivedMessage);

        void udp_ReceivedMessage(Udp udp, byte[] buffer, int size)

View Complete Post

More Related Resource Links

WF4 for High Volume Transaction Apps

Hi! I am in the middle of redesigning my application and I would like to consider WF4 as the center piece for my application logic. My application is an sms gateway service and it can reach up to millions of hits within a short period of time. I would like to know whether WF4 is suitable to be used for millions of hits type of application. Thank You :) Best Regards, Serena

Do predefined reports under Summary tab in sql server 2005 cause high CPU spike ?

I am using SQL server 2005 sp2 on windows 64 bit server .When I run predefined reports under summary (F7) tab in sql server 2005 ,I saw during that periode ,there were high CPU spike .I checked in monitoring tool Idera .I saw there is one process ran 30 minutes using Master databse ,it cause high CPU spike .I dont know which reports cause high CPU spike .Is there any way I can find report name or location ? Any one can help me to figure out 1) why this report took 30 minutes to run report ? 2) From where can I find explaination of built in reports under summary tab ? 3)Is it good idea to run predefined reports during production hours? 4)which is the proper way to check daily database statistic ? Thanks !!

Sys.WebForms.PageRequestManager ServerErrorException: An unknown error occurred while processing the



I am executing a SSRS 2008 report from report manager so it opens in a web browser. Since it is a big report it takes some time for execution. During this time i get an error icon on the left bottom of the web browser and the execution stops. When I click open the error icon to see the details it says,

"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12029." 

I have no clue what it is up to. Please help me on this.

The other relatively smaller reports are coming up successfully without any issue.

I am using SQL Server 2008 R2 64 bit ent. edition and the OS is Win Server 2003 64 bit SP 2.


Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the



 I am using Ajax RC 1.0

Initially my application was simple ASP.NET 2.0 application and later on client decided for implementing AJAX.

My form is containg datagridview inside UpdatePanel and one textbox also. datagridview is having all rows editable. I have master page implemented.

I am updating records on lost focus of any text box(inside datagridview  and outside also) 

Problem is that I am able to run my application locally without any problem. But when I am publishing my website on server it is giving me following error:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

I have uploaded following DLL's on server: AjaxControlToolkit.dll, AJAXExtensionsToolbox.dll, Microsoft.Web.Extensions.Design.dll and Microsoft.Web.Extensions.dll

Please let me know the solution of this problem.

Image processing at High Frame Rate.


Hi all,

I am working on an application which performs stamping of HD images at very high frame rate.

AFAIK GDI is the best, but i heard WPF uses Hardware acceleration. 

To make it faster which technology will be better ? 

GDI / GDI+ / WPF ?

Thanks in Advance..

Image processing at High Frame Rate.


Hi all,

I am working on an application which performs stamping of HD images at very high frame rate.

AFAIK GDI is the best, but i heard WPF uses Hardware acceleration. 

To make it faster which technology will be better ? 

GDI / GDI+ / WPF ?

Thanks in Advance..

Error Processing Mining Structure - Errors in the high-level relational engine.


Hi community,

I am trying to learn some datamining with SQL Server. I have some demo projects I am trying to run under my test environment: Windows Server 2008 + SQL Server 2008 R2 Enterprise. Sample projects seems to be ok, but when I try to process a mining structure, I get this error:

"Errors in the high-level relational engine. The following exception occurred while an operation was being performed on a data source view: The type initializer for 'System.Xml.Schema.XmlSchemaComplexType' threw an exception.;Bad IL range.."

Any ideas?

Thanks in advance



ASP.NET Best Practices for High Performance Applications

This article lists the techniques that you can use to maximize the performance of your ASP.NET applications. It provides common issues, design guidelines, and coding tips to build optimal and robust solutions.

High-Performance .NET Application Development & Architecture

It has always been a goal of project architects to plan an effective strategy from the ground up in regards to an new application. All relevant factors are taken into consideration with respect to the application, from its design and layout to a functional website infrastructure. Pre-.NET strategies and design guidelines still effective now were developed with Microsoft's DNA (Distributed interNet Application) platform. This model successfully served the purpose of architecting N(any number of)-Tier (levels) applications. In its basic sense, as in most robust, distributed applications, you'll architect 3 main layers or Tiers: presentation, business rules and data access.

High Performance ASP.NET - Speeding Up ASP.NET Pages

have been writing a series of blog posts, which I have named High Performance ASP.NET Websites Made Easy! There is no rhyme or reason to the order of these posts and certainly can be read in any order:

Developing High Performance and Scalable ASP.NET Websites
Avoid Chatty Interfaces Between the Tiers in Your ASP.NET Web Application
ASP.NET Page Profiling - Page Tracing - High Performance and Scalable ASP.NET Websites Made Easy
Web Applications: N-Tier vs. N-Layer - Benefits and Trade-Offs
Query Analyzer - Sql Server Database Indexes and Execution Plans

10 Tips for Writing High-Performance Web Applications

Writing a Web application with ASP.NET is unbelievably easy. So easy, many developers don't take the time to structure their applications for great performance. In this article, I'm going to present 10 tips for writing high-performance Web apps. I'm not limiting my comments to ASP.NET applications because they are just one subset of Web applications. This article won't be the definitive guide for performance-tuning Web applications-an entire book could easily be devoted to that. Instead, think of this as a good place to start.

how to impose javascript event processing?


If I have some form control like textbox and I want the event handler to be located in the html instead of at the server side, how to do that? Of course I can copy paste javascript code in the aspx file. But is it possible to do that using some object oriented approach (ie programmatically in the code behind)?


LDAP Problem with .NET - Unknown error (0x80005000)


I am trying to create a proof of concept to show how to connect to an LDAP
server and how to search for values but I do not get anywhere. Here is what I
have so far:

Dim objEntry As DirectoryEntry
Dim objSearcher As DirectorySearcher


objEntry = New DirectoryEntry("ldap://www.openldap.com/dc=OpenLDAP,dc=org",
Nothing, Nothing, AuthenticationTypes.Anonymous)

objSearcher = New DirectorySearcher(objEntry, "(ou=People)")
objSearchResult = objSearcher.FindOne()

If Not objSearchResult Is Nothing Then
'Do something
End If

Catch ex As Exception

result.Text = ex.Message & vbNewLine & ex.Source

End Try

My code fails at the line:
objSearchResult = objSearcher.FindOne()

with the unhelpfu error of Unknown error (0x80005000)

As you can see I use the www.openldap.com directory and I can connect
anonymously using the Softeerra LDAP Browser 2.5

Any help would be greatly appreciated 

PS: I know there is already a similar thread (http://forums.asp.net/thread/1028020.aspx) but none of the suggeste

Image processing, determine white space and crop



I have created a image upload for our ID card system to allow users to upload new images, edit them and submit for approval.  This is all working well with a combination of asp.net (c#) and jquery to give a seemless editor etc.

We have had a few users who I cannot believe have scanned a photo of themself and then just submitted it with the A4 page of white and little photo.

I am wondering if anyone can help with a suggestion on how I could possibly reduce the load of these coming through (I can't believe they can be this stupid), it stipulates UK passport standards.

Would my only option be to check for a single continues colour that occurs and if it reaches a certain percentage point say 60% then to just send back an error stating they need to crop the image.

Can anyone help with providing sample or that I can use to move this one on.

I am still in disbelief on this one.  the other one is they take a photo of whole body and other in it and cut straight down middle chopping the people out but supplying a photo that no use for an id photo card....but that I can't imagine being solved programatically as I need to determine where their face dimensions are and what percentage of the actual photo is taken up by it and if it below a threshold reject it.

Easy image processing(grayscale, sepia, negative, resize, brightness, contrast and opacity)

Howdie y'all,

I see a lot of questions in this forum about resizing images. Recently I created a code sample(with downloadable webapp), right here.

The class (downloaded or created) allows for very fast and easy processing of your images. And a lot of problems over here can be solved by simply using that class. I thought it might help to mention the code sample in this forum as well.



Unknown server tag 'abc:tagname'


Hi all,

I have a big web application, and It compiles fine without the (Web Deployment Project) WDP. But compiling it with this project, it gives me the following message:

Unknown server tag 'abc:tagname'

I have looked for clues in this forum but to no avail. Can anyone point me in the right direction?

Thank you,


Peer Fun: A Peer-To-Peer Work Processing App With WCF


We demonstrate creating a peer-to-peer processing platform where multiple players function together for a common purpose: getting your work done.

Matt Neely

MSDN Magazine June 2009

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend