2022-10-21 17:16:00 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getServerMaxRam](./bitburner.ns.getservermaxram.md)
|
|
|
|
|
|
|
|
## NS.getServerMaxRam() method
|
|
|
|
|
2022-11-20 18:07:22 +01:00
|
|
|
Get the maximum amount of RAM on a server.
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
getServerMaxRam(host: string): number;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| host | string | Hostname of the target server. |
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
number
|
|
|
|
|
2022-11-20 18:07:22 +01:00
|
|
|
The maximum amount of RAM (GB) a server can have.
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 0.05 GB
|
|
|
|
|