Question

Best Option for Digital Ocean

Posted December 15, 2020 200 views
DigitalOceanJava

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.

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.

×
Submit an Answer
1 answer

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