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

[Bug] Bug title rocketmq 跑了三个月物理内存占用远超实际jvm设置堆内存 #9065

Open
3 tasks done
527054314 opened this issue Dec 19, 2024 · 2 comments
Open
3 tasks done

Comments

@527054314
Copy link

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

jvm参数:
/usr/local/java/jdk1.8.0_401/bin/java -server -Xms10g -Xmx10g -XX:+UseG1GC -XX:G1HeapRegionSize=16m -XX:G1ReservePercent=25 -XX:InitiatingHeapOccupancyPercent=30 -XX:SoftRefLRUPolicyMSPerMB=0 -verbose:gc -Xloggc:/dev/shm/rmq_srv_gc_%p_%t.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintAdaptiveSizePolicy -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=30m -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch -XX:MaxDirectMemorySize=15g -XX:-UseLargePages -XX:-UseBiasedLocking -cp .:/opt/rocketmq/bin/../conf:/opt/rocketmq/bin/../lib/*:.:/usr/local/java/jdk1.8.0_401/lib -Drmq.logback.configurationFile=/opt/rocketmq/conf/rmq.broker.logback.xml org.apache.rocketmq.broker.BrokerStartup -c /opt/rocketmq/conf/esb/broker-a.conf

实际三个月过后发现broker内存实际占用80g
企业微信截图_e03a2a6f-44a4-4c0b-bf2f-00e4b55827a0

RocketMQ version

5.1.4

JDK Version

java version "1.8.0_401"

Describe the Bug

运行三个月后内存实际占用远超设置,jmap查看堆内存为正常

Steps to Reproduce

1

What Did You Expect to See?

1

What Did You See Instead?

1

Additional Context

1

@humkum
Copy link
Contributor

humkum commented Dec 19, 2024

top 命令中 RES 表示的是常驻内存,其中包含共享内存,不能简单的视其为堆内存

@humkum
Copy link
Contributor

humkum commented Dec 19, 2024

如果要查看堆内存占用,可以使用 jstat 命令

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants