Skip to content

PrintAnalysisCallTree cause a lot of heap allocation during native image build #2241

@johnaohara

Description

@johnaohara

By default we enabled -H:+PrintAnalysisCallTree for native binary builds. For a simple rest-crud application (https://github.com/johnaohara/rest-http-crud) during a native image build;

  1. With -H:+PrintAnalysisCallTree; 47.87GB of objects are allocated to the heap
  2. Without ; 36.02GB of objects are allocated on the heap

Disabling this option by default would save us 11.85GB of heap allocations (25.2%) during a native image build for the rest-crud application.

@stuartwdouglas I know that we have historically kept this option enabled by default, but given that it causes so much allocation on the heap, is it worth disabling by default for users building native images?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions