aspose file tools
The moose likes Java in General and the fly likes performance impact at start up of my desktop app Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "performance impact at start up of my desktop app" Watch "performance impact at start up of my desktop app" New topic
Author

performance impact at start up of my desktop app

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 675

i m getting an performance hit at the start up of my desktop app ...i have used an image on the start up page which has a size of 49 kb and dimension 800 * 548
is because of this image my frame appears somewhat slow ....i mean when i start my app it takes 2 to 3 sec which is ok but when i click on a button which is the only button in that frame the next frame appears almost after 3 to 4 sec but after that every thing flows very smooth i mean as soon as i click the button
so what should i do to ?


The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Joe Areeda
Ranch Hand

Joined: Apr 15, 2011
Posts: 181
    
    2

naved momin wrote:i m getting an performance hit at the start up of my desktop app ...i have used an image on the start up page which has a size of 49 kb and dimension 800 * 548
is because of this image my frame appears somewhat slow ....i mean when i start my app it takes 2 to 3 sec which is ok but when i click on a button which is the only button in that frame the next frame appears almost after 3 to 4 sec but after that every thing flows very smooth i mean as soon as i click the button
so what should i do to ?

Without knowing more about your application and machine all we can do it guess but hey this is the Internet, there are a lot of guesses and opinions based on fewer facts.

My first suspicion is that you are bumping into memory limitations and the garbage collector is the culprit more than the image display by itself.

If this is the case bumping the size of the memory allocation pool and seeing if that solves it. The easy way is to include -Xmx on the command line tat starts the jar. eg: java -Xmx500M -jar myprog.jar

If that identifies the issue you have the fun task of figuring out how much memory you actually need.

Joe


It's not what your program can do, it's what your users do with the program.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: performance impact at start up of my desktop app
 
Similar Threads
Applet images
strange problem with final keyword
reduce gap between image and button
JFrame freezing when a Start button is added
showing facebox on different frame