File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases 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 and Relational Databases
Bookmark "Java-MySQL performance over wan" Watch "Java-MySQL performance over wan" New topic

Java-MySQL performance over wan

Paul Celona

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

Joined: May 26, 2003
Posts: 33130

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Java-MySQL performance over wan
It's not a secret anymore!