0

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
  • 1
    This would normally required the source code so you can benchmark the program on the system. Determine the differences between the two systems and share those if that's not possible
    – Ramhound
    Jan 30, 2016 at 18:07

2 Answers 2

2

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

0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .