aspose file tools*
The moose likes JDBC and the fly likes Java-MySQL performance over wan Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Java-MySQL performance over wan" Watch "Java-MySQL performance over wan" New topic
Author

Java-MySQL performance over wan

Paul Celona
Greenhorn

Joined: May 20, 2004
Posts: 15
I am running mysql 4.0.18 on Windows 2003 server which also hosts my apache tomcat server. My applet makes a connection to the mysql database on the server as well as a socket connection to a service on the same server. In the lab with only a hub between the client and server, the application performs well and data is transferred quickly. In the deployed environment with a pair of gateways in between, socket performance is not affected much, but the application gui bogs down on the database queries. Performance is so slow that some simple GUI updates take up to 5-7 seconds with only a simple 1 table update occurring. The database updates are small (1 column) updates.

Does anyone have experience with this and/or can provide some insight?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30973
    
159

Paul,
There could be contention on the table. If someone has a write lock, nobody else will be able to access the table. Or there could be a network problem or you could be low on disk space or...

You are giong to need to do some performance monitoring to see where the problem is in terms of physical resources.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java-MySQL performance over wan