LiKaiping415 opened a new issue, #4337:
URL: https://github.com/apache/shenyu/issues/4337
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
Shenyu occasionally causes CPU spikes
When the CPU soars, all the requests are blocked
Stack information for threads that cause CPU spikes:
java.lang.Thread.State: RUNNABLE
at
org.apache.commons.collections4.map.AbstractHashedMap.getEntry(AbstractHashedMap.java:462)
at
org.apache.commons.collections4.map.AbstractLinkedMap.getEntry(AbstractLinkedMap.java:216)
at org.apache.commons.collections4.map.LRUMap.get(LRUMap.java:250)
at org.apache.commons.collections4.map.LRUMap.get(LRUMap.java:233)
at
org.apache.shenyu.plugin.base.cache.MetaDataCache.obtain(MetaDataCache.java:123)
at
org.apache.shenyu.plugin.global.DefaultShenyuContextBuilder.buildData(DefaultShenyuContextBuilder.java:75)
at
org.apache.shenyu.plugin.global.DefaultShenyuContextBuilder.build(DefaultShenyuContextBuilder.java:60)
at
org.apache.shenyu.plugin.global.GlobalPlugin.execute(GlobalPlugin.java:47)
at
org.apache.shenyu.web.handler.ShenyuWebHandler$DefaultShenyuPluginChain.lambda$execute$0(ShenyuWebHandler.java:221)
at
org.apache.shenyu.web.handler.ShenyuWebHandler$DefaultShenyuPluginChain$$Lambda$1134/955660766.get(Unknown
Source)
at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:44)
at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)
### Expected Behavior
Requests can be processed all the time
### Steps To Reproduce
occasionally
### Environment
```markdown
ShenYu version(s):2.5.0
```
### Debug logs
java.lang.Thread.State: RUNNABLE
at
org.apache.commons.collections4.map.AbstractHashedMap.getEntry(AbstractHashedMap.java:462)
at
org.apache.commons.collections4.map.AbstractLinkedMap.getEntry(AbstractLinkedMap.java:216)
at org.apache.commons.collections4.map.LRUMap.get(LRUMap.java:250)
at org.apache.commons.collections4.map.LRUMap.get(LRUMap.java:233)
at
org.apache.shenyu.plugin.base.cache.MetaDataCache.obtain(MetaDataCache.java:123)
at
org.apache.shenyu.plugin.global.DefaultShenyuContextBuilder.buildData(DefaultShenyuContextBuilder.java:75)
at
org.apache.shenyu.plugin.global.DefaultShenyuContextBuilder.build(DefaultShenyuContextBuilder.java:60)
at
org.apache.shenyu.plugin.global.GlobalPlugin.execute(GlobalPlugin.java:47)
at
org.apache.shenyu.web.handler.ShenyuWebHandler$DefaultShenyuPluginChain.lambda$execute$0(ShenyuWebHandler.java:221)
at
org.apache.shenyu.web.handler.ShenyuWebHandler$DefaultShenyuPluginChain$$Lambda$1134/955660766.get(Unknown
Source)
at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:44)
at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)
### Anything else?
no
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]