Home > bitburner > NS > getServerUsedRam
Get the used RAM on a server. This includes ram used by running scripts as well as blocked ram on darknet servers.
Signature:
getServerUsedRam(host?: string): number;|
Parameter |
Type |
Description |
|---|---|---|
|
host |
string |
(Optional) Hostname/IP of the target server. Optional. Defaults to current server if not provided. |
Returns:
number
The amount of used RAM (GB) on the specified server.
RAM cost: 0.05 GB