🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19811

Re: Memory allocation injava

#19811
From: Andrew Bennett
Date: Fri, 19 Dec 1997 00:00
30 lines
1507 bytes


Grzegorz Sliwinski wrote:

> Is there a way to tell Java Virtual Machine that's
> I'm going to allocate some amount of memory ?
> My app allocates many rather small objects
> (10000 to 1M objects, about 20-50 bytes each)
> When I run my app with -verbosegc, I can see that JVM
> allocates small chunks of memory (4K) from system, and
> allocating my objects takes quite long
> (even several minutes). I want to make JVM to allocate
> larger blocks at once to make it faster. Anyone have
> some clue how to do it ?
>

Looking at the command-line switches, I don't see one
for this.  So I'm guessing it's tied heavily to the source
code.  You'd have to get the source code and compile your
own VM.



Andrew
--
  Andrew Bennett            ->  abennett@borland.com
  JBuilder info             ->  http://www.borland.com/jbuilder/
  JBuilder newsgroups info  ->  http://www.borland.com/newsgroups/
**** Please don't post a reply AND send email.  Do one.  I'll see it. ****
Technical Details
Message-ID: <349ABCA8.56BF3743@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <349992F6.30AF6A17@friko2.onet.pl>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,7be5e7f390b6a90f
X-Google-Attributes: gidf74b3,public
From: Andrew Bennett <abennett@borland.com>
Subject: Re: Memory allocation injava
Date: 1997/12/19
Message-ID: <349ABCA8.56BF3743@borland.com>
X-Deja-AN: 308634172
Content-Transfer-Encoding: 7bit
References: <349992F6.30AF6A17@friko2.onet.pl>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: None
Newsgroups: borland.public.jbuilder.java.language