PDA

View Full Version: Giải quyết Cách sử dụng CPU Tăng gấp đôi



bhanuprasad1981
23-11-09, 17:34
tôi đã mua ngày hôm qua vbet chính nó và tôi thấy mysql sử dụng đã tăng lên rất nhiều và sử dụng CPU đã được tăng gấp đôi cho diễn đàn của tôi, lý do làm thế nào tôi có thể kiểm soát được những gì?

vBET
23-11-09, 19:22
vBET là không làm gì cho các trang bình thường. Thế hệ bình thường của diễn đàn của bạn không thay đổi.

Tất nhiên, bạn đã thực hiện từ diễn đàn của bạn trong các ngôn ngữ khác và điều này không phải là lấy từ đâu - các trang dịch nhu cầu nguồn lực bổ sung, nhưng không nhiều như bạn mô tả. Xin bỏ hoang cách thay đổi lưu lượng truy cập vào diễn đàn của bạn - nếu đột nhiên bạn tạo các trang nhiều hơn nữa đó là bình thường mà CPU và các câu truy vấn được yêu cầu cho điều này. Vì vậy, ít hơn CPU của khóa học là cần thiết khi bạn làm những việc khác, nhưng chỉ là một tiến bộ sử dụng ít và lớn có liên quan đến lưu lượng truy cập lớn hơn.

Xin lưu ý rằng tại các dữ liệu khởi đầu cho bản dịch được lưu trữ. Điều này có nghĩa rằng thế hệ tiếp theo của trang lưu trữ sẽ được nhanh hơn nhiều (các truy vấn chưa được thực hiện, kể từ khi dịch đầu tiên là nhìn vào bộ nhớ cache, sau đó được lấy từ Google, nhưng thời gian tiếp theo là lấy từ bộ nhớ cache với bản dịch khác có liên quan).

Làm thế nào bạn có thể an toàn CPU và các truy vấn:

Hãy chắc chắn rằng bạn đang sử dụng phiên bản cuối cùng. Chúng tôi đã có lỗi nhỏ trong 3.2.1 mà thực sự có thể cải thiện việc sử dụng CPU ngay cả đối với các trang không dịch (đã được sửa chữa trong 3.2.2). Vì vậy, nếu bạn đang sử dụng 3.2.1 nó thực sự là lỗi của chúng tôi - vui lòng cập nhật đến 3.2.2
Bạn có thể vô hiệu hóa một số bản dịch ở xin ăn - khi bộ nhớ cache sẽ được lấp đầy, bạn có thể thêm những người mới theo thời gian.
Hãy kiểm tra làm bạn đã thiết lập bằng cách sử dụng các truy vấn bởi serie - điều này sẽ ít hơn rất nhiều các truy vấn cơ sở dữ liệu cho dữ liệu lưu trữ.
Vô hiệu hoá dịch của Google bản đồ nếu không được sử dụng
Sau đó nó sẽ là quan trọng cho bạn để có TTL cache thích hợp. Lớn hơn là tốt hơn, nhưng không hơn 15 ngày, kể từ ngày được công bằng với TOS của Google
Ngoài ra nếu bạn có diễn đàn thực sự rất lớn, bạn sẽ cần phải thay đổi chiến lược xoá bộ nhớ cache của bạn chi tiết trong mô tả tham số
Để sử dụng hiệu suất tốt nhất "Luôn luôn tin tưởng người sử dụng" chiến lược
Vô hiệu hóa tùy chọn "không dịch tên người dùng"
Chặn robot cho các trang không có liên quan như các thành viên trang, lịch và như vậy. Robot có khả năng truy cập mọi nơi trên diễn đàn của bạn, nhưng chủ yếu là diễn đàn không cần các trang thành viên được lập chỉ mục, nhưng vẫn còn nó sẽ mất tài nguyên diễn đàn của bạn để dịch các trang này. Vì vậy, ngăn chặn các robot cho tất cả các trang không có liên quan trong tất cả các bản dịch. Dưới đây bạn sẽ tìm thấy ví dụ robots.txt cho điều đó - điều này là một phần của robots.txt được sử dụng bởi diễn đàn này (lưu ý URL của thay đổi bởi Lên, và diễn đàn của chúng tôi sử dụng thư mục con trong URL).




User-agent: *
sitemap: http://www.vbenterprisetranslator.com/forum/sitemap_index.xml.gz
Disallow: /forum/members/
Disallow: /forum/af/members/
Disallow: /forum/sq/members/
Disallow: /forum/ar/members/
Disallow: /forum/be/members/
Disallow: /forum/bg/members/
Disallow: /forum/ca/members/
Disallow: /forum/zh-CN/members/
Disallow: /forum/hr/members/
Disallow: /forum/cs/members/
Disallow: /forum/da/members/
Disallow: /forum/nl/members/
Disallow: /forum/en/members/
Disallow: /forum/et/members/
Disallow: /forum/tl/members/
Disallow: /forum/fi/members/
Disallow: /forum/fr/members/
Disallow: /forum/gl/members/
Disallow: /forum/de/members/
Disallow: /forum/el/members/
Disallow: /forum/iw/members/
Disallow: /forum/hi/members/
Disallow: /forum/hu/members/
Disallow: /forum/is/members/
Disallow: /forum/id/members/
Disallow: /forum/ga/members/
Disallow: /forum/it/members/
Disallow: /forum/ja/members/
Disallow: /forum/ko/members/
Disallow: /forum/lv/members/
Disallow: /forum/lt/members/
Disallow: /forum/mk/members/
Disallow: /forum/ms/members/
Disallow: /forum/mt/members/
Disallow: /forum/no/members/
Disallow: /forum/fa/members/
Disallow: /forum/pl/members/
Disallow: /forum/pt/members/
Disallow: /forum/ro/members/
Disallow: /forum/ru/members/
Disallow: /forum/sr/members/
Disallow: /forum/sk/members/
Disallow: /forum/sl/members/
Disallow: /forum/es/members/
Disallow: /forum/sw/members/
Disallow: /forum/sv/members/
Disallow: /forum/zh-TW/members/
Disallow: /forum/th/members/
Disallow: /forum/tr/members/
Disallow: /forum/uk/members/
Disallow: /forum/vi/members/
Disallow: /forum/cy/members/
Disallow: /forum/yi/members/
Disallow: /forum/calendar.php
Disallow: /forum/af/calendar.php
Disallow: /forum/sq/calendar.php
Disallow: /forum/ar/calendar.php
Disallow: /forum/be/calendar.php
Disallow: /forum/bg/calendar.php
Disallow: /forum/ca/calendar.php
Disallow: /forum/zh-CN/calendar.php
Disallow: /forum/hr/calendar.php
Disallow: /forum/cs/calendar.php
Disallow: /forum/da/calendar.php
Disallow: /forum/nl/calendar.php
Disallow: /forum/en/calendar.php
Disallow: /forum/et/calendar.php
Disallow: /forum/tl/calendar.php
Disallow: /forum/fi/calendar.php
Disallow: /forum/fr/calendar.php
Disallow: /forum/gl/calendar.php
Disallow: /forum/de/calendar.php
Disallow: /forum/el/calendar.php
Disallow: /forum/iw/calendar.php
Disallow: /forum/hi/calendar.php
Disallow: /forum/hu/calendar.php
Disallow: /forum/is/calendar.php
Disallow: /forum/id/calendar.php
Disallow: /forum/ga/calendar.php
Disallow: /forum/it/calendar.php
Disallow: /forum/ja/calendar.php
Disallow: /forum/ko/calendar.php
Disallow: /forum/lv/calendar.php
Disallow: /forum/lt/calendar.php
Disallow: /forum/mk/calendar.php
Disallow: /forum/ms/calendar.php
Disallow: /forum/mt/calendar.php
Disallow: /forum/no/calendar.php
Disallow: /forum/fa/calendar.php
Disallow: /forum/pl/calendar.php
Disallow: /forum/pt/calendar.php
Disallow: /forum/ro/calendar.php
Disallow: /forum/ru/calendar.php
Disallow: /forum/sr/calendar.php
Disallow: /forum/sk/calendar.php
Disallow: /forum/sl/calendar.php
Disallow: /forum/es/calendar.php
Disallow: /forum/sw/calendar.php
Disallow: /forum/sv/calendar.php
Disallow: /forum/zh-TW/calendar.php
Disallow: /forum/th/calendar.php
Disallow: /forum/tr/calendar.php
Disallow: /forum/uk/calendar.php
Disallow: /forum/vi/calendar.php
Disallow: /forum/cy/calendar.php
Disallow: /forum/yi/calendar.php
Disallow: /forum/search.php
Disallow: /forum/af/search.php
Disallow: /forum/sq/search.php
Disallow: /forum/ar/search.php
Disallow: /forum/be/search.php
Disallow: /forum/bg/search.php
Disallow: /forum/ca/search.php
Disallow: /forum/zh-CN/search.php
Disallow: /forum/hr/search.php
Disallow: /forum/cs/search.php
Disallow: /forum/da/search.php
Disallow: /forum/nl/search.php
Disallow: /forum/en/search.php
Disallow: /forum/et/search.php
Disallow: /forum/tl/search.php
Disallow: /forum/fi/search.php
Disallow: /forum/fr/search.php
Disallow: /forum/gl/search.php
Disallow: /forum/de/search.php
Disallow: /forum/el/search.php
Disallow: /forum/iw/search.php
Disallow: /forum/hi/search.php
Disallow: /forum/hu/search.php
Disallow: /forum/is/search.php
Disallow: /forum/id/search.php
Disallow: /forum/ga/search.php
Disallow: /forum/it/search.php
Disallow: /forum/ja/search.php
Disallow: /forum/ko/search.php
Disallow: /forum/lv/search.php
Disallow: /forum/lt/search.php
Disallow: /forum/mk/search.php
Disallow: /forum/ms/search.php
Disallow: /forum/mt/search.php
Disallow: /forum/no/search.php
Disallow: /forum/fa/search.php
Disallow: /forum/pl/search.php
Disallow: /forum/pt/search.php
Disallow: /forum/ro/search.php
Disallow: /forum/ru/search.php
Disallow: /forum/sr/search.php
Disallow: /forum/sk/search.php
Disallow: /forum/sl/search.php
Disallow: /forum/es/search.php
Disallow: /forum/sw/search.php
Disallow: /forum/sv/search.php
Disallow: /forum/zh-TW/search.php
Disallow: /forum/th/search.php
Disallow: /forum/tr/search.php
Disallow: /forum/uk/search.php
Disallow: /forum/vi/search.php
Disallow: /forum/cy/search.php
Disallow: /forum/yi/search.php

