Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2712

Re: finding memory requir

From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: finding memory requir
Message-ID <7a9c7562b7810@uwe> (permalink)
Newsgroups comp.lang.java.gui
References <1194003693.320460.90780@q5g2000prf.googlegroups.com>
Date 2011-04-27 15:40 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
kkrish wrote:
..
>         I have an application in Java Swing that has around 40
>Jpanels 

Did you mean javax.swing.JPanel?**

I am unfamiliar with any 'Jpanel' or 'Jpanels'.

> ..with equal number of images ...

All specified by the program, or the user?*

>..on them and each panel will have
>some other components also. 

Limit the memory, until it runs out, for a rough idea.  
Also, jconsole that comes with the SDK, offers a 
basic view into the memory used by an app.

>..I want ton find the amount of RAM the
>application requires to run and also the memory requirement of each
>JPanel and its components. How to find the memory requirement?

* How long is a piece of string?
A lot of this depends on the size of the images.

>How can I make sure that the application will never run out of memory
>(out of memory exception )?

What is an 'out of memory exception'?  I've struck 
'OutOfMemoryError's** in applications before, but I 
have never seen one of those.

** This is programming, so please be very specific 
and accurate.

-- 
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-gui/200711/1

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

finding memory required f "kkrish" <kkrish@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
  Re: finding memory requir "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
    Re: finding memory requir "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
  Re: finding memory requir "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000

csiph-web