• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I guess I'm doing sth wrong...

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I write and run on my PC a Java program that loads jpg images using BufferedImage and pixel grabber , I change some pixel values, I draw some lines and a histogram ...nothing special. The problem is that now both the computers I work on, after a couple of weeks programming, are getting REALLY slow even when I dont run Java and Im just trying to open word documents or sth similarly simple...
I guess Im doing sth wrong with memory allocation ...
Are there any simple lines that I should add to my code in order to balance the situation..?

Thank you very much
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does everything speed back up after a reboot?
Does your system performance monitor show anything suspicious? (On Windows this would be the Windows Task Manager.) Look for memory allocated to your Java program increasing over time.
Are you sure that you are dispose()-ing every Graphics object?
Bill
 
reply
    Bookmark Topic Watch Topic
  • New Topic