
05-01-2009, 05:51 PM
|
|
Graal Administration
|
Join Date: Jan 2000
Location: Admins
Posts: 11,693
|
|
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 |
|
|
|