# memory

Set memory resource limits for the build machine.

```rhai
build_machine.memory(requested, limit) -> BuildMachine
```

## Parameters

- `requested` (int): Requested memory in megabytes
- `limit` (int): Memory limit in megabytes

## Returns

Returns the `BuildMachine` builder for method chaining.

## Examples

```rhai
let bm = namespace.build_machine("builder")
    .image("ubuntu:22.04")
    .memory(2048, 4096)
    .provision();
```

## Notes

- This is a chainable method
- Build processes often need more memory
- Values are in megabytes
