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

Unnecessary memory dump for Java function when stopping #2560

Open
rhuss opened this issue Nov 2, 2024 · 1 comment
Open

Unnecessary memory dump for Java function when stopping #2560

rhuss opened this issue Nov 2, 2024 · 1 comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@rhuss
Copy link
Contributor

rhuss commented Nov 2, 2024

When stopping a Quarkus function with CTRL-C on kn func run I always get a memory dump, that is quite disturbing and noisy. I think it would be ok to get this only when running with --verbose or even --debug, but by default this should be omitted.

9:30 ✗ 2024-11-02 08:30:15,484 INFO  [io.quarkus] (Shutdown thread) function stopped in 0.063s

Native Memory Tracking:

Total: reserved=17909127084, committed=167094188
       malloc: 27002796 #87313
       mmap:   reserved=17882124288, committed=140091392

-                 Java Heap (reserved=17087594496, committed=58720256)
                            (mmap: reserved=17087594496, committed=58720256, peak=318767104)

-                     Class (reserved=67630548, committed=3536340)
                            (classes #5526)
                            (  instance classes #5122, array classes #404)
                            (malloc=521684 #14847) (peak=524228 #14860)
                            (mmap: reserved=67108864, committed=3014656, at peak)
                            (  Metadata:   )
                            (    reserved=67108864, committed=20971520)
                            (    used=20703464)
                            (    waste=268056 =1.28%)
                            (  Class space:)
                            (    reserved=67108864, committed=3014656)
                            (    used=2841048)
                            (    waste=173608 =5.76%)

-                    Thread (reserved=22093784, committed=1224664)
                            (threads #21)
                            (stack: reserved=22020096, committed=1150976, peak=1150976)
                            (malloc=45656 #155) (peak=78248 #225)
                            (arena=28032 #48) (peak=1196856 #33)

-                      Code (reserved=254069560, committed=9157432)
                            (malloc=437048 #3423) (at peak)
                            (mmap: reserved=253632512, committed=8720384, at peak)
                            (arena=0 #0) (peak=33712 #1)

-                        GC (reserved=381698390, committed=49103190)
                            (malloc=13861206 #1473) (peak=13868570 #1401)
                            (mmap: reserved=367837184, committed=35241984, peak=40321024)

-                 GCCardSet (reserved=10744, committed=10744)
                            (malloc=10744 #121) (at peak)

-                  Compiler (reserved=191064, committed=191064)
                            (malloc=23488 #128) (peak=51872 #128)
                            (arena=167576 #4) (peak=10062928 #18)

-                  Internal (reserved=264940, committed=264940)
                            (malloc=228076 #3196) (peak=246910 #3276)
                            (mmap: reserved=36864, committed=36864, at peak)

-                     Other (reserved=231472, committed=231472)
                            (malloc=231472 #13) (peak=325680 #24)

-                    Symbol (reserved=8132680, committed=8132680)
                            (malloc=7305848 #61383) (at peak)
                            (arena=826832 #1) (at peak)

-    Native Memory Tracking (reserved=1423952, committed=1423952)
                            (malloc=26944 #460) (peak=28680 #483)
                            (tracking overhead=1397008)

-        Shared class space (reserved=16777216, committed=12226560, readonly=0)
                            (mmap: reserved=16777216, committed=12226560, peak=12464128)

-               Arena Chunk (reserved=1667120, committed=1667120)
                            (malloc=1667120 #149) (peak=10572376 #288)

-                   Tracing (reserved=337, committed=337)
                            (malloc=337 #9) (at peak)

-                Statistics (reserved=128, committed=128)
                            (malloc=128 #2) (at peak)

-                 Arguments (reserved=169, committed=169)
                            (malloc=169 #5) (at peak)

-                    Module (reserved=57504, committed=57504)
                            (malloc=57504 #1474) (at peak)

-                 Safepoint (reserved=8192, committed=8192)
                            (mmap: reserved=8192, committed=8192, at peak)

-           Synchronization (reserved=40424, committed=40424)
                            (malloc=40424 #378) (peak=41464 #388)

-            Serviceability (reserved=17668, committed=17668)
                            (malloc=17668 #24) (peak=17812 #26)

-                 Metaspace (reserved=67214144, committed=21076800)
                            (malloc=105280 #56) (at peak)
                            (mmap: reserved=67108864, committed=20971520, at peak)

-      String Deduplication (reserved=680, committed=680)
                            (malloc=680 #8) (at peak)

-           Object Monitors (reserved=1872, committed=1872)
                            (malloc=1872 #9) (peak=5616 #27)

-                   Unknown (reserved=0, committed=0)
                            (mmap: reserved=0, committed=0, peak=20480)
Copy link
Contributor

github-actions bot commented Feb 1, 2025

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

1 participant