Files
bitburner-src/markdown/bitburner.ns.getserverusedram.md
T
2026-02-28 11:48:03 -08:00

61 lines
856 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [getServerUsedRam](./bitburner.ns.getserverusedram.md)
## NS.getServerUsedRam() method
Get the used RAM on a server. This includes ram used by running scripts as well as blocked ram on darknet servers.
**Signature:**
```typescript
getServerUsedRam(host?: string): number;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
host
</td><td>
string
</td><td>
_(Optional)_ Hostname/IP of the target server. Optional. Defaults to current server if not provided.
</td></tr>
</tbody></table>
**Returns:**
number
The amount of used RAM (GB) on the specified server.
## Remarks
RAM cost: 0.05 GB