Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to free your RAM for PW Server or Try offline pw server with minimum RAM

Newbie Spellweaver
Joined
Jan 3, 2017
Messages
70
Reaction score
12
Hi , I back again :w00t:
Yaps simple tips for you who may run a server with little ram, this is possible, I try to run the 1.5.1 server with 1.5GB ram, but for the offline version, but perhaps to the online version with 2gb ram can only play 1-5 player * possible:eek:tt1:
This makes it possible for you to run the server in ram slightly


Okay straight to the point only;)
because I use the virtual box so first install the ssh server, so it can be controlled via putty
if you have root access, just login with root
but if not, please login with your account user but need SUDO access

First, in order to ram fewer please you disable GUI

* Attention: this is only for those who are already proficient OR pw server you've finished and only controlled via iweb, putty, or WinSCP.
Although the GUI is disabled you can upload, edit, and others
but if you want to return to the position of the GUI you just edit the files grub * tutorial below


* Delish non-active GUI that the user does not run other applications *

#Disabling GUI :
Code:
1.Open terminal
2.sudo nano /etc/default/grub OR sudo gedit /etc/default/grub
3.Find this Line : [COLOR=#111111]GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" [/COLOR]could be just "quiet"[COLOR=#111111]
[/COLOR]4.Change it to : [COLOR=#111111]GRUB_CMDLINE_LINUX_DEFAULT="text"[/COLOR]
5.Update the Grub : [COLOR=#111111]sudo update-grub[/COLOR]
6.Reebot or Just type "reboot" on terminal
*if it fails to boot to a terminal to do well on : GRUB_CMDLINE_LINUX="quiet splash" could be just "quiet" change it to "text"

Result : -> *Disabled GUI

#Create cleaner script :
Open terminal "type" gedit amonganteng.c
*OR , if you using putty you can type like this : nano amonganteng.c*
Copy this script to amonganteng.c:
Code:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main(int argc, char** argv) {
    int max = -1;
    int mb = 0;
    char* buffer;

    if(argc > 1)
        max = atoi(argv[1]);

    while((buffer=malloc(1024*1024)) != NULL && mb != max) {
        memset(buffer, 0, 1024*1024);
        mb++;
        printf("Allocated %d MB\n", mb);
    }
    
    return 0;
}

2. type "sudo swapoff -a" on terminal OR putty,
3. Cek free ram by type it : free -m
4. Type it : gcc amonganteng.c -o freeram
and if you want to use only live typing: "./freeram" on the terminal or putty
* Actual putty terminal also: v
* in the cleaning process please be patient, just a minute:thumbup1:

Result freeram ++ disable gui *This will remain stable :)* :

#Reactive GUI :
Code:
1.Open terminal
2.sudo nano /etc/default/grub OR sudo gedit /etc/default/grub
3. Change :[COLOR=#111111]GRUB_CMDLINE_LINUX_DEFAULT="text" TO [/COLOR][COLOR=#111111]GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
[/COLOR]3. Change :[COLOR=#111111]GRUB_CMDLINE_LINUX="text" TO [/COLOR][COLOR=#111111]GRUB_CMDLINE_LINUX_DEFAULT="" /Leave blank[/COLOR]
6.Update the Grub : [COLOR=#111111]sudo update-grub[/COLOR]
7.Reebot or Just type "reboot" on terminal

Note : don't forget to update :w00t:
*yaps up here alone may be useful
*Try before any bad comments*:closedeyes:

 
Joined
Jul 17, 2007
Messages
665
Reaction score
104
I teresting, I never tryed 151 but with world map on 1.4.2 in vbox working with 512 ram, on Ubuntu 12.04 64bit.
Totally how much RAM can u free up on you 12.04?
 
Newbie Spellweaver
Joined
Jan 3, 2017
Messages
70
Reaction score
12
I teresting, I never tryed 151 but with world map on 1.4.2 in vbox working with 512 ram, on Ubuntu 12.04 64bit.
Totally how much RAM can u free up on you 12.04?

Try it now, I use 1.5.3 and running smoothly, if you want more smoothly again please set the 3GB of RAM on the virtual box, do not forget to also use the above script cleaners, yesterday I made 151 and work with no lag in game:thumbup1::laugh:

o yes shadow, do you know how to resolve "version too low"?
 
Joined
Jul 17, 2007
Messages
665
Reaction score
104
Try it now, I use 1.5.3 and running smoothly, if you want more smoothly again please set the 3GB of RAM on the virtual box, do not forget to also use the above script cleaners, yesterday I made 151 and work with no lag in game:thumbup1::laugh:

o yes shadow, do you know how to resolve "version too low"?

probabil datafiles not match on server/client side?
 
Newbie Spellweaver
Joined
Jan 3, 2017
Messages
70
Reaction score
12
just run the following command and a good amount of ram will be avalaible

echo 3 > /proc/sys/vm/drop_caches

Yaps it's true bola, but I think it was less steady, if they say Indonesia: KURANG JOSS:w00t:

probabil datafiles not match on server/client side?

So what should I do? if I have to move the file server to the client, or the client to the server?:$:
 
Back
Top