question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a way to track memory in armeria server?

See original GitHub issue

Hello, I am wondering there is a way to track memory state of armeria server? I found default armeria metrics, something like that:

# HELP armeria_executor_queued_tasks The approximate number of tasks that are queued for execution
# TYPE armeria_executor_queued_tasks gauge
armeria_executor_queued_tasks{name="blockingTaskExecutor",} 0.0
# HELP armeria_executor_queue_remaining_tasks The number of additional elements that this queue can ideally accept without blocking
# TYPE armeria_executor_queue_remaining_tasks gauge
armeria_executor_queue_remaining_tasks{name="blockingTaskExecutor",} 2.147483647E9
# HELP armeria_executor_idle_seconds  
# TYPE armeria_executor_idle_seconds summary
armeria_executor_idle_seconds_count{name="blockingTaskExecutor",} 0.0
armeria_executor_idle_seconds_sum{name="blockingTaskExecutor",} 0.0
# HELP armeria_executor_idle_seconds_max  
# TYPE armeria_executor_idle_seconds_max gauge
armeria_executor_idle_seconds_max{name="blockingTaskExecutor",} 0.0
# HELP armeria_executor_pool_size_threads The current number of threads in the pool
# TYPE armeria_executor_pool_size_threads gauge
armeria_executor_pool_size_threads{name="blockingTaskExecutor",} 0.0 

but it seems that all of them shows unrealistic results

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ikhooncommented, Apr 11, 2022

armeria_server_active_requests is a snapshot of currently running services. If your service ends in a short time, it would not be recorded. https://github.com/line/armeria/blob/c8d1f5ef142f65fd79bd01b87d8155d220c9d0b9/core/src/main/java/com/linecorp/armeria/internal/common/metric/RequestMetricSupport.java#L84-L88

2reactions
ikhooncommented, Apr 6, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Serving static files — Armeria documentation
Use FileService to serve static files under a certain directory. FileService supports GET and HEAD HTTP methods and will auto-fill Date , Last-Modified...
Read more >
GrpcServiceBuilder - armeria-javadoc 0.99.9 javadoc
Constructs a new GrpcService that can be bound to ServerBuilder . It is recommended to bind the service to a server using ServerBuilder.service( ......
Read more >
Check gRPC backpressure code. · Issue #1037 · line/armeria
The current test only verifies when the message is delivered to the business logic, but not when the message is delivered from server...
Read more >
Let's Play with Reactive Streams on Armeria – Part 2
In part 2 of this blog post, I'd like to tell you about how we use Reactive Streams with Armeria. What's Armeria? Armeria...
Read more >
Armeria: The Only Thrift/gRPC/REST Microservice Framework ...
The founder of Netty introduces a new microservice framework ' Armeria '. It is unique because it 1) has Netty-based high-perf HTTP/2 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found