Hi,
They are terrible days to figure out the issue. I could not.
My API needs to received many requests with low latency. About 300K requests/day. After received > 5K requests, my server is getting slow. After 2 or 3 hours, my server cannot receive any request. All are showing pending.
My Server 2GB/2CP ubuntu 14.
I do check CPU and RAM - they show < 30%. My API is on spring mvc, my server is jetty (using jetty - maven plugin)
Some configs before starting server: export MAVEN_OPTS=“-Xmx2048m -Xms1024m” mvn -DhttpPort=80 jetty:run
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Sounds like you’ve got a bit of a mystery. Normally my first guess would be that there is a memory leak somewhere and over time your memory use is increasing but you’ve mentioned that this doesn’t seem to be the case. Are you running any type of http server like apache in front of jetty? I have seen issues with the KeepAlive setting and KeepAliveTimeout in apache causing a wait time on connection while the service waits for an available thread. That can usually be resolved by disabling KeepAlive.
It’s been a while since you initially posted this (sorry for not getting back to you sooner), were you able to find the source of the problem?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.