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

Thành viênTrả lời
mylove


1  bài
22-7-2010 16: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:0: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
608  bài
19-10-2010 9:7: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
8-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-1-2011 15: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
1-3-2011 13: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
9-2-2014 21:6: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 Mô tả chi tiết Ngày
NWeb.zip (1) Module đơn giản Newsweb trên Dotnetnuke v10.x.x.x10/18/2025 8:08:11 AM
vspforum.zip (11) Ma nguon vspforum ngay xua4/18/2023 6:38:37 AM
pdfjs.rar (2) 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 iphone6/21/2022 11:52:48 AM
pdfjs2.rar (2) 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 đây6/21/2022 11:52:04 AM
runner.zip (0) 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ạy12/5/2019 5:55:14 PM
gmap.zip (1) google map + marker7/17/2019 2:25:05 PM
vinsmarthomeservice.zip (1) java post json to api, use AsyncTask, event listener7/9/2019 5:00:10 PM
fblogin.zip (0) Login facebook bang javascript SDK7/9/2019 9:16:37 AM
autocomplete-location.zip (2) autocomplete location geo from google place, html + js7/4/2019 4:37:55 PM
WebAPI.zip (8) api for android access db (v1.0.0)7/4/2019 9:14:17 AM