Skip to content

[Enhancement] Set Async-profiler log level to error to avoid repeating waring logs#67297

Merged
gengjun-git merged 2 commits intoStarRocks:mainfrom
gengjun-git:set_async_profiler_log_to_queit
Dec 30, 2025
Merged

[Enhancement] Set Async-profiler log level to error to avoid repeating waring logs#67297
gengjun-git merged 2 commits intoStarRocks:mainfrom
gengjun-git:set_async_profiler_log_to_queit

Conversation

@gengjun-git
Copy link
Contributor

@gengjun-git gengjun-git commented Dec 29, 2025

Why I'm doing:

To avoid the following logs in fe.out

[WARN] Kernel symbols are unavailable due to restrictions. Try
sysctl kernel.perf_event_paranoid=1
sysctl kernel.kptr_restrict=0

What I'm doing:

Fixes #issue

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function
    • This pr needs auto generate documentation
  • This is a backport pr

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 4.0
    • 3.5
    • 3.4
    • 3.3

Note

Sets AsyncProfiler to log only errors and refactors command construction.

  • Adds genStartCommand to build start commands with loglevel=error, cstack=vm, and configurable jstackdepth
  • Updates CPU and memory profiling to use the helper, applying the new log level and reducing duplication

Written by Cursor Bugbot for commit ee76bc7. This will update automatically on new commits. Configure here.

Signed-off-by: gengjun-git <gengjun@starrocks.com>
Signed-off-by: gengjun-git <gengjun@starrocks.com>
@sonarqubecloud
Copy link

@alvin-celerdata
Copy link
Contributor

@cursor review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no bugs!

@github-actions
Copy link
Contributor

[Java-Extensions Incremental Coverage Report]

pass : 0 / 0 (0%)

@github-actions
Copy link
Contributor

[FE Incremental Coverage Report]

pass : 4 / 4 (100.00%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 com/starrocks/memory/ProcProfileCollector.java 4 4 100.00% []

@github-actions
Copy link
Contributor

[BE Incremental Coverage Report]

pass : 0 / 0 (0%)

@gengjun-git gengjun-git enabled auto-merge (squash) December 30, 2025 06:06
@gengjun-git gengjun-git merged commit 33b2099 into StarRocks:main Dec 30, 2025
73 of 79 checks passed
@github-actions
Copy link
Contributor

@Mergifyio backport branch-4.0

@github-actions github-actions bot removed the 4.0 label Dec 30, 2025
@mergify
Copy link
Contributor

mergify bot commented Dec 30, 2025

backport branch-4.0

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Dec 30, 2025
…g waring logs (#67297)

## Why I'm doing:

To avoid the following logs in fe.out
```
[WARN] Kernel symbols are unavailable due to restrictions. Try
sysctl kernel.perf_event_paranoid=1
sysctl kernel.kptr_restrict=0
```
Signed-off-by: gengjun-git <gengjun@starrocks.com>

(cherry picked from commit 33b2099)
wanpengfei-git pushed a commit that referenced this pull request Dec 30, 2025
…g waring logs (backport #67297) (#67343)

Co-authored-by: gengjun-git <gengjun@starrocks.com>
arin-mirza pushed a commit to arin-mirza/starrocks that referenced this pull request Dec 30, 2025
…g waring logs (StarRocks#67297)

## Why I'm doing:

To avoid the following logs in fe.out
```
[WARN] Kernel symbols are unavailable due to restrictions. Try
sysctl kernel.perf_event_paranoid=1
sysctl kernel.kptr_restrict=0
```
Signed-off-by: gengjun-git <gengjun@starrocks.com>
farhad-celo pushed a commit to farhad-celo/starrocks that referenced this pull request Jan 20, 2026
…g waring logs (StarRocks#67297)

## Why I'm doing:

To avoid the following logs in fe.out
```
[WARN] Kernel symbols are unavailable due to restrictions. Try
sysctl kernel.perf_event_paranoid=1
sysctl kernel.kptr_restrict=0
```
Signed-off-by: gengjun-git <gengjun@starrocks.com>

Signed-off-by: Farhad Shahmohammadi <f.shahmohammadi@celonis.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants