Đăng nhập | Đăng ký

Danh sách thành viên | Cá nhân | Nhà đất, bất động sản

Diễn đàn    Các Projects Dotnetnuke (DNN)    DNN chạy chậm khi load lần đầu

Thành viênNội dung
mylove


1  bài
22-07-2010 04:18:27
Mình gặp vấn đề như thế này: sau 1 khoảng thời gian mà không có ai truy cập website thì website load rất chậm, sau đó mới hoạt động bình thường. Ai có giải pháp khắc phục xin giúp mình với. Cám ơn
 
chuyendoi050


1  bài
18-10-2010 11:00:20
Mình sử dụng DNN 5.4.4 cũng bị trường hợp như vậy, khi load trang web lên lần đầu rất chậm, lần 2 thì nhanh hơn, nhưng khi mình dùng máy khác truy cập vào thì nó cũng vẫn bị chậm như vậy và lần 2 thì nó cũng nhanh hơn(mình nghĩ rằng không phải IIS biên dịch lần đầu nên chậm, vì mình dùng máy khác truy cập vào lúc này đã biên dịch xong rồi ->nó vẫn bị chậm). Có anh em nào biết cách khắc phục lỗi này thì vui lòng giúp đỡ nha. cảm ơn nhiều!
 
aspnet

Lập trình không biên giới
595  bài
19-10-2010 09:07:24
Đây không phải là một lỗi, nó là nguyên lý hoạt động của dotnet (aspnet), lần đầu khi chưa có cache, nó phải load trong CSDL, tổng cộng nó có thể lên đến 50 câu query vào DB SQL, nên nó chậm. Các lần sau số câu query vào DB giảm xuống còn 1-10 query nên tốc độ nhanh.

Đồng chí nào (ví dụ các thầy) bảo "lỗi" thì cứ tặng 1 câu : bạn (thày) nên đi học lại nhập môn ASPNET.
---
Coding for food
http://yenbai.awas.vn
http://tknd.vn
http://coder.awas.vn
http://awas.vn
http://bieuquyet.vn
http://webhocsinh.com
 
wave_l8_0065


19  bài
08-12-2010 11:12:13
Bạn có thể hướng dẫn cho mình làm sao để cache trong DNN để giảm thiểu thời gian load trang không?
Thanks bạn nhiều
 
dechangcum


3  bài
12-01-2011 03:33:47
bạn thử cài đặt này xem sao nhé:
Host Settings
Set the "Performance Setting" to "Heavy Caching".
Depending upon Hosting resources, set the "Compression Setting" to "Deflate Compression" or "GZip Compression".
Depending upon Hosting resources, enable "Whitespace filter" (not of much use, if you have also enabled compression).
Disable "Users Online" for Installations on which "Users Online" module is NOT used.
Set the "Scheduler Mode" to "Timer Method". "Request Mode" causes the Scheduler to be invoked on every request to a page of your installation.
On sites where Logging is NOT mission critical, enable "Event Log Buffer", so that log entries are buffered before being flushed.
On sites where the Site files do NOT update frequently, disable "Auto-sync filesystem".
Uncheck "Enable Ajax" on portals that are just informative, and do NOT involve management tasks.
Admin Settings
On DNN 5 portals, unselect "Enable Skin Widgets" if they are not being used to prevent redundant skin file downloads.
Log Settings
Disable all Logs NOT required on an installation. In particular,
Disable "Application Start".
Disable "Application End".
You might also want to disable others like "Scheduler Started", "Scheduler Event Started" etc. depending upon if they are not much useful to you. However, "Sceduler event Failure" should not be disabled to enable debugging of any scheduler issues.
Schedule Settings
Disable or customize all Schdules NOT required on an installation. In particular,
Configure "DotNetNuke.Services.Scheduling.PurgeScheduleHistory, DOTNETNUKE" to run every 5 days (or whatever fits best to your portal depending upon how much Schedule Log your portal generates).
Configure "DotNetNuke.Services.Search.SearchEngineScheduler, DOTNETNUKE" to run every 5 days and retry after 1 day (again depending upon what fits best to your portal. There is no one size fits all approach here).
 
thinhkq


5  bài
01-03-2011 01:23:38
Cache có nhiều cách cache lắm. Cache trên máy chủ, cache code, cache trên IIS và cache trong pỏtal cảu DNN nữa
 
raokhang


3  bài
09-02-2014 09:06:34
Làm thế nào để Dotnetnuke chạy nhanh hơn

Khi làm xong 1 site dotnetnuke, chúng ta thấy performance của nó rất chậm, lý do chúng ta chưa tắt đi một số thứ mà ko sử dụng, chưa tối ưu code... sau đây là những bước cấu hình mà mình đã làm
1: host> host settings
2: Appearance
uncheck "Show Copyright Credits"
3: Advanced -> Authentication Settings
uncheck những provider trong portal mà ko sử dụng. ví dụ :LiveId and OpenId providers
4:Advanced -> Performance Settings
"Module Caching Method" ==> Memory
"Performance Setting" ==> HeavyCaching
5: Advanced -> Other Settings
Enable :"Event Log Buffer"
6: Host -> Scheduler Changes
Ở Search EngineScheduler: thay đổi 12/24 hours => cái này giảm lớn việc load trên server
7: xoa evenlog, sitelog, schedulehistory ==> sau khi mình xóa dữ liệu các bảng này, thấy tốc độ thực thi tăng lên đáng kể
Phần này mình sẽ trình bày sau với tiêu đề là:
Làm thế nào để xóa evenlog, sitelog, schedulehistory một cách tự động
8: tối ưu css, javasrcipt, menu.... xóa bỏ đi những thứ ko sử dụng
9: sử dụng cache để lưu trữ thông tin nhằm tăng khả năng scalability( rất hiệu quả ở các site nào có số lượng truy cập lớn)
Phần này mình sẽ trình bày sau với tiêu đề là:
Sử dụng cache để tăng scalability và tốc độ thực thi

