• Post Reply Bookmark Topic Watch Topic
  • New Topic

swing app slows down

 
Sri Rangan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have written a swing app which runs as standalone with Hypersonic DB.
Once the user logs on to the app and after start working for 10-15 mins, it slows down drastically and eventually it throws out of memory error
I would appreciate if some one point to me some tips to tune my app and speed up(!!!)the garbage collection process.
Thanks
Sri
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds strange. I have a Swing Application using MySQL and we have no problems with it at all. And I didn't do any fine tuning or performance enhancing code at all.
What JRE version are you running?
What type of PC with what OS are you running the app on?
 
Sri Rangan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JRE version : 1.4.0_01;
And users have 128 MB. Windows 98 / 2000
 
John Smith
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're creating connections and result set objects (among other JDBC stuff) all over the place, you might want to make sure you're calling close() on them when they're finished. That's my only idea.
 
Sri Rangan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We use OJB Persistence Frame Work (JDO). I am sure the the connections are closed propoerly because we use hypersonic in stand-alone mode which allows only one connection.
My app is basically has many JPanels in a JTabbedPane. This JTabbedPane resides in JInternalFrame Every JPanel has bunch of quetions as JRadioButton/JTextField/JTable/JCheckbox controls.User will answer the questions bases on some criteria.
I wrote a Formlet class which extends JPanel.It means every question is a formlet.
I am just wondering when user completes one set of questions and closes the Jinternal frame, Will it help if I make all Formlets references to null.
Thanks
Sri
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!