Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown GC for RHEL #14701

Closed
leszko opened this issue Mar 14, 2019 · 1 comment

Comments

Projects
None yet
3 participants
@leszko
Copy link
Contributor

commented Mar 14, 2019

Hazelcast running on RHEL (OpenJDK8) shows "unknown gc" in the logs (instead of "major" and "minor" gc). Looks like RHEL OpenJDK GC is not supported in Hazelcast.

minor.gc.count=0, minor.gc.time=0ms, major.gc.count=0, major.gc.time=0ms, unknown.gc.count=224, unknown.gc.time=421ms

Steps to reproduce:

  1. Create EC2 Instance from AMI (https://eu-central-1.console.aws.amazon.com/ec2/v2/home?region=eu-central-1#Images:search=ami-081df3d85a2ec2965)
  2. SSH to the instance
  3. Start Management Center: "cd ./management-center/hazelcast-management-center-3.11.3 && ./start.sh"
  4. Start Hazelcast: "cd hazelcast-enterprise/ && ./start.sh"
  5. In the Management Center, you'll see that GC is not shown (so unknown GC is used)

@mmedenjak mmedenjak added this to the 3.12 milestone Mar 14, 2019

@mmedenjak

This comment has been minimized.

Copy link
Contributor

commented Mar 14, 2019

Java version:

[ec2-user@ip-172-31-1-129 ~]$ java -version
openjdk version "1.8.0_201"
OpenJDK Runtime Environment (build 1.8.0_201-b09)
OpenJDK 64-Bit Server VM (build 25.201-b09, mixed mode)

GC names reported on that machine:

public class GcNames {
    public static void main(String[] args) {
        for (GarbageCollectorMXBean gc : ManagementFactory.getGarbageCollectorMXBeans()) {
            System.out.println(gc.getName());
        }
    }
}

Output:

Copy
MarkSweepCompact

This needs to be added here.

mmedenjak pushed a commit to mmedenjak/hazelcast that referenced this issue Mar 14, 2019

mmedenjak pushed a commit to mmedenjak/hazelcast that referenced this issue Mar 19, 2019

mmedenjak pushed a commit to mmedenjak/hazelcast that referenced this issue Mar 19, 2019

Matko Medenjak
Added additional GC names to show GC stats in MC for RHEL
Adds support for management center stats in addition to the metrics
support added in hazelcast#14702.

Fixes: hazelcast#14701
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.