Обсудим Непонятное зависание сервера

  • Автор темы Автор темы Mr. Sota
  • Дата начала Дата начала

Mr. Sota

Старожил
Пользователь
Баллы
123
Так произошло что наш сборщик серверов уехал и я остался следить за серверами.
Исходные данные:
Сервер i7 3930K(HT ON; TB OFF); 64GB RAM(1333MHz, 4Ch); 100mbit
OS CentOS 6.2 64bit;
Soft MySQL, Apache, Java JDK8

Не от рута через скрин запущен RTK, а он уже запускает bukkit 1.2.5 R3.0 с 10гб. Моды IC2; BC; RP2; Crossover; NuclearControl.
Также от того же юзера еще 3 сервера по такому же алгоритму но 1.2.3 и с меньшим кол-вом рамы.
Еще от двух юзеров запущено по два сервера, один юзер без ртк запускает.
Общий объем выделеной рамы 44гб, потребляется 20. Процессор загружен на ~25%.
Основной сервер(1.2.5) потребляет от 3 до 4.5гб и грузит от 30 до 150% ядра, сильно колеблется. В кроне находится скрипт на перезагрузку всех серверов, выполняется раз в 2 часа.
На 1.2.5 сервере иногда лаги, за 2 часа зависает 2-3 раза. Т.е. просто команды не выполняются но строить можно, через 1 минуту после зависа все вылетают и через 30-60 секунд могут зайти. Самое главное то что построено во время такого не откатывается. Если после зависа(через любое время) сервер очень долго сейвит чанки, около 3 минут, во время этого всякие рид таймаут лезут в лог. Что это может вызывать? Лично моё подозрение падает на плагин multiworld
 
Вот список плагинов. Красным подчеркнул те которые у меня вызывают сомнения.
Из них мультиворлд, плагинрелоадер и бэкап уже удалены.
 

Вложения

  • plugins.PNG
    plugins.PNG
    24,1 КБ · Просмотры: 68
Вот список плагинов. Красным подчеркнул те которые у меня вызывают сомнения.
Из них мультиворлд, плагинрелоадер и бэкап уже удалены.
И вы думаете, что сервер лагать не будет, а поменьше плагинов поставить?!
 
А плагины подключены к MySQL?
Подключены: PEX, iConomy, MyHome, LogBlock, UltraBan
Хост локальный, работает вроде нормально
И вы думаете, что сервер лагать не будет, а поменьше плагинов поставить?!
Если вы не заметили около 20 штук это моды..
 
Не понимаю зачем нагружать сервер лишними плагинами??
У вас стоит OpenINV и Buckup, МyHome - зачем они у вас стоит Еssentials там есть эти функции!
Мне кажется что плагины не должны особо напрегать сервер там куча модов вот с ними нужно начинать возиться!
 
Подключены: PEX, iConomy, MyHome, LogBlock, UltraBan
Хост локальный, работает вроде нормально

Если вы не заметили около 20 штук это моды..
Всё равно их много, у меня на сервере стоит 24 штуки и этого хватает!Что мне кажется неправильно, logblock, лучше не подключать к MySQL, есть другой плагин, получше его!
 
Всё равно их много, у меня на сервере стоит 24 штуки и этого хватает!Что мне кажется неправильно, logblock, лучше не подключать к MySQL, есть другой плагин, получше его!
Вы давайте дельные замечания, а не просто факт что есть лучше. Плюс логблок отлично на мускуле работает на остальных серверах.
Не понимаю зачем нагружать сервер лишними плагинами??
У вас стоит OpenINV и Buckup, МyHome - зачем они у вас стоит Еssentials там есть эти функции!
Мне кажется что плагины не должны особо напрегать сервер там куча модов вот с ними нужно начинать возиться!
Бэкап уже удален как я говорил, с остальными будем думать...


Так у кого то есть идеи? А то раньше такого не наблюдалось. И поможет ли CB++?
 
Вы давайте дельные замечания, а не просто факт что есть лучше. Плюс логблок отлично на мускуле работает на остальных серверах.
Бэкап уже удален как я говорил, с остальными будем думать...


Так у кого то есть идеи? А то раньше такого не наблюдалось. И поможет ли CB++?
Сейчас cb–– актуален, разработка плюсов окончена.
 
Заметил одну ошибку нашего тех админа, он моды в папку модс положил. Исправил. Лаги вроде пропали.
 
Спасибо.



