I have the basic $5 tier that I started a week ago, I’m trying to learn some stuff and practice building an actual app. Currently have docker, maven spring boot, nginx, node, and openvpn for some static IP usage while I’m traveling and need a whitelist for work.
I access the server via command prompt ssh or via VS Code remote SSH.
The docker runs nginx, I just got the robo-cert to work, now I just created maven spring project and my CPU and Memory are at 100% and sometimes crashing the server. I have not even done anything with the project yet.
Am I over-using the 1 CPU and 1GB memory already?
Do you think 2vCPU and 2GB Memory is needed for my case?
When I try to run ‘Top’ and sort by CPU or Memory, kswapd0 is always at like 30-50% on CPU. java, java, node, node is the top for Memory, but it’s not even a running process. java also takes up 20% of the cpu.
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!
Hi @aupperk24,
Before you upgrade Add 1 Gb of Swap and see how does that work out for you. If you are using CentOS this question here will give you more information on the topic:
https://www.digitalocean.com/community/questions/swap-partion-creation-and-priority
If you are using Ubuntu, you can give this article a read about SWAP:
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04
Additionally, yes it does seem like it’s time for an upgrade. My recommendation would be to upgrade to the next package and not go too far into upgrading. Take the upgrades one step at a time until you find the perfect resources for your case.
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.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.