bhanuprasad1981
24-11-09, 06:22
1. tôi đang sử dụng phiên bản mới nhất
2. làm thế nào để vô hiệu hóa một số bản dịch?
3. làm thế nào / nơi mà tôi thiết lập các truy vấn loại
4. tôi không sử dụng bản đồ google
5. bộ nhớ cache là 15 ngày, kể từ ngày đã
6. xóa các thiết lập bộ nhớ cache tôi sử dụng là "bình thường xoá"
7. tôi đã sử dụng "người dùng tin tưởng Luôn luôn"
8. khách diễn đàn của tôi không thể nhìn thấy trang thành viên, lịch vv tôi đã vô hiệu hóa chúng trên gợi ý tại diễn đàn Lên

vBET
24-11-09, 16:52
2. Trong Flags trình đơn
3. Misc - nếu bạn không thực hiện những thay đổi sau đó bạn có nó đặt phù hợp
6. Sau 2 tuần, bạn sẽ thấy không ti phù hợp với diễn đàn của bạn. Nếu không sử dụng một trong những khác.

bhanuprasad1981
24-11-09, 18:25
mysql lỗi lạ không bao giờ nhìn thấy trước khi có gần 30 trong số này trong 24 giờ qua:

Cơ sở dữ liệu lỗi trong vBulletin 3.8.2:

SQL không hợp lệ:

SELECT thread.threadid, thread.title, thread.lastpost, thread.forumid, thread.replycount,
thread.lastposter, thread.dateline, thread.postusername, thread.postuserid, thread.iconid,
IF (xem <= replycount, replycount 1 lần tải) AS điểm, thread.visible, thread.open,
user.username, user.userid, user.usergroupid,
IF (displaygroupid = 0, user.usergroupid, displaygroupid) AS displaygroupid
TỪ chủ đề AS chủ đề
LEFT JOIN người sử dụng AS người sử dụng ON (user.username = thread.lastposter)
Nếu không ISNULL (thread.threadid) và thread.visible = '1 'và thread.open = '10'!
VÀ thread.forumid KHÔNG
TỰ DO Dateline giảm dần
LIMIT 0, 10;

MySQL Error: Bạn có một lỗi trong cú pháp SQL của bạn, kiểm tra hướng dẫn sử dụng tương ứng với phiên bản máy chủ MySQL của bạn cho cú pháp quyền sử dụng gần '8, 9,10,64,67,68,69,71,72,77 78,79,80,83,84,88,89,91,92,93,94,95,97,98,99,100,102 'ở dòng 9
Error Number: 1064
Yêu cầu ngày: Thứ Ba 24 tháng 11, 2009 08:18:03
Lỗi ngày: Thứ 3 24 Tháng 11, 2009 08:18:03
Script: http://www.mysite.org/search.php
Giới thiệu:
Địa chỉ IP: xx.xx.xx.xx
Username: Chưa đăng ký
Classname: vB_Database_MySQLi
MySQL Version:

vBET
24-11-09, 18:49
Đây là lý do trong SQL của bạn: 142,, 8

Nó không liên quan với vBET - vBET không sửa đổi bất kỳ truy vấn hiện có và sử dụng chỉ có 3 bảng bộ nhớ cache trong các truy vấn riêng của nó.

vBET
25-11-09, 01:55
Cũng là một trong nhiều gợi ý cho thực hiện - bạn có thể vô hiệu hóa tùy chọn "không dịch tên người dùng".

Tôi sẽ thêm nó vào trả lời đầu tiên.

bhanuprasad1981
28-11-09, 07:46
Damm này sql lỗi ám ảnh tôi, khi xác minh ít, tôi tìm thấy ip thuộc về một số nhện Nga, nó không phải là sau nad robots.txt vẫn tiếp tục đi cho serach.php: (bất kỳ ý tưởng về Yandex này **** nhện, làm thế nào tôi chặn điều này: (

vBET
28-11-09, 20:51
Damm này sql lỗi ám ảnh tôi, khi xác minh ít, tôi tìm thấy ip thuộc về một số nhện Nga, nó không phải là sau nad robots.txt vẫn tiếp tục đi cho serach.php: (bất kỳ ý tưởng về Yandex này **** nhện, làm thế nào tôi chặn điều này: (

Tìm IP của nó và ngăn chặn nó trong các tùy chọn BB hoặc trên tường lửa.

Automatic Translations (Powered by Google, Microsoft®, Yandex, SDL Language Cloud, IBM Watson and Apertium):
AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translated to other languages supported by vB Enterprise Translator 4.10.1