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


Groups > comp.lang.java.programmer > #35178

Re: Memory usage

From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Memory usage
Date 2016-08-02 17:52 -0400
Organization Aioe.org NNTP Server
Message-ID <nnr4ns$1o9o$2@gioia.aioe.org> (permalink)
References <878twegamc.fsf@Equus.decebal.nl> <nnr4hb$1o9o$1@gioia.aioe.org>

Show all headers | View raw


On 8/2/2016 5:49 PM, Arne Vajhøj wrote:
> On 8/2/2016 4:48 PM, Cecil Westerhof wrote:
>> I have a Java application which I start with the parameters:
>>     -Xms4M -Xmx8M
>>
>> So the initial heap size will be 4 MB and the maximum will be 8 MB.
>> But some strange things happen.
>
> Given how small these values are then I am not surprised that you see
> funky results.

Just for fun try:

-Xms400M -Xmx800M

and see if you find Java's behavior more "matching expectations".

Arne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Memory usage Cecil Westerhof <Cecil@decebal.nl> - 2016-08-02 22:48 +0200
  Re: Memory usage Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-08-02 17:28 -0400
  Re: Memory usage Arne Vajhøj <arne@vajhoej.dk> - 2016-08-02 17:49 -0400
    Re: Memory usage Arne Vajhøj <arne@vajhoej.dk> - 2016-08-02 17:52 -0400
  Re: Memory usage Roedy Green <inquiry@mindprod.com> - 2016-08-02 17:51 -0700
  Re: Memory usage Nigel Wade <nmw@local.domain> - 2016-08-03 13:11 +0100

csiph-web