Я очень не хочу не согласиться с Farseeker на этом, но правильный метод (который будет составлять полномочия, и т.д.) состоит в том, чтобы следовать за шагами 1, 2 Farseeker, и 3, но на шаге 4 Вы собираетесь хотеть получить доступ к Профилям пользователей через системные свойства, выберите старый профиль (перечисленный как старое имя пользователя) и нажмите кнопку Copy To, затем просмотрите к новой доменной папке профиля и выберите его, затем нажмите кнопку полномочий Изменения и добавьте пользователя домена (или поочередно Все группа) к полномочиям. Когда Вы входите на как пользователь домена, профиль должен быть точным дубликатом старого профиля.
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
dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
This creates a 512MB sparse file in /swapfilemkswap /swapfile1
This formats it for Swap usageswapon /swapfile1
This tells the kernel to use it for swapvim /etc/fstab
Edit Fstab, and then/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.