This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can one tell me the problem?

 
Kapil Keskar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thanks
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
c
 
Kapil Keskar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 (www.jprofiler.com). It's a very easy-to-set-up tool, and with it (or any other profiler) you can see which classes are responsible.
Steffen
 
Kapil Keskar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic