Application slow response

hello there,

i have put my java swing application on my hosting site.i also have db taken connection from the hosting company.i am using my application as JNLP.now the problem i have my application frames open slow.i mean it opens after 10-20 sec.what could be the reason.is the problem with the hosting company.i tried using my jnlp with my local db and it opens instantly.please help me to get to the root of this problem.
cheers
ZOlf
zolfAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
That's most likely to be the overhead of starting the JVM for the first time. I suspect that once the first frame is open it gets faster?
0
zolfAuthor Commented:

yes what you mentioned is true for local.but when i try using the application on the hosting server it is slow.even after opening and closing the frame.
0
CEHJCommented:
Can we test this?
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

ksivananthCommented:
could be the DB network latency issue...
0
n_sachin1Commented:
"now the problem i have my application frames open slow"

Do you load any data at startup? If yes, try profiling your initialization process. See what you can load at startup, and what you can defer for either a user action or a background thread.

A lot of swing applications have issues when, they try to load the data in the main awt thread (The one that is responsible for painting your windows).
0
CEHJCommented:
There should theoretically only be a difference between your two environments on the very first hit. Thereafter the app should run locally. Put application tracing up to full using the Java control panel to see if you can discern any differences
0
zolfAuthor Commented:

>> Put application tracing up to full using the Java control panel to see if you can discern any differences

how can i do this.do you mean activale JNLP debugging features
0
CEHJCommented:
Yes, via the control panel
0
zolfAuthor Commented:

>>could be the DB network latency issue...
can this issue be solved from my side.i mean is this the hosting companies problem or it is from my side
0
CEHJCommented:
Is this app requesting network resources during the course of its operation?
0
zolfAuthor Commented:

>>Is this app requesting network resources during the course of its operation?
what do you mean.my application gets data from the db.for example filling CB,Jtables.but at present there are hardly any data i mean there are 10-15 values in CB and 45 rows in the table
0
CEHJCommented:
I'm trying to determine whether the problem is being caused by the network. For that to be a candidate for the cause of the problem, the application would have to be *unable* to work in offline mode. Is that the case?
0
zolfAuthor Commented:

in offline mode do you mean local.
when i run the application on my local computer.i mean the application and db is both on my computer the frames load fast.

when i run the jnlp application from my hosting site BUT the db i connect to is on my computer.it is fast.

BUT when i run the JNLP application from my hosting site and also the db is of the hosting company then it is slow.
0
CEHJCommented:
>>BUT when i run the JNLP application from my hosting site and also the db is of the hosting company then it is slow

Ah - now we're getting somewhere - in the diagnostic sense. You need to speak to the hosting co about this. If they can't speed it up, you might have to try your own caching solution
0
zolfAuthor Commented:

>>If they can't speed it up, you might have to try your own caching solution
assuming they cannot.Can you please give me some feedback on caching solutions
0
zolfAuthor Commented:

also what do i need to tell them.i mean technical words
0
CEHJCommented:
>>assuming they cannot.

Don't assume that at first: they will give you feedback on why it might be happening when you describe the problem. You don't really need technical words - just explain your experience as you have here.

You might try the following:

Issue a query from a small standalone app against

a. local db
b. their db

and time it. Then you'll have hard evidence independently of your app
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.