Without seeing the script nobody can do anything. Other than that, you should switch your host, serverFFS is known to be doing this even when going over 1% CPU in the wrong second.
|
Hello.
When I start up my server, everything looks OK. Then, the CPU goes abeshit at 10% with NO players. RAM peaks at 560 MB with 12 players, 1600 MB!!!! with 16 players. What the fuck?! Oh, and the script is perfect. No 256 arrays, few timers, PVars. Objects are under 400, vehs under 700, veh models under 150. Using zcmd. Now tell me, WHAT THE FUCK? Why? Is it serverFFS' fault? Please answer if you had problems with serverFFS and high clock/RAM too. Sincerely, M. --------------------- There you go; I kicked EVERYBODY, for the server is restarting and restarting... Info: [...]Players: NONE[...] Resources: CPU Usage: 26 % Memory usage: 547.02 mb Space in use: 5 mb ...Oi, what the fuck. |
That, and how is it ServerFFS's problem when your script takes way too much CPU and RAM?
|
//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?!"); }
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?!"); } |