🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1630

Re: Java Application take too much memory

#1630
From: Joi Ellis [TeamB]
Date: Thu, 08 Nov 2001 14:59
30 lines
2370 bytes
Eugen Mihailescu <eugen.mihailescu@em-quicksoft.com> wrote:
[snip]
> JRE1.3.1+our jars. The thing is that launching the application with
> 'javaw.exe -classpath "REQUIRED_LIBS1;REQUIRED_LIBS2;...REQUIRED_LIBSn"' the
> application executes successfuly. Till here everything is just fine. But
> checking the amount of memory it takes I was surprissed to se that initialy
> is about 18-20 MB and during the day, when the user is using the app. it
> takes more than 40-75 MB of RAM. What is doing the garbage collector? I was
> expected that all the objects destroyed by application will be released from
> memory, in this way the amount of memory used by the application can be
> restored to a decent size for the client machine.

Not necessarily.  The JVM launches with a number of default values assigned
for heap management, including max size, initial size, and a few others.
As long as there is sufficient heap available, the gc may never be triggered
at all.  GC behavior is JVM-dependent.  Here's a link about the Sun
JVM and how it behaves when running JBuilder in it:

 http://community.borland.com/article/0,1410,23022,00.html
 
You should be able to apply these ideas to turn your own application as well.



-- 
Joi Ellis (TeamB)               http://www.teamb.com/
No direct email, please.
For best results, post on news server newsgroups.borland.com!
Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html
Only posts which violate the rules in guide.html are subject to cancelation.
Technical Details
Message-ID: <3bea9db9_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-lei1.dfn.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail
References: <3bea5001_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,3e709455fc6f1b2a
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-11-08 07:10:41 PST
Message-ID: <3bea9db9_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: Java Application take too much memory
Newsgroups: borland.public.jbuilder.java.api
References: <3bea5001_1@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 8 Nov 2001 06:59:06 -0800
X-Trace: dnews 1005231546 209.46.41.66 (8 Nov 2001 06:59:06 -0800)
Lines: 30
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-lei1.dfn.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail