Applet running slow on Internet but fast localy

I have builded applet and put it on Internet.

When I run it from my computer localy then it runs fast but when I run it from internet site then it runs slow!

Why is that, how to fix it?

I have put it on site in .jar file. I have tried both all classes and .jar file to run from site but in both cases it runs slow.

[340 byte] By [BobMila] at [2007-11-27 6:16:08]
# 1

Are you sure it's running slowly, and not simply not running at all? Maybe it threw an exception that you missed.

Maybe it's running slowly because it's making non-local net connections, and when it ran locally, it was making much faster local net connections.

It could be a lot of things.

paulcwa at 2007-7-12 17:27:30 > top of Java-index,Desktop,Core GUI APIs...
# 2
It has threads in it, but I don't think that is the problem.When I run it from my disk it runs perfectly, from internet very slow.I don't have a clue.
BobMila at 2007-7-12 17:27:30 > top of Java-index,Desktop,Core GUI APIs...
# 3

Well, there's no way anybody can help diagnose the problem with that description.

Try using a profiler, if one exists that can work with applets. Are you using the Java plug-in?

Otherwise, try adding some logging statements to your code, with time data in them, to see where the slowdown is. If it's actually slow and not completely dying, then my guess is that it has to do with network latency, but who knows.

paulcwa at 2007-7-12 17:27:30 > top of Java-index,Desktop,Core GUI APIs...