Skip to content

Wasmtime -W cli options do not seem to have any effect? max-table-elements, max-memory-size, Error - table index exceeds the limit of 20000 #10482

Closed
@MA3CIN

Description

@MA3CIN

I'm having trouble with increasing the allowed table elements per table in the pooling allocator - i'm hitting the hard limit of 20k

Image

Test Case

Too big of a wasm file to upload here.... (32Mb), it is accessible here: https://github.com/MA3CIN/wasmtime-error/blob/main/wasm-server.wasm

Steps to Reproduce

Run the wasm file with wastime server: "wasmtime serve wasm-server.wasm"

Expected Results

I expected the allowed table elements per table in the pooling allocator limit to be increased when using the -W max-table-elements cli arguments

Actual Results

I'm still hitting the limit

Image

Versions and Environment

Wasmtime version or commit: wasmtime 31.0.0 (7a9be58 2025-03-20)

Operating system: Ubuntu 22.04.3 LTS

Architecture: N/A, single wasm instance

Extra Info

Works fine when i run it with wasmtime run, i only hit the limit with wasmtime serve..

Maybe a similar problem to #8504

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior in the current implementation that needs fixing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions