Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Springcloud performance issue #5586

Open
1 task done
tswc1989 opened this issue Jul 2, 2024 · 2 comments
Open
1 task done

Springcloud performance issue #5586

tswc1989 opened this issue Jul 2, 2024 · 2 comments
Labels
type: bug Something isn't working

Comments

@tswc1989
Copy link

tswc1989 commented Jul 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

During the testing process, we discovered a performance bottleneck in Shenyu. The test scenario was set up to use Jmeter to conduct a stress test on a Mock microservice, with specific conditions of simulating 100,000 requests from 1000 concurrent users. When directly connecting to the Mock service, the system achieved a high throughput of 8000 queries per second (QPS), with a 99th percentile latency of 81 milliseconds, demonstrating robust performance.

When conducting the same test through Spring Cloud Gateway, the QPS is over 5900, and the 99th percentile delay is 189 milliseconds.

However, when the same test was conducted through Shenyu gateway as a proxy for Spring Cloud, a significant performance degradation was observed. Specifically, the QPS dropped to just over 2700, while the 99th percentile latency soared to 593 milliseconds. This indicates that when routed through Shenyu, the system's speed in processing requests slowed down markedly, and the response time for most requests increased substantially.

Expected Behavior

The throughput of shenyu springcloud plugin can be improved

Steps To Reproduce

No response

Environment

OS:CentOS Linux release 7.7.1908
Hardware: 16C 128GB
JVM parameters: Java server - Xmx4g - Xms4g - Xmn1g - Xss512k - XX:+DisableExplicitGC - XX: LargePageSizeInBytes=128m - XX:+UseFastAccessiorMethods - XX:+UseConcMarkSweepGC - XX:+CMSParallelRemarkEnable - XX:+UseCMSInitiatedOccupancyOnly - XX: CMSInitiatedOccupancyFraction=70

ShenYu version(s):
V2.6.1

Debug logs

No response

Anything else?

No response

@tswc1989 tswc1989 added the type: bug Something isn't working label Jul 2, 2024
@moremind
Copy link
Member

enable shenyu springcloud cache

@moremind
Copy link
Member

enable shenyu springcloud cache in shenyu bootstrap.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants