What are the possible reasons for a Java application to run slow on certain machines?

I have a Java application that appears to run slower on a more powerful machine running the same OS (Windows 7) and same Java version. By running slow, I mean there is always a delay in the response time, when for example you trying to switch tabs, or press a button.

Why might this be the case?

1

2 Answers

This may have a problem of your java application architecture. It may be with unnecessary threads and instances loading and lot of misused logic (conditions checking & looping). Further check JVM has enough memory allocation ? Otherwise you may use deprecated API.

This may helpful you

Elasticsearch tests use deprecated API when being very slow · Issues · GitHub

It can happen that your system is running fine, however a service, set of services it is calling while processing an event like button click, tab switch etc. may be taking time.
We faced the same kind of scenario, in which initially it seemed that the application is running slow because of multiple threads firing up at same time or too much logging. However, on doing more analysis we found that when a process engine task was sending an email synchronously then it was taking a lot of time, sometimes even failing to send the mail. It happened that other teams were also observing slowness in sending mails. This was occurring due to some issue at the SMTP server end. With the issue being resolved at the SMTP server end the slowness was gone.
We further optimized by making the email sending process asynchronous.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like