Jira (PUP-11401) Non-profiled CodeHeap size is constantly growing

12 views
Skip to first unread message

Pavel Sapezhka (Jira)

unread,
Dec 22, 2021, 4:12:01 AM12/22/21
to puppe...@googlegroups.com
Pavel Sapezhka created an issue
 
Puppet / Bug PUP-11401
Non-profiled CodeHeap size is constantly growing
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: Screenshot 2021-12-22 at 11.09.52.png, puppetserver, puppetserver.conf
Created: 2021/12/22 1:11 AM
Environment:

Debian 10

puppet-agent/buster,now 7.13.1-1buster amd64 [installed]

puppetdb-termini/buster,buster,now 7.8.0-1buster all [installed]

puppetdb/buster,buster,now 7.8.0-1buster all [installed]

puppetserver/buster,buster,now 7.5.0-1buster all [installed]

 

Fix Versions: PUP 7.13.1
Priority: Normal Normal
Reporter: Pavel Sapezhka

We've faced with constantly growing of NonProfiledMethods CodeCache area. It's look like some kind of leak, because there is no difference of how much space would be configured for this area – it's just growing. I tried to fix it by using XX:NmethodSweepActivity JVM option with no success, the grows has slowed down but still exists. We haven't seen such kind behaviour if 6.x version. You can find configs and screenshot as attachments. Also here you can download CodeHeap Analytics which I've just got with

# jcmd <<PID>> Compiler.CodeHeap_Analytics > codeheap_analytics.txt

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Ciprian Badescu (Jira)

unread,
Jan 10, 2022, 10:28:02 AM1/10/22
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jan 10, 2022, 7:37:02 PM1/10/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Affects Version/s: PUP 7.13.1

Josh Cooper (Jira)

unread,
Jan 10, 2022, 7:37:02 PM1/10/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 7.13.1

Justin Stoller (Jira)

unread,
Jan 13, 2022, 1:24:01 PM1/13/22
to puppe...@googlegroups.com

Justin Stoller (Jira)

unread,
Jan 13, 2022, 6:46:02 PM1/13/22
to puppe...@googlegroups.com
Justin Stoller commented on Bug PUP-11401
 
Re: Non-profiled CodeHeap size is constantly growing

A couple general questions:

1. Have you run out of ReservedCodeCache before? I believe the JVM compiler will be disabled and everything will be interpretted. Though I don't know if there's any harm in the cache being 85-90% full.

2. In the screenshot you gave, have any Jruby instances hit their max-requests limit and been recycled? I would expect to see significant turn over in the code cache after a JRuby instance is destroyed. Any logs you can provide that can correlate codecache usage and JRuby recycling would be valuable. (There should be an INFO level log line that matches /Creating JRubyInstance with id (\d+)/. Conversely, I would expect more marginal code paths to be compiled to the codecache the longer the a JRuby instance is alive, which a logarithmic increase like your image shows.

Justin Stoller (Jira)

unread,
Jan 21, 2022, 2:48:01 PM1/21/22
to puppe...@googlegroups.com
Justin Stoller assigned an issue to Pavel Sapezhka
 
Change By: Justin Stoller
Assignee: Justin Stoller Pavel Sapezhka
Reply all
Reply to author
Forward
0 new messages