Very new to DigitalOcean and I have a design question.
I have a Java .jar application which is designed to generate an OutOfMemory error. I would like to run this Java program using java jar ... within DigitalOcean, to validate the error messages flow into the SolarWinds Loggly product.
What is the best/easiest approach for me with this very limited need in DigitalOcean? I only plan to run the program a handful of times.
Thank you, in advance, for any assistance anyone can provide.
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi @johnjvester,
You can always configure a swap file on your droplet. Since the swapfile is created from the harddisk, you can create a 10GB swapfile and I’m sure you won’t see the out of memory error.
Having said that, please note the swapfile is actually not as fast as RAM. If you are looking for performance, you’ll need to upgrade to having more RAM but if performance is not something that’s crucial, configuring more swap would be the way to go.
Regards, KFSys
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.
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.
