Very high CPU and RAM [really? serverFFS]
#10

Quote:
Originally Posted by TheUllas
Посмотреть сообщение
Just because you are from the Netherlands and patriotic, it doesn't mean that everything I do is complete BS.
When I run the server on my PC, it takes away fn LESS THAN 1.6 GB RAM. In fact with 20 people I saw no changes in CPU and MAX. 40 MB RAM usage. The server was up for 10 hours. I really did clean everything in my script up. It cannot be my script.
When I re-installed the server (grandlarc), I had the same problem. Approx. 1.6 GB of random access memory.
The funny part: it really doesn't depend on anything for the CPU and RAM usage to go down. Even when I shut the server off, it had like 56% CPU. AND! All RAM usage sizes are "pre-defined". I saw 145.6 MB and 121.06 MB pseudo-RAM usage more than 20 times. Now I found out that it changes fn RANDOMLY! Let me express this in code:

Код:
//Tut for Trolls.
#include <Troll.inc>//Our include.
OnServerEveryFiveMinutesCheck(Mike'sServ)//Is called every five minutes.
{
 new Troll=random(512);//Allocatin' the Troll. High number, if possible.
 if(Troll <= 512) Troll = Over 9000;//...You know what? Fk it. 
 if(ServerFnEmpty(Mike'sServ)) SetRAMUsage(Mike'sServ, Troll), SetCPUUsage(Mike'sServ, 0.5*Troll);//...
 else SetRAMUsage(Mike'sServ, Troll*5), SetCPUUsage(Mike'sServ, 1.5*Troll);//Someone there? Aha!
 return SendMikeMessage("Dear Mike. Your script sucks balls. Server restarts!", TROLL_COLOR);
}
OnServerRestart(Mike'sServ)//Called immediately after a restart.
{
 for(new i=0; i<9000; i++) new UnusedString[i];//Make it look like Mike's a noob with 1024+ strings.
 return SendMikeMessage("DefinAtely your script, Mike. Work on it, fat boy.", ORLY_COLOR);
}
OnMikeReact()
{
 if (IsMikePissed) Ignore(Mike,2);//Ignore in days.
 else if (MikeReinstalledServer && GetRAM(Mike'sServ)> 9000) Ignore(Mike,2);//Same here.
 else if (MikeImprovedScript) OnServerRestart(Mike'sServ), SendMikeUrScriptIsBullshitMSG;//Almost done.
 return 1;
}
OnMikeLogin
{
 LeaveMikeEmail("Suspicious login into your account.", RandomIP);//Generated in the include.
 return SendMikeMessage("Mike; if it isn't your fault (n' it is not ours) it's prolly haxx0r?!");
}
If it happens on grandlarc without any plugins/filterscripts, please open a support ticket explaining this.
Further more, the RAM usage is based upon a percentage and then converted into MB's by taking the total memory in consideration.
Hence you will only see 100 possible RAM amount, since it goes between 0% and 100%.

To disable the e-mails about suspicious logins, please do so at Account -> Preferences.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)