Inconsistent CPU usage



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
.



Relevant Pages

  • Re: Inconsistent CPU usage
    ... Our Java Swing application uses sockets to communicate with a backend ... Cobol database application. ... application is running CPU usage goes to 100% at startup. ... other 90% of the machines CPU usage is around 50%. ...
    (comp.lang.java.programmer)
  • Re: Java not working in IE
    ... the thing is that it all works with the "other" browser. ... We have all been forced to use other browsers when we need Java to work. ... >> machines. ... I am removing applets from in the java control panel, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: SP2/Java problems - IT DOES NOT WORK, period!!!!!!
    ... some additional details - machines you are running, specs of those machines, ... It will with anything but SUN JAVA situations. ... So, Tom Pepper Willet, tell us why YOUR Sun Java works and no one else's ...
    (microsoft.public.windowsupdate)
  • Java not working in IE
    ... I have read quite a few posts here and on other sites about folks having ... I currently have that problem on a few machines, ... please don't tell me that) installed as well as Sun Java 1.5.0_04. ... I am removing applets from in the java control panel, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Inconsistent CPU usage
    ... Our Java Swing application uses sockets to communicate with a backend ... other 90% of the machines CPU usage is around 50%. ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ... You aren't clear whether this is a Swing GUI program or not but if that code is running in your EDT, nothing else is going to work right. ...
    (comp.lang.java.programmer)