Источник лагов я нашел - ChestShop. При покупке поштучно он за 500 тиков больше 3600мсек выполняется. Как его конфигурировать правильно?
PREFERRED_ECONOMY_PLUGIN: ""
#WHEN NOT USING VAULT. Preferred (if not found, uses any other) economy plugin (iConomy, BOSEconomy, Essentials).
SHOP_INTERACTION_INTERVAL: 100
#(In 1/1000th of a second) How often can a player use the shop sign?
IGNORE_CREATIVE_MODE: true
#Do you want to allow using shops to people in creative mode?
REVERSE_BUTTONS: false
#If true, people will buy with left-click and sell with right-click.
ALLOW_SIGN_CHEST_OPEN: true
#Can shop's chest be opened by owner with right-clicking a shop's sign?
ALLOW_LEFT_CLICK_DESTROYING: true
#If true, if you left-click your own shop sign you won't open chest's inventory, but instead you will start destroying the sign.
ADMIN_SHOP_NAME: "Admin Shop"
#First line of your Admin Shop's sign should look like this
SERVER_ECONOMY_ACCOUNT: ""
#The economy account which Admin Shops should use and to which all taxes will go
TAX_AMOUNT: 0
#Percent of the price that should go to the server's account. (100 = 100 percent)
SERVER_TAX_AMOUNT: 0
#Percent of the price that should go to the server's account when buying from an Admin Shop
SHOP_CREATION_PRICE: 0
#Amount of money player must pay to create a shop
SHOP_REFUND_PRICE: 0
#How much money do you get back when destroying a sign?
ALLOW_MULTIPLE_SHOPS_AT_ONE_BLOCK: false
#Do you want to allow other players to build a shop on a block where there's one already?
ALLOW_PARTIAL_TRANSACTIONS: true
#Can shops be used even when the seller doesn't have enough items? (The price will be scaled adequatly to the item amount)
STACK_UNSTACKABLES: false
#If true, ALL things (including food, etc.) will stack up to 64
SHOW_MESSAGE_OUT_OF_STOCK: true
#Do you want to show "Out of stock" messages?
SHOW_TRANSACTION_INFORMATION_CLIENT: true
#Do you want to show "You bought/sold... " messages?
SHOW_TRANSACTION_INFORMATION_OWNER: true
#Do you want to show "Somebody bought/sold... " messages?
LOG_TO_FILE: false
#If true, plugin will log transactions in its own file
LOG_TO_CONSOLE: true
#Do you want ChestShop's messages to show up in console?
LOG_TO_DATABASE: false
#If true, plugin will log transactions in EBean database
RECORD_TIME_TO_LIVE: 600
#How long should transaction information be stored in the database (in seconds)?
USE_BUILT_IN_PROTECTION: true
#Do you want to use built-in protection against chest destruction?
PROTECT_CHEST_WITH_LWC: false
#Do you want to protect shop chests with LWC?
PROTECT_SIGN_WITH_LWC: false
#Do you want to protect shop signs with LWC?
GENERATE_STATISTICS_PAGE: false
#If true, plugin will generate shop statistics webpage.
STATISTICS_PAGE_PATH: "plugins/ChestShop/website.html"
#Where should your generated website be saved?
STATISTICS_PAGE_GENERATION_INTERVAL: 60
#How often should the website be generated?
TOWNY_INTEGRATION: false
#Do you want to only let people build inside shop plots?
TOWNY_SHOPS_FOR_OWNERS_ONLY: true
#If true, only plot owners are able to build inside a shop plot. If false, every town's resident is able to build there.
WORLDGUARD_INTEGRATION: false
#Do you want to only let people build inside regions?
WORLDGUARD_USE_FLAG: true
#Do you want to only let poeple build inside region flagged by doing /region regionName flag chestshop allow?
HEROES_EXP: 100
#How much Heroes exp should people get for creating a ChestShop?
REMOVE_EMPTY_SHOPS: false
#If true, if the shop is empty, the sign is destroyed and put into the chest, so the shop isn't usable anymore.

BLOCK_SHOPS_WITH_SELL_PRICE_HIGHER_THAN_BUY_PRICE: true
#Should we block shops that sell things for more than they buy? (This prevents newbies from creating shops that would be exploited)

WORLDGUARD_USE_PROTECTION: false
#Do you want ChestShop to respect WorldGuard's chest protection?
 
Спасибо.



Источник лагов я нашел - ChestShop. При покупке поштучно он за 500 тиков больше 3600мсек выполняется. Как его конфигурировать правильно?
PREFERRED_ECONOMY_PLUGIN: ""
#WHEN NOT USING VAULT. Preferred (if not found, uses any other) economy plugin (iConomy, BOSEconomy, Essentials).
SHOP_INTERACTION_INTERVAL: 100
#(In 1/1000th of a second) How often can a player use the shop sign?
IGNORE_CREATIVE_MODE: true
#Do you want to allow using shops to people in creative mode?
REVERSE_BUTTONS: false
#If true, people will buy with left-click and sell with right-click.
ALLOW_SIGN_CHEST_OPEN: true
#Can shop's chest be opened by owner with right-clicking a shop's sign?
ALLOW_LEFT_CLICK_DESTROYING: true
#If true, if you left-click your own shop sign you won't open chest's inventory, but instead you will start destroying the sign.
ADMIN_SHOP_NAME: "Admin Shop"
#First line of your Admin Shop's sign should look like this
SERVER_ECONOMY_ACCOUNT: ""
#The economy account which Admin Shops should use and to which all taxes will go
TAX_AMOUNT: 0
#Percent of the price that should go to the server's account. (100 = 100 percent)
SERVER_TAX_AMOUNT: 0
#Percent of the price that should go to the server's account when buying from an Admin Shop
SHOP_CREATION_PRICE: 0
#Amount of money player must pay to create a shop
SHOP_REFUND_PRICE: 0
#How much money do you get back when destroying a sign?
ALLOW_MULTIPLE_SHOPS_AT_ONE_BLOCK: false
#Do you want to allow other players to build a shop on a block where there's one already?
ALLOW_PARTIAL_TRANSACTIONS: true
#Can shops be used even when the seller doesn't have enough items? (The price will be scaled adequatly to the item amount)
STACK_UNSTACKABLES: false
#If true, ALL things (including food, etc.) will stack up to 64
SHOW_MESSAGE_OUT_OF_STOCK: true
#Do you want to show "Out of stock" messages?
SHOW_TRANSACTION_INFORMATION_CLIENT: true
#Do you want to show "You bought/sold... " messages?
SHOW_TRANSACTION_INFORMATION_OWNER: true
#Do you want to show "Somebody bought/sold... " messages?
LOG_TO_FILE: false
#If true, plugin will log transactions in its own file
LOG_TO_CONSOLE: true
#Do you want ChestShop's messages to show up in console?
LOG_TO_DATABASE: false
#If true, plugin will log transactions in EBean database
RECORD_TIME_TO_LIVE: 600
#How long should transaction information be stored in the database (in seconds)?
USE_BUILT_IN_PROTECTION: true
#Do you want to use built-in protection against chest destruction?
PROTECT_CHEST_WITH_LWC: false
#Do you want to protect shop chests with LWC?
PROTECT_SIGN_WITH_LWC: false
#Do you want to protect shop signs with LWC?
GENERATE_STATISTICS_PAGE: false
#If true, plugin will generate shop statistics webpage.
STATISTICS_PAGE_PATH: "plugins/ChestShop/website.html"
#Where should your generated website be saved?
STATISTICS_PAGE_GENERATION_INTERVAL: 60
#How often should the website be generated?
TOWNY_INTEGRATION: false
#Do you want to only let people build inside shop plots?
TOWNY_SHOPS_FOR_OWNERS_ONLY: true
#If true, only plot owners are able to build inside a shop plot. If false, every town's resident is able to build there.
WORLDGUARD_INTEGRATION: false
#Do you want to only let people build inside regions?
WORLDGUARD_USE_FLAG: true
#Do you want to only let poeple build inside region flagged by doing /region regionName flag chestshop allow?
HEROES_EXP: 100
#How much Heroes exp should people get for creating a ChestShop?
REMOVE_EMPTY_SHOPS: false
#If true, if the shop is empty, the sign is destroyed and put into the chest, so the shop isn't usable anymore.

BLOCK_SHOPS_WITH_SELL_PRICE_HIGHER_THAN_BUY_PRICE: true
#Should we block shops that sell things for more than they buy? (This prevents newbies from creating shops that would be exploited)

WORLDGUARD_USE_PROTECTION: false
#Do you want ChestShop to respect WorldGuard's chest protection?
Может быть из-за того, что он делает запрос к iConomy, а он уже и к БД, а только потом отвечает?
 
Перевел карту и плагины на РАМдиск. Тики стали нормальными. Но время от времени падают до 10-12. Я включаю нолагг екзамен, он показует что больше всего тупит ворлдгвард. Что можно с ним сделать. Он на файле а не на бд
 

Вложения

  • wg.PNG
    wg.PNG
    33,3 КБ · Просмотры: 47
У меня аналогичная проблема с вг, грузит больше всех, тоже стоит на файле.
1fb96aaa16202fc1da641f222183ae44.png
 
Дополняю, сборка очень похожая, а ошибка идентичная, буду ждать помощи вместе с тобой.
 
Назад
Верх Низ