Skip to main content

Java Web Start App Starts Very Slowly After Exiting And Restarting

2 replies [Last post]
Joined: 2007-04-15

I am running (and deploying) a Java Web Start application. The first time it is run on a client computer, it starts up reasonably quickly (about 20-25 seconds). However, if the users exit from the application and then starts it again, it takes a very long time (between one and two minutes) to start up. During this time, Windows Task Manager shows that javaw.exe is consuming 100% of the CPU. Once it has started up, it runs normally. If the user reboots their computer, the application startup is normal the first time again. This behavior is seen on most of our computers, but not all of them. The client computers are all running Windows XP. Some of the servers are Win 2000; others are Win 2003. The application uses Apache Tomcat on the servers. The clients start the application using a shortcut to a "jnlp" file.

I'm new to Java applications and don't know how to troubleshoot this problem. The application vendor claims they haven't seen it before. Any suggestions on how to resolve this would be appreciated.


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-04-30

I see this behaviour, 100% reliably on my home machine. (Windows XP home).

Web server for serving jar files is Apache (2.x), running on Linux. No JSP, servlets etc. Seen when accessing via a shortcut or directly. Originally suspected to be related to using JRE 1.4.2, but not so. Seen with 1.5.x versions as well. Not attempted with 1.6 yet. Not seen on the machines at the office.

Joined: 2004-01-07

I don't know howto profile netbeans directly - maybe someone from the Sun-Gurus could help here. profiling with a dedicated java-profiler would clearly the best.

Meanwhile you could try with an non-intrusive profiler like Intel-VTune (which is free for non-commercial use as far as I know).

Would be really interresting what that could be...

lg Clemens