File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Can one tell me the problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Can one tell me the problem?" Watch "Can one tell me the problem?" New topic

Can one tell me the problem?

Kapil Keskar
Ranch Hand

Joined: Dec 04, 2001
Posts: 47
Hello Guys,
I am having strange problem.
We have developed a application in Java Swing with Msaccess as backend.It runs smooth
The problem comes, when anyone using this application for longer time, the time required to interact with the d/b interaction gets more & more. & consequently it takes more time than it would have done afresh.
May I know the real problem of that?
I understand as it could be of JDBC-ODBC connection or might be due to not finalization ie- garbage collection of objects used.
Please help me out.
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
you could run the problem through a profiler. (JProfiler is nice, it's commercial, but you can download a free evaluation version that could help you a lot). through it you might find memory leaks.
if you are running the program in an intranet environment with nfs-mounted home directories and you are using jdk 1.4. than your problem might be the result of the preferences bug in the jdk.copy the .java directory in your home to some place on the disc (not nfs mounted).
Kapil Keskar
Ranch Hand

Joined: Dec 04, 2001
Posts: 47
I am running this program under windows environment & using jdk1.3.
Actually i have done one printing routine, in which it the array of data is produced from database query & then it is send to another class for proper structuring of data (placing data in grids).
Is there any other problem, which might have arisen somehow?
Steffen Foldager
Ranch Hand

Joined: Mar 22, 2001
Posts: 58
Try the simplest first: Open the Windows Task Manager and see if your application is leaking memory (growing in memory size).
Then, if it is, you should really try JProfiler ( It's a very easy-to-set-up tool, and with it (or any other profiler) you can see which classes are responsible.

Steffen Foldager<p>Sun Certified Java Programmer<br />Sun Certified Web Component Developer
Kapil Keskar
Ranch Hand

Joined: Dec 04, 2001
Posts: 47
I will look into that part, what you have told me that in Windows Task Manager.
I will also download the profiler & check it out.
Thanks for suggesting solution.
I agree. Here's the link:
subject: Can one tell me the problem?
It's not a secret anymore!