CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.microsoft_application_blocks Tags:
Item Type: NewsGroup Date Entered: 6/27/2005 12:10:59 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 16 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
jmodha
Asp.Net User
DAAB - Performace Issues..6/27/2005 12:10:59 PM

0/0

I've been using the DAAB for sometime and the other day I migrated my project to the TES server. Upon doing so, I noticed some strange performace issues with my web application, so I decided to create two simple web applications, one which uses the DAAB, and the other which uses regular ADO.Net. The purpose of these applications was so that I could stress test them using the Microsoft Application Center Test (ACT).

Both of these applications are very simple, they call a stored proc and cycle through the results to display them on the page, below is the code:

DAAB Application:

    public class WebForm1 : System.Web.UI.Page
    {
        private void Page_Load(object sender, System.EventArgs e)
        {
            Database dbMCS = DatabaseFactory.CreateDatabase();
            DBCommandWrapper sp = dbMCS.GetStoredProcCommandWrapper("spMenuGM02");

            IDataReader reader = reader = dbMCS.ExecuteReader(sp);

            while (reader.Read())
            {
                Response.Write (reader.GetString(4));
                Response.Write ("<br>");
            }

            reader.Close();
        }
    }


ADO.Net Application:

    public class WebForm1 : System.Web.UI.Page
    {

        SqlDataReader    rdr = null;
        SqlConnection    con = null;
        SqlCommand        cmd = null;

        private void Page_Load(object sender, System.EventArgs e)
        {
        string ConnectionString = dbConnectionString;
        con = new SqlConnection(ConnectionString);
        con.Open();

        cmd = new SqlCommand("spMenuGM02");
        cmd.Connection = con;

        rdr = cmd.ExecuteReader();

        while (rdr.Read())
        {
            Response.Write (rdr.GetString(4));
            Response.Write ("<br>");
        }

            rdr.Close();
            cmd.Connection.Close();
            con.Close();
        }
    }

So as you can see, both of these applications are failry straight forward and nothing complex, however, when i test these applications through the ACT software, the DAAB version simply just breaks down, where as the regulare ADO.Net version achieves a respectable 515 succusfull requests per second with NO HTTP errors.

Both of these tests were configured for 100 simultanouse client connections running for a period of 1 minute.

For the ADO.Net application:
Response Codes
 


Response Code: 200 - The request completed successfully.


Count: 28,589


Percent (%): 100.00

For the DAAB application:
Response Codes
 


Response Code: 500 - The server encountered an unexpected condition that prevented it from fulfilling the request.


Count: 143


Percent (%): 8.77

 


Response Code: 200 - The request completed successfully.


Count: 1,487


Percent (%): 91.23

So as you can see, a lot more errors for the DAAB application.

I then investigated this a little further and noticed that there were hundreds of errors logged in the event log:
"Data connection failed to open: database=dbmcsdev;server=3illserver01;"

I'm assuming this is the reason why the DAAB version of the code is so slow compared to the regular ADO.Net.

Has anyone else experianced the same issue? Have a configured the DAAB incorrectly..? I am using a regular predefined connection string for the DAAB version of the application so not really sure how I could've configured it wrong??

I should mention that my database and webserver reside on the same machine so i dont think that there were any network issues that causes these performace/database issues.

Anyways, if anyone out there could help me out or confirm my results I would really appreciate it. As the last thing I want to do is convert all my code back to ADO.Net.



1 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

3015 Training - novell.community.certifications.cle - Web Programming ... 3015 Training, > ROOT > NEWSGROUP > Novell Forums > novell.community.certifications.cle, Date: 11/16/2004 8:10:45 ... daab - performace issues. ...
Chapter 12 - Improving ADO.NET Performance Performance and Scalability Issues. Design Considerations. Implementation Considerations. ... Performance issues to consider include the fact that XML strings ...
Data Points: The Enterprise Library Data Access Application Block, Part 1 However, it can also log messages to a database by using the DAAB. ... Reflection: Dodge Common Performance Pitfalls to Craft Speedy Applications ...
DAAB 2.0 performance benefit over Orahelper(replica of SQL Helper ... DAAB 2.0 performance benefit over Orahelper(replica of SQL Helper) Was this post helpful ? ... any major performance benefit we are gaining from DAAB 2.0 over ...
San Francisco Drug Abuse Advisory Board (DAAB) DAAB Planning and ... DAAB Planning and Evaluation Committee Minutes. Page 1 of 3. August 29, 2000 ... performance has been less than adequate in two areas or other issues are ...
Data Access in SOA Context ... Microsoft Data Access Application Block (DAAB) will inevitably slow down the services. ... Network performance issues. Varying data source security priorities ...
Enterprise Library 2.0 DAAB and ADO.NET 2.0 Batch Updates Feature ... taken by the SqlDataAdapter when it issues commands against the database. ... this is supposed to increase the performance of your Data Access Layer by ...



 
All Times Are GMT