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.

WARN com.netflix.zuul.netty.server.DirectMemoryMonitor - Error in DirectMemoryMonitor task.

See original GitHub issue
[pool-5-thread-1] WARN com.netflix.zuul.netty.server.DirectMemoryMonitor - Error in DirectMemoryMonitor task.
java.lang.NullPointerException
	at com.netflix.servo.monitor.LongGauge.set(LongGauge.java:42)
	at com.netflix.zuul.netty.server.DirectMemoryMonitor$Task.run(DirectMemoryMonitor.java:78)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

请问 DirectMemoryMonitor类里面的 Field maxMemory = c.getDeclaredField(“DIRECT_MEMORY_LIMIT”) && Field reservedMemory = c.getDeclaredField(“DIRECT_MEMORY_COUNTER”) 的值是哪里获取的,为甚么一直为空?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
roycebranningcommented, Apr 27, 2021

had this same error (although I was using jdk 11). i was using zuul-core 2.1.4, updating to 2.1.8 fixed it.

I believe this commit was responsible for the fix.

0reactions
artgoncommented, Oct 27, 2020

I can’t repro this. Do you have steps?

Read more comments on GitHub >

github_iconTop Results From Across the Web

com.netflix.zuul.netty.server java code examples - Tabnine
private void handleComplete(Channel channel) { try { if ((isHandlingRequest)) { completeMetrics(channel, zuulResponse); // Notify requestComplete listener ...
Read more >
netflix zuul - JHipster Gateway Application ZuulException
I found the solution with increase ribbon ReadTimeout on Gateway Application ribbon: eager-load: enabled: true eureka: enabled: true ...
Read more >
Zuul 2 : The Netflix Journey to Asynchronous, Non-Blocking ...
The major architectural difference between Zuul 2 and the original is that Zuul 2 is running on an asynchronous and non-blocking framework, ...
Read more >
8. Router and Filter: Zuul - Spring Cloud
Zuul is a JVM-based router and server-side load balancer from Netflix. ... Spring Cloud has created an embedded Zuul proxy to ease the...
Read more >
API Gateways – An Evaluation of Zuul 2 - 一天不进步 - 博客园
Post-Filters perform tasks such as analytics or customization of HTTP ... Figure 4 High level architecture of Netflix Zuul 2 with Netty.
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