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


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

Re: finding memory requir

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.alt.net!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: finding memory requir
Message-ID <7a9c7562b7810@uwe> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <1194003693.320460.90780@q5g2000prf.googlegroups.com>
References <1194003693.320460.90780@q5g2000prf.googlegroups.com>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 49
Date Wed, 27 Apr 2011 15:40:43 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918843 96.60.20.240 (Wed, 27 Apr 2011 10:40:43 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:40:43 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:2712

Show key headers only | 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