Skip to content

PHP session is deleted when opening the map viewer with a large WMC after monitoring failure #168

@lvgl-oh

Description

@lvgl-oh

Problem

If the map viewer is opened with a WMC containing at least one service that failed during the last monitoring run, the WMC object is serialized and stored in the session:

Mapbender::session()->set("wmcGetApi", base64_encode($wmcGetApi));

Our sessions are stored in Memcached which accepts values up to a size of 1 MB by default. Large WMCs may be scraping this threshold.
If Memcached receives a value too large to store, the key is removed from the cache (https://docs.memcached.org/serverguide/performance/#how-it-handles-set-failures).

Solution / Workaround

In /etc/memcached.conf increase the maximum object size (-I 8m) as well as the maximum memory allocation of the Memcached process (-m 512).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions