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


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

Handling a large amount of traffic

Posted By:      Posted Date: October 06, 2010    Points: 0   Category :ASP.Net
 

Hi All,

 

I will soon be hosting a website that will incur a large amount of traffic.  I will be using many servers to handle this traffic.  I have figured out how to partition the database accross many servers, I will be using a CDN to send out the static files but there is still one huge bottleneck that will slow down my site that I can't figure out how to partition this problem.  When the user types in his browser www.mywebsite.com all traffic will be directed to one page on one server and this will kill performance.  Is there such a service out there free or not where the DNS lookup of my site can be can be load balanced accross many servers so when a user types in www.mywebsite.com he is not always directed to the same server? 




View Complete Post


More Related Resource Links

Large amount of handles of type token using role manager and authorisation manager (azman)

  
First you'll need some background on the application.  ASP.net application using .net framework 3.5. Security to the application is controlled with impersonation, using a role manager connecting to an azman store which uses Active Directory groups for security. As demoed in the following msdn link ... http://msdn.microsoft.com/en-us/library/ff649313.aspxAfter 50 or so users access the application throughout the day, eventually the application stops responding or users start to experience images not displaying etc and the application pool has to be recycled (typical symptoms of the server running out of memory).  Looking at the application memory usage and available memory on the server this does not appear to be the issue, investigations so far have lead me to think this is to do with Security Token Handles.  I've used process explorer to monitor the asp.net application and handles for the application steadily increase with every page that is accessed and eventually hit 38,000 this is when the application dies.  I've read various links saying that applications should use between 2,000-10,000 handles and any number near 40,000 makes the application unusable (this is the exact behaviour we are experiencing).  Using process explorer and handle.exe from the windows sysinternals site I

Considering Holap fact group when requesting large amount of leaf cells

  
We have a MOLAP fact group which is often queried at the leaf level, with sets of 200 or more records. Holap is considered to have a medium query performance, but, i'm considering Holap because of the large amount of records which can be retrieved ad-hoc from the DWH who do not have aggregations. I would think Holap is more effective in this scenario as I'd think a sql query is faster than a Molap query when you want large sets of leaf data.  What are your experiences/strategies when large sets of leaf data need to be queried ? Do you share this idea that Holap is faster on large sets of leaf data than Molap?Business Intelligence professional

