Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Can one tell me the problem?

 
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
 
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?
 
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!