Đây là một số link mình tham khảo:

http://support.powerdnn.com/KB/a494/my-dnn-website-is-slow.aspx
http://mitchelsellers.com/blogs/2009/01/05/how-i-get-my-dotnetnuke-sites-to-run-so-fast.aspx
http://www.dnnprofessor.com/Articles/tabid/223/ID/188/Why_Does_My_DotNetNuke_Site_Start_So_Slow_.aspx
http://mitchelsellers.com/blogs/2008/03/13/dotnetnuke-host-settings-explained.aspx
http://mitchelsellers.com/blogs/articletype/articleview/articleid/198/pageid/102.aspx

các bài viết liên quan:
p1: Làm thế nào để dotnetnuke chạy nhanh hơn
p2: Làm thế nào để xóa evenlog, sitelog, schedulehistory một cách tự động
p3: Sử dụng cache để tăng scalability và tốc độ thực thi
p4: Làm thế nào để chôm được tuyệt chiêu và ứng dụng nó một cách hiệu quả


Site tham khảo:
http://raokhang.blogspot.com/
http://raokhang.com
 

Chủ đề gần đây :

Cùng loại :

 
Tên file Người đăng Ngày Lượt
vspforum.zip
Ma nguon vspforum ngay xua
aspnet 4/18/2023 6:38:37 AM 6
pdfjs.rar
pdfjs 2017 : hiển thị tốt trên iphone 11, 12, 13 không lỗi, bản 2012 sẽ lỗi trên iphone
aspnet 6/21/2022 11:52:48 AM 2
pdfjs2.rar
Xem file pdf bằng viewer.hml cua pdfjs (thư viện chuẩn mozilla) 2012. https://mozilla.github.io/pdf.js/getting_started/#download có thể download bản prebuild tại đây
aspnet 6/21/2022 11:52:04 AM 2
runner.zip
using three.js, orbitcontrol to view an object move random on map. Di chuyển 1 đồ vật ngẫu nhiên trên bản đồ, sử dụng với demo nhân viên di chuyển trong văn phòng. Toàn js download về là chạy
aspnet 12/5/2019 5:55:14 PM 0
gmap.zip
google map + marker
aspnet 7/17/2019 2:25:05 PM 1
vinsmarthomeservice.zip
java post json to api, use AsyncTask, event listener
aspnet 7/9/2019 5:00:10 PM 1
fblogin.zip
Login facebook bang javascript SDK
aspnet 7/9/2019 9:16:37 AM 0
autocomplete-location.zip
autocomplete location geo from google place, html + js
aspnet 7/4/2019 4:37:55 PM 2
WebAPI.zip
api for android access db (v1.0.0)
aspnet 7/4/2019 9:14:17 AM 8
KydientuPdf.zip
Ky dien tu file PDF su dung itextsharp
aspnet 4/9/2019 3:30:37 PM 9
GooglePlusLogin.zip
Login Google Plus account, C#, web asp.net ver2.0. Simple connect google APIs. Send key, get token, get full account info
aspnet 6/1/2018 10:41:12 AM 11
WebApplication1.rar
Sample su dung thuat toan ma hoa tripDES, co khoa bi mat (privateKey)
aspnet 3/30/2018 10:06:35 PM 8
NETMdbToolsTestApp.rar
dotNet MdbTools for Access 2003/2007/2016 without Microsoft Jet Engine, source C#, https://www.codeproject.com/Articles/283626/MsAccess-MdbTools-with-MFC-and-NET
aspnet 3/26/2018 11:43:16 PM 1
Cryptography_MD5_TriDES_src.zip
Thuật toán mã hóa 2 chiều TriDES, gồm Encrypt và Decrypt, aspnet 2.0
aspnet 3/22/2018 11:20:44 AM 3
mvc.rar
sample project MVC on C#
aspnet 3/20/2018 9:25:36 AM 9
EduPortal.rar
Edu portal frame work for VB.NET
aspnet 3/14/2018 12:00:41 AM 13
AutoEntity.rar
Gencode vb.net visual studio 2015. dotnet v2.0
aspnet 3/13/2018 11:59:16 PM 2
GenCode.rar
Gencode XML, XSLT, Info, DAL .. engine enterprise for quick app database
aspnet 2/5/2018 9:37:28 AM 9
DataXml.rar
Read DB from SQL to XML file, Convert string TCVN to Unicode
aspnet 1/29/2018 2:15:45 PM 4
DesktopModules.rar
Module quản lý tin tức, CMS, quản lý nhóm tin trên dotnetnuke 6.x
aspnet 3/7/2013 4:47:49 PM 1714
CODERVN.NET
Công ty cổ phần công nghệ và dịch vụ AWAS
Công ty cổ phần công nghệ và dịch vụ AWAS, cổng thông tin, chính phủ điện tử, phần mềm quản lý điểm, quản lý sinh viên, http://awas.vn, http://awas.com.vn, phần mềm ứng dụng, dịch vụ công trực tuyến, thiết kế website, thiet ke web, thiết kế web, điện lực, phần mềm quản lý đào tạo, cao đẳng, đại học,cổng thông tin tích hợp, cổng thông tin điện tử, webportal, thư viện điện tử, electric library, library online, email, web, quản lý quan hệ khách hàng, CRM, dịch vụ công trực tuyến, phần mềm hành chính một cửa,