Question

My JAVA Application runs smoothly on AWS but on DO it freezes

Posted July 22, 2021 147 views
Server OptimizationJavaUbuntu 18.04DigitalOcean Managed MySQL Database

Hi,

I have a JAVA application for a CRM we use, it has a DB size of about 2GB and is hosted on a Managed DB with DO. My application works fine when the load is limited to 2-3 users but when the load goes up, the application freezes on the login screen and doesn’t even log in.

The same application works with about 300 users simultaneously without freezing on AWS based windows hosting for TOMCAT.

On DigitalOcean I am running Ubuntu with TOMCAT.

Any ref. or suggestions will be helful.

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

Hello,

It sounds like that the server might be running low on resources, I could suggest starting with checking the server resources utilization. You can do that by following the steps here:

https://www.digitalocean.com/community/questions/how-to-find-the-processes-that-are-consuming-the-most-server-resources

As your database is running on a separate instance, I could suggest checking the resource utilization for your managed database instance as well.

Also I would recommend enabling logging for your application and checking your error log, it is possible that in there you would find more information on why the application is freezing.

Let me know how it goes.
Regards,
Bobby