iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
We are having performance issue with the WebGrid.
On a brand new clean web application project, just by putting the WebGrid on the page causes the page to slow down in the PreRender process.
See trace below, the PreRender step uses .41 second, and this is an empty page, with just the WebGrid on the page with default settings.
We've done some testings, and it seems that it doens't have this issue if we change ViewStateStorage to "None", but want to know is it expected to be this slow with the default settings of "Client" for ViewStateStorage. The speed also decreases with more instances of the grid on the page, eg if we have two grid on one page, the speed slows to .8 seconds.
Request Details
Session Id:
5v32jc2lprxu2d555vjtfp45
Request Type:
GET
Time of Request:
11/2/2009 10:51:41 AM
Status Code:
200
Request Encoding:
Unicode (UTF-8)
Response Encoding:
Trace Information
Category
Message
From First(s)
From Last(s)
aspx.page
Begin PreInit
End PreInit
4.5E-05
0.000045
Begin Init
6.444E-05
0.000019
End Init
0.0004564
0.000392
Begin InitComplete
0.00048084
0.000024
End InitComplete
0.00049676
0.000016
Begin PreLoad
0.00058236
0.000086
End PreLoad
0.00059964
0.000017
Begin Load
0.00061612
End Load
0.00087248
0.000256
Begin LoadComplete
0.00089472
0.000022
End LoadComplete
0.00091044
Begin PreRender
0.00092592
0.000015
End PreRender
0.41778468
0.416859
Begin PreRenderComplete
0.417837
0.000052
End PreRenderComplete
0.41802892
0.000192
Begin SaveState
0.41894152
0.000913
End SaveState
0.4194884
0.000547
Begin SaveStateComplete
0.41951864
0.000030
End SaveStateComplete
0.41953692
0.000018
Begin Render
0.41955384
End Render
0.42292328
0.003369
Control Tree
Control UniqueID
Type
Render Size Bytes (including children)
ViewState Size Bytes (excluding children)
ControlState Size Bytes (excluding children)
__Page
ASP.default_aspx
8602
0
ctl02
System.Web.UI.LiteralControl
175
ctl00
System.Web.UI.HtmlControls.HtmlHead
632
ctl01
System.Web.UI.HtmlControls.HtmlTitle
19
ISMenu.css
82
WG_CommonStyles
176
WG5_Default_Elegant
197
ctl03
145
ctl04
14
form1
System.Web.UI.HtmlControls.HtmlForm
7761
ctl05
27
WebGrid1
ISNet.WebUI.WebGrid.WebGrid
4492
660
WebGrid1$WebGrid1_h
System.Web.UI.HtmlControls.HtmlInputHidden
75
ctl06
24
ctl07
20
Session State
Session Key
Value
Application State
Application Key
ISThemeEnabled
System.Boolean
False
ISRes_Registered
True
AsmRes_ISNet.WebUI.WebGrid.Resources
ISRes_Compressed
Bottom of Form
For improving WebGrid’s server performance, we recommend you to set the value of ViewStateStorage property to “None”, which result in best performance.
Our WebGrid development team said that there is binary serialization process in the middle of pre-render event that cost our head time. The team has contacted Microsoft for this matter. It is confirmed that the process is being handled by .NET Framework. Due to the information that I got from our dev team, the Microsoft team said that it will be enhanced in .NET Framework 4.0.
Hope this help.
We need to check and test this issue for further investigation.Could you please provide us any useful information about your test environment, such as whether it’s development or deployment environment; the version of the operating system; is it 32-bit or 64-bit operating system; etc.
Thank you.
Hi Yudi,
It is happening on Windows 2003 SP2 Server 32bit when deployed to a test server running under IIS.
Also same thing happening on the development machine running Windows Vista 64bit under the development web server.
To reproduce, just create a blank ASP.NET web application, put the grid on a blank aspx page from the designer, enable tracing and you'll see the performance issue.
Thanks
I enclosed the screenshot of the trace result of a single WebGrid on a page. It was taken from PC with Microsoft Windows Server 2003 R2 Enterprise Edition Service Pack 2. The build version of WebGrid 7.0 is 306 and WebUI.NET Framework 3.0 is 705.
I followed carefully the steps that you describe in the previous post. On the initial load of WebGrid page, it will load scripts, styles, etc; it takes 0.4 second on the pre-render. But after I refresh the page, it only takes 0.2 second for the pre-render.
Yes, that pretty much the behaviour we are seeing. And if you put more grid instances on the page, you'll see the time in pre-render increases.
We want to know from Intersoft, is this a performance bug in the grid? And is there a workaround?
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname