Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Announcements (https://forums.graalonline.com/forums/forumdisplay.php?f=240)
-   -   New NPCServer: Less memory usage (https://forums.graalonline.com/forums/showthread.php?t=85395)

Admins 05-01-2009 05:51 PM

New NPCServer: Less memory usage
 
A new npcserver has been uploaded to all machines, Era and Unholy Nation has already been restarted. We have fixed a few smaller memory leaks and changed some stuff to use less memory. There are also a few new commands to be able to manage memory usage better:

Script:
getProcessCPUUsage() - returns float - CPU usage of the game/server (0-1) in the previous minute, multiply with 100 to get a percentage
getProcessUptime() - returns integer - total number of seconds since the game/server started
getMemoryUsage() - returns integer
getMemoryStatsObjects() - returns integer - returns the total memory taken by objects, beta (like /memstats)

RC chat:
New commands to analyze the memory usage of script objects and levels, this not very exact right now but can be used to find npcs which take a lot of memory:
/memstats
/memstats full
/memstats npc name
/memstats level name

Inverness 05-01-2009 06:36 PM

I'm pleased that you're informing us of the changes that you're making to the NPC-Server.

Is there an ETA on next Graal version yet?

Tigairius 05-01-2009 07:09 PM

The commands always return
HTML Code:

unknown or incomplete command, type /help for more info
before displaying a response, like:
HTML Code:

unknown or incomplete command, type /help for more info
Memory taken by objects: 28851511


cbk1994 05-01-2009 09:30 PM

Thanks for the update Stefan. These should also help fix a few things on Era.

Admins 05-01-2009 09:44 PM

Quote:

Originally Posted by Tigairius (Post 1488203)
The commands always return
HTML Code:

unknown or incomplete command, type /help for more info

Yes the gserver doesn't know the command yet, you can ignore that though. It will be fixed with the next update of the gserver.

Twinny 12-21-2009 12:47 PM

Bit of a bump but what value does getMemoryUsage() return?

[Edit] Also, is there a maximum memory value set for each vserver?


All times are GMT +2. The time now is 04:00 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.