E
Elliot
Hi
Our Java Swing application uses sockets to communicate with a backend
Cobol database application. On 10% of the machines where the
application is running CPU usage goes to 100% at startup. On the
other 90% of the machines CPU usage is around 50%.
I develop on a P4 3.06 Gh Dell with XP SP2 and 1 gig of ram and run
at 50%. At one of our clients with the same P4 3.06 Gh and 2 gigs of
ram the application loads much slower and runs at 100%.
Perhaps the coding is part of the problem. A login screen is displayed
at the start of the application. In order to get the application to
stop and wait for user input the following line of code was used.
while(!pW.isFinished){;}; // programmatic block to put up screen
This waits (by looping) for the boolean to be set to true while the
password is verified via the socket connection with Cobol.
However, it takes many seconds to even get to this line. Java just
seems really slow to load.
I'm wondering how to understand the difference between the machines. I
also wonder if there are any java startup options that might help.
Both machines are using java "1.6.0_05" and we are loading a jar
file. Any ideas are most welcome
Thanks
Elliot
Our Java Swing application uses sockets to communicate with a backend
Cobol database application. On 10% of the machines where the
application is running CPU usage goes to 100% at startup. On the
other 90% of the machines CPU usage is around 50%.
I develop on a P4 3.06 Gh Dell with XP SP2 and 1 gig of ram and run
at 50%. At one of our clients with the same P4 3.06 Gh and 2 gigs of
ram the application loads much slower and runs at 100%.
Perhaps the coding is part of the problem. A login screen is displayed
at the start of the application. In order to get the application to
stop and wait for user input the following line of code was used.
while(!pW.isFinished){;}; // programmatic block to put up screen
This waits (by looping) for the boolean to be set to true while the
password is verified via the socket connection with Cobol.
However, it takes many seconds to even get to this line. Java just
seems really slow to load.
I'm wondering how to understand the difference between the machines. I
also wonder if there are any java startup options that might help.
Both machines are using java "1.6.0_05" and we are loading a jar
file. Any ideas are most welcome
Thanks
Elliot