WCF Service fails with Unexpected connection closed with large amount of data

  
Good day all,   I'm sure this question is relatively simple, but I'm quite new to WCF (been on a Java project the last few years and it's nice to be back in MS territory even if a lot has changed!).   Anyway, here's all the details of my scenario I was hoping someone could shed some light on.   1)  This WCF service is hosted as a webservice and is being testing in the WCF Test Tool. 2)  There is a method call on the service that, while rarely used, can return a fair amount of data (over 20,000 objects) - this is a requirement of the system 3)  The object that is being serialized has the following signature/contract (property changed for example): [DataContract] public class Foo { private string prop1; [DataMember] public string Prop1 { get { return prop1; } set { prop1= value; } } private string prop2; [DataMember] public string Prop2 { get { return prop2; } set { prop2= value; } } private string prop3; [DataMember] public string Prop3 { get { return prop3; } set { prop3= value; } } private string Prop4; [DataMember] public string FaaCode { get { return prop4; } set { prop4= value; } } private string prop5; [DataMember] public string Prop5 { get { return prop5; } set { prop5= value

How to avoid the memory exhausion for handling large Image files in C# ?

  

I have been developing a Form application for handling a large number Image files. The number of Image files could be more than 1,000 and each Image size is about 2MB. The code is as follows:

PictureBox[] pb = new PictureBox[iPictureBoxNumMax];
Label[] lb = new Label[iPictureBoxNumMax];

for (int i = 0; i < iPictureBoxNum; i++)
{
    lb[i] = new Label();
    pb[i] = new PictureBox();
 .
 .
    this.Controls.Add(pb[i]);
    this.Controls.Add(lb[i]);
 .
 .
    pb[i].ImageLocation = @sImageListAll[i];
    pb[i].Load();
}

.
.
.

for (int i = 0; i < iPictureBoxNum; i++)
{
lb[i].Dispose();
pb[i].Dispose();
}

(1) If the number of Image files is less than 300, the PictureBox generation code (the 1st portion) works. If the number is larger than that, an error message of "Memory exhausion" is displayed.

(2) However, the second protion of the code (pb[i].Dispose()) doesn't seem to clear, since the re-run of the first portion gives an error message of "Memory exhausion".

What should I do ?

Thanks


Handling large volume of data using WCF

  

Hello there

I am trying to load data ranging from 5MB to 40MB using WCF to my web page.

Just a brief on what I am exactly trying to do:

I created a custom object filled with data which is passed through WCF to my web page(client). My web page access the WCF using javascript.

There are couple of issues which I am facing

1. I am unable to transfer data when it exceeds 10MB

2. It accumulates more memory when handling objects with a size of  15MB or more

Please advice...

Many Thanks

Siva

Following are the configurations which I am using in the WCF Service

 

 <system.web>
 <compilation debug="true" />
 </system.web>

 <system.serviceModel>
 <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
 
 <bindings>
  <basicHttpBinding>
  <binding name="basicbinding" closeTimeout="00:01:00"
     openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
     allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
     maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647&q

Handling a large number of structs

  

Hi,

I have to parse a CSV file, filter out lines,  add values and store it to disk again. My idea is to create a struct for the values of each line:

struct LineValues
{
  int Value0;
  double Value1;
  string Value3;
}

Then I want to initialize LineValue instances with values from the file (reding it via StreamReader.ReadLine()) and put them into a List<LineValue>.

The generic List is a reference type so it is put onto the heap. But where do the LineValue instances go? I am afraid this is gonna cause a big GC job after doing this on a file with thousands of lines.

Is there a better solution in terms of performance?

Thx for your help,

Fabian


Serving a large amount of users on a web server

  

Hi

I have a project that will be assigned to me soon whereby I need to develop a survey which needs to support 40,000 users approximately. Now we are thinking of doing a staged approach so not all users are on the server at any one point of time. Probably splitting it so we can serve at least a few thousand of users...

I dont have much experience of how I can ensure to serve those levels of users on a server and how to manage this so I am after some advice?

From my understanding I need to do some stress testing on a server and obviously I need some figures i.e. average size of request, average size of response and content of response. Now I am unsure how to collate this so need some guidance?

- Do I have to build the database and add records in to see what size is a typical survey row?

- Do I have to build the survey in .NET i.e. by adding controls etc and seeing what size is the page?

- The survey shouldnt be too instensive processing wise, it will be adding information into a backend sql database...

Many thanks in advance


Timeout while sending large amount of data with WCF client

  

Hi,

I've call to Java WebSeal Web "enveloped" by WCF Client. Sending large XML (about 60k) as a parameter cause an error and received one of these messages:

 System.ServiceModel.CommunicationException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.

OR

System.TimeoutException: The request channel timed out while waiting for a reply after 00:01:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.

Interaction with same webseal service configured as asmx service doesn't cause any errors.

my client app.config looks like this:

<bindings>
      <basicHttpBinding>
        <binding name="WinflowSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
         receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
         bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
   

Timeout while sending large amount of data with WCF client

  

Hi,

I've call to Java WebSeal Web "enveloped" by WCF Client. Sending large XML (about 60k) as a parameter cause an error and received one of these messages:

 System.ServiceModel.CommunicationException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.

OR

System.TimeoutException: The request channel timed out while waiting for a reply after 00:01:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.

Interaction with same webseal service configured as asmx service doesn't cause any errors.

my client app.config looks like this:

<bindings>
      <basicHttpBinding>
        <binding name="WinflowSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
         receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
         bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
   

EXCEPTION HANDLING IN C#

  
Every self-respected programmer should include exception handling techniques. Sometimes your application will generate an error. Regardless of who was responsible for this error, the programmer or the user, it is up to the first to include the necessary exception handling techniques to keep his/her program from crashing. The .Net environment provides useful techniques for avoiding disastrous errors such as try-catch statements and user-defined exceptions.

Global Exception Handling with ASP.NET

  
After your global exception handler has done its work, you'll want to redirect the users of your website to a friendly page that tells them that something has gone wrong, and then provide them with customer support information as well as a link back to your web application's home page.

SQL Server 2005 Try and Catch Exception Handling

  
I'm pretty excited to see that there is some real error handling for T-SQL code in SQL Server 2005. It's pretty painful to have your wonderfully architected .NET solution tainted by less-than-VBScript error handling for stored procedures in the database. The big difference being the addition of TRY..CATCH blocks. Let's take a look:

Handling 404 page not found with Error page

  

Hi,

      How do i handle 404 page not found?


Persist large dataset across ASP.NET pages. No database

  

Can anyone give me suggestions on how to implement the following requirement?

1. A online wizard (step-by step operation) processes user requests across several ASP.NET pages.  The session data is stored in memory until the user submits the request.  Once the request is submitted, a XML file is created and the data are passed to XML.

# Case Study: The parent page has a "select" button.  Click "select" will pop up a child page.  The users can select 1000+ items from a datagrid in the child page.  Once the user clicks "confirm", the selected items in the child page will be populated to the selected item gridveiw in the parent page.  The user can keep selecting more in the child page and the selected items will be appended to the gridview in the parent page.

Questions:

- What's the best way to extract strings from a text file and convert to a dataset in memory and then present it in a datagrid in UI?

- What's the best way to persist and manipulate a large dataset across pages?  Session? or ViewState? Can it be accomplished by LINQ?

The app doesn't interact with a DB.  Once the request is submitted, it will convert the in memory data to a XML file.  What technology can be used to accomplished this?&nb

Error while using exception handling block el 4.1

  

Hi Folks,

 

i am trying to use tyhe exception handling block of Enterprise library 4.1.

 

I just createda polisy and used IndexOutOfRangeException and added a replace handler and a logging handler to it.

I am using the NotifyRethrow PostHandlingAction to the exception.

 

During runtime I am getting an exception on the HandleException event, The exception is added below:

 

 

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 42:             catch (Exception ex)
Line 43:             {
Line 44:                 bool reThrow = ExceptionPolicy.HandleException(ex, "ReplacePolicy");
Line 45:         

Session handling

  

I am beginner to asp.net. I wanna set up a login page in ASP.NET. I dont like to use ASP.NET's own Login facilities.. I wanna use session object..How will I block visiting "user page" by clicking the back button of the browser after successfull logout 

 

Pls help me..


How to generate large pdf's?

  

Hi all,


I am using rdlc reports in my appln. Am trying to generate a huge pdf file which almost consists of 1500 - 2000 pages.
I have used ReportViewer and am adding datasource (Generic collection) to report. But am getting system out of Memory exception as it is a huge file.
Can any one suggest me how to generate large pdf files in asp.net c#


Categories: 
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