Skip to content

jvmStats does not handle java.lang.InternalError #29624

@GorillaCoder

Description

@GorillaCoder

jvmStats catches Exception. It should be catching Exception|java.lang.InternalError. As is noted in the comment in the code, MemoryPoolMXBean throws InternalError, and InternalError is not derived from Exception:

            } catch (Exception ex) {
                /* ignore some JVMs might barf here with:
                 * java.lang.InternalError: Memory Pool not found
                 * we just omit the pool in that case!*/
            }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions