VPS еда RAM?

Я очень не хочу не согласиться с Farseeker на этом, но правильный метод (который будет составлять полномочия, и т.д.) состоит в том, чтобы следовать за шагами 1, 2 Farseeker, и 3, но на шаге 4 Вы собираетесь хотеть получить доступ к Профилям пользователей через системные свойства, выберите старый профиль (перечисленный как старое имя пользователя) и нажмите кнопку Copy To, затем просмотрите к новой доменной папке профиля и выберите его, затем нажмите кнопку полномочий Изменения и добавьте пользователя домена (или поочередно Все группа) к полномочиям. Когда Вы входите на как пользователь домена, профиль должен быть точным дубликатом старого профиля.

2
задан 17 December 2011 в 15:08
1 ответ

There's probably sod all you can do directly about the memory usage. Ruby on Rails is massively memory hungry, especially when it's ORM builds out recursive ActiveRecords of deep objects. Apache's not particularly lightweight either.

You might wanna grab MySQL Tuner and see how much RAM the database has stolen at peak usage (table cache, query cache, connection pools).

Adding swap after the fact is easy, but can be massively slow. Especially as most VPSes are on overcommitted, underpowered IO backends.

Let's make a 512MB Swapfile

  1. dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 This creates a 512MB sparse file in /swapfile
  2. mkswap /swapfile1 This formats it for Swap usage
  3. swapon /swapfile1 This tells the kernel to use it for swap
  4. vim /etc/fstab Edit Fstab, and then
  5. /swapfile1 swap swap defaults 0 0 Append this line to the bottom of the file so when you reboot, you get the same swap partition mounted again.
4
ответ дан 3 December 2019 в 10:14

Теги

Похожие вопросы