Skip to content

Startup: Limit metaspace max size #13568

Open
@spinscale

Description

@spinscale

With the introduction of the metaspace replacing the perm gen space in java 8, the way I understand it, that now native memory outside of the heap is used for this area. Also it is configured to be unbounded by default, so if a classloader is leaky (main question is, can this happen, potentially by plugins?), we might not only go OOM with the VM, but with the whole operating system/container.

We might want to check if we can configure -XX:MaxMetaspaceSize on startup. Maybe there are other tools like a leak detector (I've seen once on github, not sure how useful, seemed to be for servlets) or this is not a problem at all the way we do things.

Putting it up for discussion thus.

Metadata

Metadata

Assignees

Labels

:Core/Infra/CLICLI utilities, scripts, and infrastructure>enhancementTeam:Core/InfraMeta label for core/infra teamtriagedIssue has been looked at, and is being left open

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions