Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Announcements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 05-01-2009, 05:51 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Smile 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
Reply With Quote
  #2  
Old 05-01-2009, 06:36 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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?
__________________
Reply With Quote
  #3  
Old 05-01-2009, 07:09 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
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
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #4  
Old 05-01-2009, 09:30 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Thanks for the update Stefan. These should also help fix a few things on Era.
__________________
Reply With Quote
  #5  
Old 05-01-2009, 09:44 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally Posted by Tigairius View Post
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.
Reply With Quote
  #6  
Old 12-21-2009, 12:47 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Bit of a bump but what value does getMemoryUsage() return?

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:29 PM.


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