8000 server java进程内存占用缓慢持续上涨,但堆内存正常 · Issue #1076 · PowerJob/PowerJob · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

server java进程内存占用缓慢持续上涨,但堆内存正常 #1076

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

Open
q710245300 opened this issue Mar 14, 2025 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@q710245300
Copy link

Describe the bug
server java进程内存占用缓慢持续上涨,但堆内存正常。worker进程占用内存稳定

To Reproduce
正常运行一个cron任务,内存会持续缓慢上涨

Expected behavior
正常应该是,内存一段时间上涨,后续平稳

Environment

  • PowerJob Version: 5.1.1
  • Java Version: OpenJDK 8
  • OS: 麒麟v10

Screenshots

  • 一分钟200个任务
    Image

Image

  • 十五分钟一个任务

Image

Image

Additional context
Add any other context about the problem here.

@q710245300 q710245300 added the bug Something isn't working label Mar 14, 2025
@q710245300
Copy link
Author
q710245300 commented Mar 15, 2025

复现步骤

20250315本机启动官方5.1.1版本server,使用内置的h2数据库。无任务

启动命令:java -Xmx1024m -Xms1024m -Xmn400m -XX:NativeMemoryTracking=detail -jar powerjob-server-starter-5.1.1.jar
环境信息:mac mini m4 24g

现象

server进程占用内存持续增高。

无任务,进程res截图如下

  • Image
  • Image
  • Image

启动一个官方的shell处理器任务,任务配置如下

Image

  • 内存变化
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • post一张对应的线程native_memory summary信息
jcmd 38288 VM.native_memory summary
38288:

Native Memory Tracking:

Total: reserved=3216174KB, committed=2116238KB
-                 Java Heap (reserved=1048576KB, committed=1048576KB)
                            (mmap: reserved=1048576KB, committed=1048576KB)

-                     Class (reserved=1180729KB, committed=148457KB)
                            (classes #21401)
                            (malloc=13369KB #39953)
                            (mmap: reserved=1167360KB, committed=135088KB)

-                    Thread (reserved=718696KB, committed=718696KB)
                            (thread #349)
                            (stack: reserved=716880KB, committed=716880KB)
                            (malloc=1157KB #2088)
                            (arena=660KB #692)

-                      Code (reserved=140771KB, committed=73107KB)
                            (malloc=7651KB #9201)
                            (mmap: reserved=133120KB, committed=65456KB)

-                        GC (reserved=49763KB, committed=49763KB)
                            (malloc=11555KB #660)
                            (mmap: reserved=38208KB, committed=38208KB)

-                  Compiler (reserved=645KB, committed=645KB)
                     
8000
       (malloc=511KB #1079)
                            (arena=135KB #7)

-                  Internal (reserved=41117KB, committed=41117KB)
                            (malloc=41085KB #32603)
                            (mmap: reserved=32KB, committed=32KB)

-                    Symbol (reserved=29253KB, committed=29253KB)
                            (malloc=27231KB #278970)
                            (arena=2022KB #1)

-    Native Memory Tracking (reserved=6154KB, committed=6154KB)
                            (malloc=366KB #5122)
                            (tracking overhead=5789KB)

-               Arena Chunk (reserved=468KB, committed=468KB)
                            (malloc=468KB)    

@q710245300
Copy link
Author
q710245300 commented Mar 15, 2025

@karatttt
@csongs
@schnell18
@beerbubble
@hxuanyu
请问各位朋友有遇到过这个现象嘛?目前不太确定是jvm参数的问题还是什么问题导致的,也不确定是不是正常线现象。分析dump文件没什么头绪~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
0