Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

THEGODDESSOFTHENETHASTWISTINGFINGERSANDHERVOICEISLIKEAJAVELININTHENIGHTDUDE


computers / comp.os.vms / JVM languages on VMS x86-64

SubjectAuthor
* JVM languages on VMS x86-64Arne Vajhøj
+- Re: JVM languages on VMS x86-64issinoho
`* Re: JVM languages on VMS x86-64Arne Vajhøj
 `* Re: JVM languages on VMS x86-64issinoho
  +* Re: JVM languages on VMS x86-64issinoho
  |+- Re: JVM languages on VMS x86-64Jake Hamby (Solid State Jake)
  |`* Re: JVM languages on VMS x86-64Arne Vajhøj
  | `* Re: JVM languages on VMS x86-64Jake Hamby (Solid State Jake)
  |  `* Re: JVM languages on VMS x86-64Arne Vajhøj
  |   `- Re: JVM languages on VMS x86-64Arne Vajhøj
  +- Re: JVM languages on VMS x86-64Single Stage to Orbit
  `* Re: JVM languages on VMS x86-64Arne Vajhøj
   +* Re: JVM languages on VMS x86-64Arne Vajhøj
   |`* Re: JVM languages on VMS x86-64Arne Vajhøj
   | `- Re: JVM languages on VMS x86-64issinoho
   `* Re: JVM languages on VMS x86-64Single Stage to Orbit
    `* Re: JVM languages on VMS x86-64Craig A. Berry
     `- Re: JVM languages on VMS x86-64Arne Vajhøj

1
JVM languages on VMS x86-64

<ugp30j$3oqc0$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30580&group=comp.os.vms#30580

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: JVM languages on VMS x86-64
Date: Wed, 18 Oct 2023 13:01:05 -0400
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <ugp30j$3oqc0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 18 Oct 2023 17:01:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84d47e0ae08b5bc06707cacaca74b78c";
logging-data="3959168"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+T7T/gz1RcpnFu7roHb0yQdlXm3PMy4gE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2yPz4i+Dt/zK4Y9/PAGjRC2lZg0=
Content-Language: en-US
 by: Arne Vajhøj - Wed, 18 Oct 2023 17:01 UTC

Jython (JVM Python)
-------------------

Make sure you got Java installed, grab vmsscript-bin.zip here
https://www.vajhoej.dk/arne/opensource/vms/,
unzip vmsscript-bin.zip, unzip -aa temp.zip, @fixup.

Seems to work fine (ignore warning about InteractiveConsole).

Rhino (JVM JavaScript)
----------------------

Make sure you got Java installed, grab vmsscript-bin.zip here
https://www.vajhoej.dk/arne/opensource/vms/,
unzip vmsscript-bin.zip, unzip -aa temp.zip, @fixup.

Seems to work fine.

Groovy
------

Make sure you got Java installed, grab latest 4.0.x standard zip,
unzip (ODS-5 of course), grab groovy.com and groovydef.com here
https://www.vajhoej.dk/arne/vms/snippets/ (extension is changed
to .txt to make browser display).

Seems to work fine.

Scala
-----

Make sure you got Java installed, grab latest 2.13.x standard zip,
unzip (ODS-5 of course), grab scala.com and scaladef.com here
https://www.vajhoej.dk/arne/vms/snippets/ (extension is changed
to .txt to make browser display).

Seems to work fine.

Kotlin
------

Make sure you got Java installed, grab latest 1.9.x standard zip,
unzip (ODS-5 of course), grab kotlin.com and kotlindef.com here
https://www.vajhoej.dk/arne/vms/snippets/ (extension is changed
to .txt to make browser display).

Works with a few hassles:
* the compiler does not recognize .KT files as Kotlin
source only .kt so one need to quote the filename
as argument to the wrapper COM file aka kotlinc "test.kt"
* the compiler only works with source files in RFM STMLF

Arne

Re: JVM languages on VMS x86-64

<db228204-06a0-4aa5-84bb-44cc6b083269n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30589&group=comp.os.vms#30589

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:28c3:b0:773:af69:e607 with SMTP id l3-20020a05620a28c300b00773af69e607mr12705qkp.10.1697666184227;
Wed, 18 Oct 2023 14:56:24 -0700 (PDT)
X-Received: by 2002:a4a:244d:0:b0:581:d9c6:79be with SMTP id
v13-20020a4a244d000000b00581d9c679bemr188885oov.1.1697666183874; Wed, 18 Oct
2023 14:56:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.swapon.de!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Wed, 18 Oct 2023 14:56:21 -0700 (PDT)
In-Reply-To: <ugp30j$3oqc0$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:c7c:d08d:9c00:9:2c4:5ed6:f665;
posting-account=Jc8lggoAAADpqbPc4tHcztc81YNnWd1x
NNTP-Posting-Host: 2a02:c7c:d08d:9c00:9:2c4:5ed6:f665
References: <ugp30j$3oqc0$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <db228204-06a0-4aa5-84bb-44cc6b083269n@googlegroups.com>
Subject: Re: JVM languages on VMS x86-64
From: iai...@issinoho.com (issinoho)
Injection-Date: Wed, 18 Oct 2023 21:56:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3464
 by: issinoho - Wed, 18 Oct 2023 21:56 UTC

On Wednesday, 18 October 2023 at 18:01:12 UTC+1, Arne Vajhøj wrote:
> Jython (JVM Python)
> -------------------
>
> Make sure you got Java installed, grab vmsscript-bin.zip here
> https://www.vajhoej.dk/arne/opensource/vms/,
> unzip vmsscript-bin.zip, unzip -aa temp.zip, @fixup.
>
> Seems to work fine (ignore warning about InteractiveConsole).
>
> Rhino (JVM JavaScript)
> ----------------------
>
> Make sure you got Java installed, grab vmsscript-bin.zip here
> https://www.vajhoej.dk/arne/opensource/vms/,
> unzip vmsscript-bin.zip, unzip -aa temp.zip, @fixup.
>
> Seems to work fine.
>
> Groovy
> ------
>
> Make sure you got Java installed, grab latest 4.0.x standard zip,
> unzip (ODS-5 of course), grab groovy.com and groovydef.com here
> https://www.vajhoej.dk/arne/vms/snippets/ (extension is changed
> to .txt to make browser display).
>
> Seems to work fine.
>
> Scala
> -----
>
> Make sure you got Java installed, grab latest 2.13.x standard zip,
> unzip (ODS-5 of course), grab scala.com and scaladef.com here
> https://www.vajhoej.dk/arne/vms/snippets/ (extension is changed
> to .txt to make browser display).
>
> Seems to work fine.
>
>
> Kotlin
> ------
>
> Make sure you got Java installed, grab latest 1.9.x standard zip,
> unzip (ODS-5 of course), grab kotlin.com and kotlindef.com here
> https://www.vajhoej.dk/arne/vms/snippets/ (extension is changed
> to .txt to make browser display).
>
> Works with a few hassles:
> * the compiler does not recognize .KT files as Kotlin
> source only .kt so one need to quote the filename
> as argument to the wrapper COM file aka kotlinc "test.kt"
> * the compiler only works with source files in RFM STMLF
>
> Arne

Nice work!

What system and account quotas do you recommend for Groovy? I'm getting the following with the simple test script...

#
# There is insufficient memory for the Java Runtime Environment to continue..
# Native memory allocation (malloc) failed to allocate 34078720 bytes for PSYoun
gGen::resize_generation

Re: JVM languages on VMS x86-64

<ugpurp$3v14e$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30592&group=comp.os.vms#30592

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: JVM languages on VMS x86-64
Date: Wed, 18 Oct 2023 20:56:24 -0400
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <ugpurp$3v14e$1@dont-email.me>
References: <ugp30j$3oqc0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 19 Oct 2023 00:56:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8fc2bef5b4d05a37128f34d6ffe0f28c";
logging-data="4162702"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+O7U3VWsC0iimLEyjnvvgJtr0MAUoDjwQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:3Wgvin7KjbBSdCce1hvbUMD2ScU=
In-Reply-To: <ugp30j$3oqc0$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Thu, 19 Oct 2023 00:56 UTC

Re quotas then to get it to run just make sure PGFLQUO is larger
than Xmx.

So -Xmx256m should be fine with PGFLQUO of 750000, -Xmx512m with
1500000, -Xmx1024m with 3000000 etc..

(50% spare is probably too much spare, but better too much
than too little)

To get it run well I assume WSEXT should also be raised.

Arne

Re: JVM languages on VMS x86-64

<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30601&group=comp.os.vms#30601

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:5511:0:b0:419:7c79:7f75 with SMTP id j17-20020ac85511000000b004197c797f75mr25301qtq.8.1697705095795;
Thu, 19 Oct 2023 01:44:55 -0700 (PDT)
X-Received: by 2002:a05:6870:a9a2:b0:1e9:c24f:ff8e with SMTP id
ep34-20020a056870a9a200b001e9c24fff8emr837943oab.0.1697705095580; Thu, 19 Oct
2023 01:44:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 19 Oct 2023 01:44:55 -0700 (PDT)
In-Reply-To: <ugpurp$3v14e$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:c7c:d08d:9c00:548c:e9cb:d059:6bca;
posting-account=Jc8lggoAAADpqbPc4tHcztc81YNnWd1x
NNTP-Posting-Host: 2a02:c7c:d08d:9c00:548c:e9cb:d059:6bca
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
Subject: Re: JVM languages on VMS x86-64
From: iai...@issinoho.com (issinoho)
Injection-Date: Thu, 19 Oct 2023 08:44:55 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 30
 by: issinoho - Thu, 19 Oct 2023 08:44 UTC

On Thursday, 19 October 2023 at 01:56:30 UTC+1, Arne Vajhøj wrote:
> Re quotas then to get it to run just make sure PGFLQUO is larger
> than Xmx.
>
> So -Xmx256m should be fine with PGFLQUO of 750000, -Xmx512m with
> 1500000, -Xmx1024m with 3000000 etc..
>
> (50% spare is probably too much spare, but better too much
> than too little)
>
> To get it run well I assume WSEXT should also be raised.
>
> Arne

Thanks, working now as per your tests for GROOVY and GROOVYC

Not having much luck with Groovy Shell though, does this work for you?

$ groovysh --help
java.lang.ClassNotFoundException: org.codehaus.groovy.tools.shell.Main
at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:180)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:148)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter..java
:109)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:37)

Re: JVM languages on VMS x86-64

<43bf01f2-b0b5-4232-ba80-b96ce92a5eddn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30602&group=comp.os.vms#30602

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ad4:4f43:0:b0:635:e9f6:9470 with SMTP id eu3-20020ad44f43000000b00635e9f69470mr20484qvb.5.1697706508048;
Thu, 19 Oct 2023 02:08:28 -0700 (PDT)
X-Received: by 2002:a05:6808:1a26:b0:3b2:ec65:399e with SMTP id
bk38-20020a0568081a2600b003b2ec65399emr631229oib.3.1697706507846; Thu, 19 Oct
2023 02:08:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 19 Oct 2023 02:08:27 -0700 (PDT)
In-Reply-To: <4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:c7c:d08d:9c00:6dab:8b28:b47d:2530;
posting-account=Jc8lggoAAADpqbPc4tHcztc81YNnWd1x
NNTP-Posting-Host: 2a02:c7c:d08d:9c00:6dab:8b28:b47d:2530
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me> <4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <43bf01f2-b0b5-4232-ba80-b96ce92a5eddn@googlegroups.com>
Subject: Re: JVM languages on VMS x86-64
From: iai...@issinoho.com (issinoho)
Injection-Date: Thu, 19 Oct 2023 09:08:28 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 45
 by: issinoho - Thu, 19 Oct 2023 09:08 UTC

On Thursday, 19 October 2023 at 09:44:57 UTC+1, issinoho wrote:
> On Thursday, 19 October 2023 at 01:56:30 UTC+1, Arne Vajhøj wrote:
> > Re quotas then to get it to run just make sure PGFLQUO is larger
> > than Xmx.
> >
> > So -Xmx256m should be fine with PGFLQUO of 750000, -Xmx512m with
> > 1500000, -Xmx1024m with 3000000 etc..
> >
> > (50% spare is probably too much spare, but better too much
> > than too little)
> >
> > To get it run well I assume WSEXT should also be raised.
> >
> > Arne
> Thanks, working now as per your tests for GROOVY and GROOVYC
>
> Not having much luck with Groovy Shell though, does this work for you?
>
> $ groovysh --help
> java.lang.ClassNotFoundException: org.codehaus.groovy.tools.shell.Main
> at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:180)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:148)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java
> :109)
> at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:37)

Also, Scala seems to need more resources than Groovy, as with...
WSextent: 65536
Pgflquo: 750000
-Xmx256m

(which Groovy is happy with) I'm getting...

$ scala test.scala
# # There is insufficient memory for the Java Runtime Environment to continue..
# Native memory allocation (malloc) failed to allocate 39321600 bytes for PSOldG
en::expand_to_reserved
# An error report file with more information is saved as:
# /sys$scratch//hs_err_pid30232.log

Re: JVM languages on VMS x86-64

<5d02b0dfdf937c64943d057c2c8169a21a40ef34.camel@munted.eu>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30603&group=comp.os.vms#30603

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!palladium.buellnet!not-for-mail
From: alex.bu...@munted.eu (Single Stage to Orbit)
Newsgroups: comp.os.vms
Subject: Re: JVM languages on VMS x86-64
Date: Thu, 19 Oct 2023 11:11:53 +0100
Organization: One very high maintenance cat
Message-ID: <5d02b0dfdf937c64943d057c2c8169a21a40ef34.camel@munted.eu>
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
Reply-To: alex.buell@munted.eu
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: solani.org;
logging-data="467950"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Evolution 3.48.4
Cancel-Lock: sha1:qFo4r6/R53kD45kUQLCPXeWXqGE=
X-User-ID: eJwNycERACEIBLCWDoRFypEF+y/hnDzjCwKGwWF+H0nkpzeK0zj9IrP3cOKbiBzrZiWxgk64nlKTquKR0Z0/YvQWOQ==
In-Reply-To: <4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
 by: Single Stage to Orbi - Thu, 19 Oct 2023 10:11 UTC

On Thu, 2023-10-19 at 01:44 -0700, issinoho wrote:
> Not having much luck with Groovy Shell though, does this work for
> you?

At a guess it probably needs to know where to find its class files.
--
Tactical Nuclear Kittens

Re: JVM languages on VMS x86-64

<d6ba8efe-3dbe-4615-93dc-b62bea39f308n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30617&group=comp.os.vms#30617

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:184c:b0:66d:51f:c1a7 with SMTP id d12-20020a056214184c00b0066d051fc1a7mr53559qvy.13.1697741086980; Thu, 19 Oct 2023 11:44:46 -0700 (PDT)
X-Received: by 2002:a05:6808:8c6:b0:3ad:eae0:3317 with SMTP id k6-20020a05680808c600b003adeae03317mr890367oij.5.1697741086749; Thu, 19 Oct 2023 11:44:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.99.11.MISMATCH!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 19 Oct 2023 11:44:46 -0700 (PDT)
In-Reply-To: <43bf01f2-b0b5-4232-ba80-b96ce92a5eddn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:46b0:abc0:452e:161b:329f:5644; posting-account=OGFVHQoAAAASiNAamRQec8BtkuXxYFnQ
NNTP-Posting-Host: 2600:1700:46b0:abc0:452e:161b:329f:5644
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me> <4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com> <43bf01f2-b0b5-4232-ba80-b96ce92a5eddn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d6ba8efe-3dbe-4615-93dc-b62bea39f308n@googlegroups.com>
Subject: Re: JVM languages on VMS x86-64
From: jake.ha...@gmail.com (Jake Hamby (Solid State Jake))
Injection-Date: Thu, 19 Oct 2023 18:44:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 80
 by: Jake Hamby (Solid St - Thu, 19 Oct 2023 18:44 UTC

On Thursday, October 19, 2023 at 2:08:29 AM UTC-7, issinoho wrote:
> On Thursday, 19 October 2023 at 09:44:57 UTC+1, issinoho wrote:
> > On Thursday, 19 October 2023 at 01:56:30 UTC+1, Arne Vajhøj wrote:
> > > Re quotas then to get it to run just make sure PGFLQUO is larger
> > > than Xmx.
> > >
> > > So -Xmx256m should be fine with PGFLQUO of 750000, -Xmx512m with
> > > 1500000, -Xmx1024m with 3000000 etc..
> > >
> > > (50% spare is probably too much spare, but better too much
> > > than too little)
> > >
> > > To get it run well I assume WSEXT should also be raised.
> > >
> > > Arne
> > Thanks, working now as per your tests for GROOVY and GROOVYC
> >
> > Not having much luck with Groovy Shell though, does this work for you?
> >
> > $ groovysh --help
> > java.lang.ClassNotFoundException: org.codehaus.groovy.tools.shell.Main
> > at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:180)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> > at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:148)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> > at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java
> > :109)
> > at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:37)
> Also, Scala seems to need more resources than Groovy, as with...
> WSextent: 65536
> Pgflquo: 750000
> -Xmx256m
>
> (which Groovy is happy with) I'm getting...
>
> $ scala test.scala
> #
> # There is insufficient memory for the Java Runtime Environment to continue.
> # Native memory allocation (malloc) failed to allocate 39321600 bytes for PSOldG
> en::expand_to_reserved
> # An error report file with more information is saved as:
> # /sys$scratch//hs_err_pid30232.log

Your Pgflquo is only 366 MiB, which isn't going to be enough for the JVM. Even though you've limited the max heap size to 256 MiB, the allocated virtual memory could be around double that, with JIT caches, so the out-of-memory error you're seeing isn't unexpected with your quotas.

For my latest round of Java benchmarking, I've increased the system WSMAX, along with my WSextent, to 12582912 pagelets (6 GiB), and I've increased my user Pgflquo to 33554432 pagelets (16 GiB), the size of the VM's RAM.

Everything did work using a WSextent of just under 2 GiB, and a Pgflquo of 10000000 pagelets (4.77 GiB), but I wanted to boost the working set to be as large as possible so my Java VMs aren't getting page faults for no reason, and in anticipation of some large RAM benchmarks I may want to do later.

The reason I wasn't able to set WSextent to 6 GiB before was that there's a bug in the x86 version of AUTOGEN that was just fixed in the VMS921X_UPDATE-V0200 patch that was just posted to the VSI portal. One of the bug fixes was for miscalculation of the parameters under circumstances like trying to set MIN_WSMAX to 2 GiB or higher. With that patch applied, I had no trouble setting it to 6 GiB, and SYSMAN says that the max value is currently 64 GiB.

I generally don't see Java apps using higher than -Xmx2048m, but that's going to mean the process is allocating as much as 4 GiB or more virtual memory, with a working set size of hopefully around 2 GiB, so with today's typical large memory VMs, there's no reason not to increase WSextent and Pgflquo to let the JVM take full advantage.

Regards,
Jake Hamby

Re: JVM languages on VMS x86-64

<ugs259$hk15$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30619&group=comp.os.vms#30619

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: JVM languages on VMS x86-64
Date: Thu, 19 Oct 2023 16:04:57 -0400
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <ugs259$hk15$1@dont-email.me>
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
<43bf01f2-b0b5-4232-ba80-b96ce92a5eddn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 19 Oct 2023 20:04:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8fc2bef5b4d05a37128f34d6ffe0f28c";
logging-data="577573"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TchjrQRVZQk10q+1UPXDUrfKR8Z4ZcWw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:yoiXEZhx08StNK1GVDMThtDbYUA=
Content-Language: en-US
In-Reply-To: <43bf01f2-b0b5-4232-ba80-b96ce92a5eddn@googlegroups.com>
 by: Arne Vajhøj - Thu, 19 Oct 2023 20:04 UTC

On 10/19/2023 5:08 AM, issinoho wrote:
> Also, Scala seems to need more resources than Groovy, as with...
> WSextent: 65536
> Pgflquo: 750000
> -Xmx256m
>
> (which Groovy is happy with) I'm getting...
>
> $ scala test.scala
> #
> # There is insufficient memory for the Java Runtime Environment to continue.
> # Native memory allocation (malloc) failed to allocate 39321600 bytes for PSOldG
> en::expand_to_reserved
> # An error report file with more information is saved as:
> # /sys$scratch//hs_err_pid30232.log

Then just double.

-Xmx512m
PGFQUO 1500000

And try again.

-Xmx256m worked for my hello world style scala program, but my PGFLQUO
is a lot higher.

Arne

Re: JVM languages on VMS x86-64

<ugs2q9$hsag$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30620&group=comp.os.vms#30620

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: JVM languages on VMS x86-64
Date: Thu, 19 Oct 2023 16:16:08 -0400
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <ugs2q9$hsag$1@dont-email.me>
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 19 Oct 2023 20:16:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8fc2bef5b4d05a37128f34d6ffe0f28c";
logging-data="586064"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kFCaFFSWzLBFoKgVo/41vbf+X8T9zoI8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:UJ8NixGOAovJVNCGhnZoYzwMymo=
Content-Language: en-US
In-Reply-To: <4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
 by: Arne Vajhøj - Thu, 19 Oct 2023 20:16 UTC

On 10/19/2023 4:44 AM, issinoho wrote:
> Thanks, working now as per your tests for GROOVY and GROOVYC
>
> Not having much luck with Groovy Shell though, does this work for you?
>
> $ groovysh --help
> java.lang.ClassNotFoundException: org.codehaus.groovy.tools.shell.Main
> at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:180)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:148)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java
> :109)
> at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:37)

Ooops. I did not test groovysh.

Looks like they changed the class name from:
org.codehaus.groovy.tools.shell.Main
to:
org.codehaus.groovy.tools.shell.Main
in recent Groovy versions.

But just changing:

$ if p1 .eqs. "SHELL" then clz = "org.codehaus.groovy.tools.shell.Main"

to:

$ if p1 .eqs. "SHELL" then clz = "org.apache.groovy.groovysh.Main"

Does not make it work.

The new shell use jline and jline got this idea that spawning
sh to change terminal attributes is a portable approach.

Jython had the same problem, but there were a workaround.

I will have to look more into this.

Arne

Re: JVM languages on VMS x86-64

<ugs3sd$i2or$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30621&group=comp.os.vms#30621

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: JVM languages on VMS x86-64
Date: Thu, 19 Oct 2023 16:34:21 -0400
Organization: A noiseless patient Spider
Lines: 84
Message-ID: <ugs3sd$i2or$1@dont-email.me>
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
<ugs2q9$hsag$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Oct 2023 20:34:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8fc2bef5b4d05a37128f34d6ffe0f28c";
logging-data="592667"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/qw8mg6ilur8G9+TOwU/B2Nus8d/mBcc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:56tBp0QU84HN103RIAbbNOu9Gd0=
In-Reply-To: <ugs2q9$hsag$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Thu, 19 Oct 2023 20:34 UTC

On 10/19/2023 4:16 PM, Arne Vajhøj wrote:
> On 10/19/2023 4:44 AM, issinoho wrote:
>> Thanks, working now as per your tests for GROOVY and GROOVYC
>>
>> Not having much luck with Groovy Shell though, does this work for you?
>>
>> $ groovysh --help
>> java.lang.ClassNotFoundException: org.codehaus.groovy.tools.shell.Main
>>          at
>> org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:180)
>>          at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>>          at
>> org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:148)
>>          at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>          at
>> org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java
>> :109)
>>          at
>> org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:37)
>
> Ooops. I did not test groovysh.
>
> Looks like they changed the class name from:
>   org.codehaus.groovy.tools.shell.Main
> to:
>   org.codehaus.groovy.tools.shell.Main
> in recent Groovy versions.
>
> But just changing:
>
> $ if p1 .eqs. "SHELL" then clz = "org.codehaus.groovy.tools.shell.Main"
>
> to:
>
> $ if p1 .eqs. "SHELL" then clz = "org.apache.groovy.groovysh.Main"
>
>
> Does not make it work.
>
> The new shell use jline and jline got this idea that spawning
> sh to change terminal attributes is a portable approach.
>
> Jython had the same problem, but there were a workaround.
>
> I will have to look more into this.

Could you try with:

$ p1 = f$edit(p1, "UPCASE")
$ clz = ""
$ if p1 .eqs. "RUN" then clz = "groovy.ui.GroovyMain"
$ if p1 .eqs. "COMPILE" then clz =
"org.codehaus.groovy.tools.FileSystemCompiler"
$ if p1 .eqs. "CONSOLE" then clz = groovy.ui.Console"
$ if p1 .eqs. "SHELL" then clz = "org.apache.groovy.groovysh.Main"
$ parent = "/disk2/arne/groovy"
$ ver = "4.0.12"
$ groovyhome = "''parent'/groovy-''ver'"
$ xmx = "''groovy_xmx'"
$ if xmx .eqs. "" then xmx = "256m"
$ cp = "''groovy_cp'"
$ if cp .eqs. "" then cp = "."
$ define/nolog sys$input sys$command
$ java -
"-Xmx''xmx'" -
"-Dprogram.name"="" -
"-Dgroovy.home"="''groovyhome'" -
"-Dtools.jar"="/sys$sysdevice/sys0/syscommon/java$80/lib/tools.jar" -
"-Dgroovy.starter.conf"="''groovyhome'/conf/groovy-starter.conf" -
"-Dscript.name"="''p2'" -
-classpath "''groovyhome'/lib/groovy-''ver'.jar" -
"org.codehaus.groovy.tools.GroovyStarter" -
--main "''clz'" -
--conf "''groovyhome'/conf/groovy-starter.conf" -
--classpath "''cp'" -
"--terminal=none" -
'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
$ if p1 .eqs. "COMPILE" then write sys$output "Run with java -cp
..:''groovyhome'/lib/* <main-class>"
$ exit

Arne

Re: JVM languages on VMS x86-64

<9e9aaf5fe175b260c3827dc7ed53e217c0ef364b.camel@munted.eu>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30625&group=comp.os.vms#30625

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!palladium.buellnet!not-for-mail
From: alex.bu...@munted.eu (Single Stage to Orbit)
Newsgroups: comp.os.vms
Subject: Re: JVM languages on VMS x86-64
Date: Thu, 19 Oct 2023 23:24:47 +0100
Organization: One very high maintenance cat
Message-ID: <9e9aaf5fe175b260c3827dc7ed53e217c0ef364b.camel@munted.eu>
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
<ugs2q9$hsag$1@dont-email.me>
Reply-To: alex.buell@munted.eu
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: solani.org;
logging-data="485629"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Evolution 3.48.4
Cancel-Lock: sha1:f7jrsZ/MQxI+vl+GIg0ZvGUV87Q=
X-User-ID: eJwFwYkBwEAEBMCWvBvK4dB/CZlxBeN9Bof5+WEgL2Zz7FCsro0cvUyNpu+JsKGbtkrohAexFlS0N7LYH1TIFcA=
In-Reply-To: <ugs2q9$hsag$1@dont-email.me>
 by: Single Stage to Orbi - Thu, 19 Oct 2023 22:24 UTC

On Thu, 2023-10-19 at 16:16 -0400, Arne Vajhøj wrote:
> Looks like they changed the class name from:
>    org.codehaus.groovy.tools.shell.Main
> to:
>    org.codehaus.groovy.tools.shell.Main
> in recent Groovy versions.

Huh?
--
Tactical Nuclear Kittens

Re: JVM languages on VMS x86-64

<ugsb77$jteg$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30626&group=comp.os.vms#30626

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: JVM languages on VMS x86-64
Date: Thu, 19 Oct 2023 17:39:35 -0500
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <ugsb77$jteg$1@dont-email.me>
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
<ugs2q9$hsag$1@dont-email.me>
<9e9aaf5fe175b260c3827dc7ed53e217c0ef364b.camel@munted.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Oct 2023 22:39:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="61a6670a7347b8d34467367e2a559b33";
logging-data="652752"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ht2J656h+uRNSoAUKRei/Ug1L6jJ2RfI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:4j43UHePshdYdYMbie3SCfhx45A=
Content-Language: en-US
In-Reply-To: <9e9aaf5fe175b260c3827dc7ed53e217c0ef364b.camel@munted.eu>
 by: Craig A. Berry - Thu, 19 Oct 2023 22:39 UTC

On 10/19/23 5:24 PM, Single Stage to Orbit wrote:
> On Thu, 2023-10-19 at 16:16 -0400, Arne Vajhøj wrote:
>> Looks like they changed the class name from:
>>    org.codehaus.groovy.tools.shell.Main
>> to:
>>    org.codehaus.groovy.tools.shell.Main
>> in recent Groovy versions.

He just had a typo -- from the rest of his message it looks like the
second one should be:

org.apache.groovy.groovysh.Main

Re: JVM languages on VMS x86-64

<ugsd67$kc8t$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30630&group=comp.os.vms#30630

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: JVM languages on VMS x86-64
Date: Thu, 19 Oct 2023 19:13:10 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <ugsd67$kc8t$1@dont-email.me>
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
<ugs2q9$hsag$1@dont-email.me>
<9e9aaf5fe175b260c3827dc7ed53e217c0ef364b.camel@munted.eu>
<ugsb77$jteg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Oct 2023 23:13:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84136aa36b1a841dfd54496eb540feda";
logging-data="667933"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19x7hd7vRiLm611VKvMc+EXF7upgu4nw/g="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:rDB/tCa6I9PJpxgZYDyTv6jCg30=
In-Reply-To: <ugsb77$jteg$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Thu, 19 Oct 2023 23:13 UTC

On 10/19/2023 6:39 PM, Craig A. Berry wrote:
> On 10/19/23 5:24 PM, Single Stage to Orbit wrote:
>> On Thu, 2023-10-19 at 16:16 -0400, Arne Vajhøj wrote:
>>> Looks like they changed the class name from:
>>>     org.codehaus.groovy.tools.shell.Main
>>> to:
>>>     org.codehaus.groovy.tools.shell.Main
>>> in recent Groovy versions.
>
> He just had a typo --

Copy paste error.

> from the rest of his message it looks like the
> second one should be:
>
> org.apache.groovy.groovysh.Main

Yes.

Arne

Re: JVM languages on VMS x86-64

<7f857543-a37c-4796-af4e-49e72734605bn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30634&group=comp.os.vms#30634

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ad4:4d48:0:b0:66d:3ee:8e4e with SMTP id m8-20020ad44d48000000b0066d03ee8e4emr10348qvm.7.1697763343973;
Thu, 19 Oct 2023 17:55:43 -0700 (PDT)
X-Received: by 2002:a4a:6c12:0:b0:581:d9c6:79be with SMTP id
q18-20020a4a6c12000000b00581d9c679bemr213710ooc.1.1697763343771; Thu, 19 Oct
2023 17:55:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 19 Oct 2023 17:55:43 -0700 (PDT)
In-Reply-To: <ugs259$hk15$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:46b0:abc0:452e:161b:329f:5644;
posting-account=OGFVHQoAAAASiNAamRQec8BtkuXxYFnQ
NNTP-Posting-Host: 2600:1700:46b0:abc0:452e:161b:329f:5644
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com> <43bf01f2-b0b5-4232-ba80-b96ce92a5eddn@googlegroups.com>
<ugs259$hk15$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7f857543-a37c-4796-af4e-49e72734605bn@googlegroups.com>
Subject: Re: JVM languages on VMS x86-64
From: jake.ha...@gmail.com (Jake Hamby (Solid State Jake))
Injection-Date: Fri, 20 Oct 2023 00:55:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 60
 by: Jake Hamby (Solid St - Fri, 20 Oct 2023 00:55 UTC

On Thursday, October 19, 2023 at 1:05:36 PM UTC-7, Arne Vajhøj wrote:
> On 10/19/2023 5:08 AM, issinoho wrote:
> > Also, Scala seems to need more resources than Groovy, as with...
> > WSextent: 65536
> > Pgflquo: 750000
> > -Xmx256m
> >
> > (which Groovy is happy with) I'm getting...
> >
> > $ scala test.scala
> > #
> > # There is insufficient memory for the Java Runtime Environment to continue.
> > # Native memory allocation (malloc) failed to allocate 39321600 bytes for PSOldG
> > en::expand_to_reserved
> > # An error report file with more information is saved as:
> > # /sys$scratch//hs_err_pid30232.log
> Then just double.
>
> -Xmx512m
> PGFQUO 1500000
>
> And try again.
>
> -Xmx256m worked for my hello world style scala program, but my PGFLQUO
> is a lot higher.
>
> Arne

For the record, the default JVM heap size in the current OpenJDK 8 x86-64 port is 3.50 GB, at least for a VM with 16 GB RAM:

$ java -XshowSettings:vm
VM settings:
Max. Heap Size (Estimated): 3.50G
Ergonomics Machine Class: server
Using VM: OpenJDK 64-Bit Server VM
$ java -version
openjdk version "1.8.0_372"
OpenJDK Runtime Environment (build 1.8.0_372-b07)
OpenJDK 64-Bit Server VM (build 25.372-b07, mixed mode)

After running all of the Renaissance JVM benchmarks, which stressed the JVM to its limit, "show proc/acc" showed usage of:

Peak working set size: 6634496 pagelets = 3240 MiB
Peak virtual size: 10359200 pagelets = 5058 MiB

So my previous post about pgflquo needing to be nearly twice as high as the heap size was demonstrated by the accounting data, and the peak working set size was indeed just under the max Java heap size.

I wonder if VSI should consider increasing the AUTOGEN-generated WSMAX to something more appropriate for the amount of RAM in the VM, and for use cases such as the JVM that expect to have large working sets and peak virtual sizes by default.

Regards,
Jake Hamby

Re: JVM languages on VMS x86-64

<ugsjse$lu4g$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30635&group=comp.os.vms#30635

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: JVM languages on VMS x86-64
Date: Thu, 19 Oct 2023 21:07:26 -0400
Organization: A noiseless patient Spider
Lines: 124
Message-ID: <ugsjse$lu4g$1@dont-email.me>
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
<ugs2q9$hsag$1@dont-email.me> <ugs3sd$i2or$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 20 Oct 2023 01:07:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84136aa36b1a841dfd54496eb540feda";
logging-data="718992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19k6gfLFHZw6zEcrEjG8ZtjM+Fi4iaqY0w="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ilQgUIKnK967EjNSS2QB8KaiED8=
Content-Language: en-US
In-Reply-To: <ugs3sd$i2or$1@dont-email.me>
 by: Arne Vajhøj - Fri, 20 Oct 2023 01:07 UTC

On 10/19/2023 4:34 PM, Arne Vajhøj wrote:
> On 10/19/2023 4:16 PM, Arne Vajhøj wrote:
>> On 10/19/2023 4:44 AM, issinoho wrote:
>>> Thanks, working now as per your tests for GROOVY and GROOVYC
>>>
>>> Not having much luck with Groovy Shell though, does this work for you?
>>>
>>> $ groovysh --help
>>> java.lang.ClassNotFoundException: org.codehaus.groovy.tools.shell.Main
>>>          at
>>> org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:180)
>>>          at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>>>          at
>>> org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:148)
>>>          at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>>          at
>>> org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java
>>> :109)
>>>          at
>>> org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:37)
>>
>> Ooops. I did not test groovysh.
>>
>> Looks like they changed the class name from:
>>    org.codehaus.groovy.tools.shell.Main
>> to:
>>    org.codehaus.groovy.tools.shell.Main
>> in recent Groovy versions.
>>
>> But just changing:
>>
>> $ if p1 .eqs. "SHELL" then clz = "org.codehaus.groovy.tools.shell.Main"
>>
>> to:
>>
>> $ if p1 .eqs. "SHELL" then clz = "org.apache.groovy.groovysh.Main"
>>
>>
>> Does not make it work.
>>
>> The new shell use jline and jline got this idea that spawning
>> sh to change terminal attributes is a portable approach.
>>
>> Jython had the same problem, but there were a workaround.
>>
>> I will have to look more into this.
>
> Could you try with:
>
> $ p1 = f$edit(p1, "UPCASE")
> $ clz = ""
> $ if p1 .eqs. "RUN" then clz = "groovy.ui.GroovyMain"
> $ if p1 .eqs. "COMPILE" then clz =
> "org.codehaus.groovy.tools.FileSystemCompiler"
> $ if p1 .eqs. "CONSOLE" then clz = groovy.ui.Console"
> $ if p1 .eqs. "SHELL" then clz = "org.apache.groovy.groovysh.Main"
> $ parent = "/disk2/arne/groovy"
> $ ver = "4.0.12"
> $ groovyhome = "''parent'/groovy-''ver'"
> $ xmx = "''groovy_xmx'"
> $ if xmx .eqs. "" then xmx = "256m"
> $ cp = "''groovy_cp'"
> $ if cp .eqs. "" then cp = "."
> $ define/nolog sys$input sys$command
> $ java -
> "-Xmx''xmx'" -
> "-Dprogram.name"="" -
> "-Dgroovy.home"="''groovyhome'" -
> "-Dtools.jar"="/sys$sysdevice/sys0/syscommon/java$80/lib/tools.jar" -
> "-Dgroovy.starter.conf"="''groovyhome'/conf/groovy-starter.conf" -
> "-Dscript.name"="''p2'" -
> -classpath "''groovyhome'/lib/groovy-''ver'.jar" -
> "org.codehaus.groovy.tools.GroovyStarter" -
> --main "''clz'" -
> --conf "''groovyhome'/conf/groovy-starter.conf" -
> --classpath "''cp'"  -
> "--terminal=none" -
> 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
> $ if p1 .eqs. "COMPILE" then write sys$output "Run with java -cp
> .:''groovyhome'/lib/* <main-class>"
> $ exit

That broke the groovy command.

Once more:

$ p1 = f$edit(p1, "UPCASE")
$ clz = ""
$ if p1 .eqs. "RUN" then clz = "groovy.ui.GroovyMain"
$ if p1 .eqs. "COMPILE" then clz =
"org.codehaus.groovy.tools.FileSystemCompiler"
$ if p1 .eqs. "CONSOLE" then clz = groovy.ui.Console"
$ if p1 .eqs. "SHELL" then clz = "org.apache.groovy.groovysh.Main"
$ parent = "/disk2/arne/groovy"
$ ver = "4.0.12"
$ groovyhome = "''parent'/groovy-''ver'"
$ xmx = "''groovy_xmx'"
$ if xmx .eqs. "" then xmx = "256m"
$ cp = "''groovy_cp'"
$ if cp .eqs. "" then cp = "."
$ xtra = ""
$ if p1 .eqs. "SHELL" then xtra = "--terminal=none"
$ define/nolog sys$input sys$command
$ java -
"-Xmx''xmx'" -
"-Dprogram.name"="" -
"-Dgroovy.home"="''groovyhome'" -
"-Dtools.jar"="/sys$sysdevice/sys0/syscommon/java$80/lib/tools.jar" -
"-Dgroovy.starter.conf"="''groovyhome'/conf/groovy-starter.conf" -
"-Dscript.name"="''p2'" -
-classpath "''groovyhome'/lib/groovy-''ver'.jar" -
"org.codehaus.groovy.tools.GroovyStarter" -
--main "''clz'" -
--conf "''groovyhome'/conf/groovy-starter.conf" -
--classpath "''cp'" -
'xtra' -
'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
$ if p1 .eqs. "COMPILE" then write sys$output "Run with java -cp
..:''groovyhome'/lib/* <main-class>"
$ exit

Arne

Re: JVM languages on VMS x86-64

<80884640-d0ae-4b59-b98b-386c11b5aee0n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30643&group=comp.os.vms#30643

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:11a3:b0:66d:13ac:275e with SMTP id u3-20020a05621411a300b0066d13ac275emr26591qvv.13.1697796882049;
Fri, 20 Oct 2023 03:14:42 -0700 (PDT)
X-Received: by 2002:a05:6214:967:b0:66d:291e:352b with SMTP id
do7-20020a056214096700b0066d291e352bmr95495qvb.1.1697796881826; Fri, 20 Oct
2023 03:14:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Fri, 20 Oct 2023 03:14:41 -0700 (PDT)
In-Reply-To: <ugsjse$lu4g$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=90.214.64.79; posting-account=Jc8lggoAAADpqbPc4tHcztc81YNnWd1x
NNTP-Posting-Host: 90.214.64.79
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com> <ugs2q9$hsag$1@dont-email.me>
<ugs3sd$i2or$1@dont-email.me> <ugsjse$lu4g$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <80884640-d0ae-4b59-b98b-386c11b5aee0n@googlegroups.com>
Subject: Re: JVM languages on VMS x86-64
From: iai...@issinoho.com (issinoho)
Injection-Date: Fri, 20 Oct 2023 10:14:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6223
 by: issinoho - Fri, 20 Oct 2023 10:14 UTC

On Friday, 20 October 2023 at 02:07:30 UTC+1, Arne Vajhøj wrote:
> On 10/19/2023 4:34 PM, Arne Vajhøj wrote:
> > On 10/19/2023 4:16 PM, Arne Vajhøj wrote:
> >> On 10/19/2023 4:44 AM, issinoho wrote:
> >>> Thanks, working now as per your tests for GROOVY and GROOVYC
> >>>
> >>> Not having much luck with Groovy Shell though, does this work for you?
> >>>
> >>> $ groovysh --help
> >>> java.lang.ClassNotFoundException: org.codehaus.groovy.tools.shell.Main
> >>> at
> >>> org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:180)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> >>> at
> >>> org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:148)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> >>> at
> >>> org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java
> >>> :109)
> >>> at
> >>> org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:37)
> >>
> >> Ooops. I did not test groovysh.
> >>
> >> Looks like they changed the class name from:
> >> org.codehaus.groovy.tools.shell.Main
> >> to:
> >> org.codehaus.groovy.tools.shell.Main
> >> in recent Groovy versions.
> >>
> >> But just changing:
> >>
> >> $ if p1 .eqs. "SHELL" then clz = "org.codehaus.groovy.tools.shell.Main"
> >>
> >> to:
> >>
> >> $ if p1 .eqs. "SHELL" then clz = "org.apache.groovy.groovysh.Main"
> >>
> >>
> >> Does not make it work.
> >>
> >> The new shell use jline and jline got this idea that spawning
> >> sh to change terminal attributes is a portable approach.
> >>
> >> Jython had the same problem, but there were a workaround.
> >>
> >> I will have to look more into this.
> >
> > Could you try with:
> >
> > $ p1 = f$edit(p1, "UPCASE")
> > $ clz = ""
> > $ if p1 .eqs. "RUN" then clz = "groovy.ui.GroovyMain"
> > $ if p1 .eqs. "COMPILE" then clz =
> > "org.codehaus.groovy.tools.FileSystemCompiler"
> > $ if p1 .eqs. "CONSOLE" then clz = groovy.ui.Console"
> > $ if p1 .eqs. "SHELL" then clz = "org.apache.groovy.groovysh.Main"
> > $ parent = "/disk2/arne/groovy"
> > $ ver = "4.0.12"
> > $ groovyhome = "''parent'/groovy-''ver'"
> > $ xmx = "''groovy_xmx'"
> > $ if xmx .eqs. "" then xmx = "256m"
> > $ cp = "''groovy_cp'"
> > $ if cp .eqs. "" then cp = "."
> > $ define/nolog sys$input sys$command
> > $ java -
> > "-Xmx''xmx'" -
> > "-Dprogram.name"="" -
> > "-Dgroovy.home"="''groovyhome'" -
> > "-Dtools.jar"="/sys$sysdevice/sys0/syscommon/java$80/lib/tools.jar" -
> > "-Dgroovy.starter.conf"="''groovyhome'/conf/groovy-starter.conf" -
> > "-Dscript.name"="''p2'" -
> > -classpath "''groovyhome'/lib/groovy-''ver'.jar" -
> > "org.codehaus.groovy.tools.GroovyStarter" -
> > --main "''clz'" -
> > --conf "''groovyhome'/conf/groovy-starter.conf" -
> > --classpath "''cp'" -
> > "--terminal=none" -
> > 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
> > $ if p1 .eqs. "COMPILE" then write sys$output "Run with java -cp
> > .:''groovyhome'/lib/* <main-class>"
> > $ exit
> That broke the groovy command.
>
> Once more:
> $ p1 = f$edit(p1, "UPCASE")
> $ clz = ""
> $ if p1 .eqs. "RUN" then clz = "groovy.ui.GroovyMain"
> $ if p1 .eqs. "COMPILE" then clz =
> "org.codehaus.groovy.tools.FileSystemCompiler"
> $ if p1 .eqs. "CONSOLE" then clz = groovy.ui.Console"
> $ if p1 .eqs. "SHELL" then clz = "org.apache.groovy.groovysh.Main"
> $ parent = "/disk2/arne/groovy"
> $ ver = "4.0.12"
> $ groovyhome = "''parent'/groovy-''ver'"
> $ xmx = "''groovy_xmx'"
> $ if xmx .eqs. "" then xmx = "256m"
> $ cp = "''groovy_cp'"
> $ if cp .eqs. "" then cp = "."
> $ xtra = ""
> $ if p1 .eqs. "SHELL" then xtra = "--terminal=none"
> $ define/nolog sys$input sys$command
> $ java -
> "-Xmx''xmx'" -
> "-Dprogram.name"="" -
> "-Dgroovy.home"="''groovyhome'" -
> "-Dtools.jar"="/sys$sysdevice/sys0/syscommon/java$80/lib/tools.jar" -
> "-Dgroovy.starter.conf"="''groovyhome'/conf/groovy-starter.conf" -
> "-Dscript.name"="''p2'" -
> -classpath "''groovyhome'/lib/groovy-''ver'.jar" -
> "org.codehaus.groovy.tools.GroovyStarter" -
> --main "''clz'" -
> --conf "''groovyhome'/conf/groovy-starter.conf" -
> --classpath "''cp'" -
> 'xtra' -
> 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
> $ if p1 .eqs. "COMPILE" then write sys$output "Run with java -cp
> .:''groovyhome'/lib/* <main-class>"
> $ exit
>
> Arne

Thanks, everyone. Both Groovy and Scala now working nicely.

Re: JVM languages on VMS x86-64

<uh3n1g$2ic80$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30717&group=comp.os.vms#30717

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: JVM languages on VMS x86-64
Date: Sun, 22 Oct 2023 13:44:16 -0400
Organization: A noiseless patient Spider
Lines: 142
Message-ID: <uh3n1g$2ic80$1@dont-email.me>
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
<43bf01f2-b0b5-4232-ba80-b96ce92a5eddn@googlegroups.com>
<ugs259$hk15$1@dont-email.me>
<7f857543-a37c-4796-af4e-49e72734605bn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 22 Oct 2023 17:44:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="49848ed4edef16d0e431c6721b7e3439";
logging-data="2699520"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HvJgbrI6Xty0b+76EpDMiBmy0o/jlX6E="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:4ltdtS5jghQqjKk646trpjwhvwg=
Content-Language: en-US
In-Reply-To: <7f857543-a37c-4796-af4e-49e72734605bn@googlegroups.com>
 by: Arne Vajhøj - Sun, 22 Oct 2023 17:44 UTC

On 10/19/2023 8:55 PM, Jake Hamby (Solid State Jake) wrote:
> For the record, the default JVM heap size in the current OpenJDK 8 x86-64 port is 3.50 GB, at least for a VM with 16 GB RAM:

I believe the default should be 25% of RAM. Which matches your numbers
reasonable (it could deduct some RAM for some reason).

> $ java -XshowSettings:vm
> VM settings:
> Max. Heap Size (Estimated): 3.50G
> Ergonomics Machine Class: server
> Using VM: OpenJDK 64-Bit Server VM
> $ java -version
> openjdk version "1.8.0_372"
> OpenJDK Runtime Environment (build 1.8.0_372-b07)
> OpenJDK 64-Bit Server VM (build 25.372-b07, mixed mode)
>
> After running all of the Renaissance JVM benchmarks, which stressed the JVM to its limit, "show proc/acc" showed usage of:
>
> Peak working set size: 6634496 pagelets = 3240 MiB
> Peak virtual size: 10359200 pagelets = 5058 MiB
>
> So my previous post about pgflquo needing to be nearly twice as high
> as the heap size was demonstrated by the accounting data, and the
> peak working set size was indeed just under the max Java heap size.
It surprises me, but it looks that way.

My test:

$ javac -cp /vmsjavacallpath/vmscall.jar:/vmsjavacallpath/record.jar
MemAna.java
$ java "-Xms64m" "-Xmx768m" -cp
..:/vmsjavacallpath/vmscall.jar:/vmsjavacallpath/record.jar "MemAna"
Start : heap = 5476, wssize = 150592, pgcnt =
95168, usedpgfl = 242752
New 100000 pages : heap = 102760, wssize = 207712, pgcnt =
198256, usedpgfl = 393680
New 100000 pages : heap = 203644, wssize = 379072, pgcnt =
300288, usedpgfl = 615632
New 100000 pages : heap = 304870, wssize = 493312, pgcnt =
487280, usedpgfl = 866448
New 100000 pages : heap = 406151, wssize = 607552, pgcnt =
550800, usedpgfl = 1117248
New 100000 pages : heap = 507445, wssize = 778912, pgcnt =
551232, usedpgfl = 1368048
Back : heap = 7445, wssize = 778912, pgcnt =
551232, usedpgfl = 1368048
New 100000 pages : heap = 107060, wssize = 778912, pgcnt =
551088, usedpgfl = 1293008
New 100000 pages : heap = 206702, wssize = 778912, pgcnt =
550960, usedpgfl = 1223680
New 100000 pages : heap = 306702, wssize = 778912, pgcnt =
584352, usedpgfl = 1223680
New 100000 pages : heap = 406702, wssize = 836032, pgcnt =
646464, usedpgfl = 1223680
New 100000 pages : heap = 507446, wssize = 893152, pgcnt =
646976, usedpgfl = 1368048
Back : heap = 7445, wssize = 893152, pgcnt =
647216, usedpgfl = 1368048
New 100000 pages : heap = 107060, wssize = 893152, pgcnt =
647488, usedpgfl = 1293008
New 100000 pages : heap = 206703, wssize = 893152, pgcnt =
647360, usedpgfl = 1223680
New 100000 pages : heap = 306703, wssize = 893152, pgcnt =
647360, usedpgfl = 1223680
New 100000 pages : heap = 406714, wssize = 893152, pgcnt =
648800, usedpgfl = 1223680
New 100000 pages : heap = 507458, wssize = 893152, pgcnt =
649136, usedpgfl = 1368064
Back : heap = 7457, wssize = 893152, pgcnt =
649152, usedpgfl = 1368064

MemAna.java:

import java.io.UnsupportedEncodingException;
import java.util.Map;

import dk.vajhoej.record.RecordException;

import static dk.vajhoej.vms.call.lib.VMSCodes.*;
import static dk.vajhoej.vms.call.lib.VMSStatus.*;
import static dk.vajhoej.vms.call.lib.SYS.*;

public class MemAna {
private static void printStatus(String lbl) throws
UnsupportedEncodingException, RecordException {
System.gc();
Result<Map<Integer,Object>> res = SYS$GETJPIW(0, new int[] {
JPI$_WSSIZE,
JPI$_PPGCNT, JPI$_GPGCNT,
JPI$_PAGFILCNT, JPI$_PGFLQUOTA });
if(res.getStatus() == SS$_NORMAL) {
System.out.printf("%-20s: heap = %8d, wssize = %8d, pgcnt =
%8d, usedpgfl = %8d\n",
lbl,
(Runtime.getRuntime().totalMemory() -
Runtime.getRuntime().freeMemory()) / 512,
res.getResult().get(JPI$_WSSIZE),
(int)(Integer)res.getResult().get(JPI$_PPGCNT) +
(int)(Integer)res.getResult().get(JPI$_GPGCNT),
(int)(Integer)res.getResult().get(JPI$_PGFLQUOTA) -
(int)(Integer)res.getResult().get(JPI$_PAGFILCNT)
);
} else {
System.out.printf("sys$getjpiw returned: %d\n",
res.getStatus());
}
}
public static void main(String[] args) throws Exception {
printStatus("Start");
for(int i = 0; i < 3; i++) {
byte[] b1 = new byte[100000 * 512];
printStatus("New 100000 pages");
byte[] b2 = new byte[100000 * 512];
printStatus("New 100000 pages");
byte[] b3 = new byte[100000 * 512];
printStatus("New 100000 pages");
byte[] b4 = new byte[100000 * 512];
printStatus("New 100000 pages");
byte[] b5 = new byte[100000 * 512];
printStatus("New 100000 pages");
if(b1[0] != 0 || b2[0] != 0 || b3[0] != 0 || b4[0] != 0 ||
b5[0] != 0) throw new RuntimeException("Ooops");
b1 = null;
b2 = null;
b3 = null;
b4 = null;
b5 = null;
printStatus("Back");
}
}
}

(don't think so much about the dk.vajhoej.vms.call.lib stuff -
it does what you think it does)

Arne

Re: JVM languages on VMS x86-64

<uh3nhf$2ic80$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30718&group=comp.os.vms#30718

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: JVM languages on VMS x86-64
Date: Sun, 22 Oct 2023 13:52:46 -0400
Organization: A noiseless patient Spider
Lines: 123
Message-ID: <uh3nhf$2ic80$2@dont-email.me>
References: <ugp30j$3oqc0$1@dont-email.me> <ugpurp$3v14e$1@dont-email.me>
<4dada5e7-c5e3-4ae3-a646-284fea349fcen@googlegroups.com>
<43bf01f2-b0b5-4232-ba80-b96ce92a5eddn@googlegroups.com>
<ugs259$hk15$1@dont-email.me>
<7f857543-a37c-4796-af4e-49e72734605bn@googlegroups.com>
<uh3n1g$2ic80$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 22 Oct 2023 17:52:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="49848ed4edef16d0e431c6721b7e3439";
logging-data="2699520"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xlp0QbZP8fHOVxQFGAM5SvnXELqfedbo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:1QmTFpnetsQoyH4ovy4aP1a+3UQ=
In-Reply-To: <uh3n1g$2ic80$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Sun, 22 Oct 2023 17:52 UTC

On 10/22/2023 1:44 PM, Arne Vajhøj wrote:
> On 10/19/2023 8:55 PM, Jake Hamby (Solid State Jake) wrote:
>> For the record, the default JVM heap size in the current OpenJDK 8
>> x86-64 port is 3.50 GB, at least for a VM with 16 GB RAM:
>
> I believe the default should be 25% of RAM. Which matches your numbers
> reasonable (it could deduct some RAM for some reason).
>
>> $ java -XshowSettings:vm
>> VM settings:
>>      Max. Heap Size (Estimated): 3.50G
>>      Ergonomics Machine Class: server
>>      Using VM: OpenJDK 64-Bit Server VM
>> $ java -version
>> openjdk version "1.8.0_372"
>> OpenJDK Runtime Environment (build 1.8.0_372-b07)
>> OpenJDK 64-Bit Server VM (build 25.372-b07, mixed mode)
>>
>> After running all of the Renaissance JVM benchmarks, which stressed
>> the JVM to its limit, "show proc/acc" showed usage of:
>>
>> Peak working set size: 6634496 pagelets = 3240 MiB
>> Peak virtual size: 10359200 pagelets = 5058 MiB
>>
>> So my previous post about pgflquo needing to be nearly twice as high
>> as the heap size was demonstrated by the accounting data, and the
>> peak working set size was indeed just under the max Java heap size.
> It surprises me, but it looks that way.
>
> My test:
>
> $ javac -cp /vmsjavacallpath/vmscall.jar:/vmsjavacallpath/record.jar
> MemAna.java
> $ java "-Xms64m" "-Xmx768m" -cp
> .:/vmsjavacallpath/vmscall.jar:/vmsjavacallpath/record.jar "MemAna"
> Start               : heap =     5476, wssize =   150592, pgcnt = 95168,
> usedpgfl =   242752
> New 100000 pages    : heap =   102760, wssize =   207712, pgcnt =
> 198256, usedpgfl =   393680
> New 100000 pages    : heap =   203644, wssize =   379072, pgcnt =
> 300288, usedpgfl =   615632
> New 100000 pages    : heap =   304870, wssize =   493312, pgcnt =
> 487280, usedpgfl =   866448
> New 100000 pages    : heap =   406151, wssize =   607552, pgcnt =
> 550800, usedpgfl =  1117248
> New 100000 pages    : heap =   507445, wssize =   778912, pgcnt =
> 551232, usedpgfl =  1368048
> Back                : heap =     7445, wssize =   778912, pgcnt =
> 551232, usedpgfl =  1368048
> New 100000 pages    : heap =   107060, wssize =   778912, pgcnt =
> 551088, usedpgfl =  1293008
> New 100000 pages    : heap =   206702, wssize =   778912, pgcnt =
> 550960, usedpgfl =  1223680
> New 100000 pages    : heap =   306702, wssize =   778912, pgcnt =
> 584352, usedpgfl =  1223680
> New 100000 pages    : heap =   406702, wssize =   836032, pgcnt =
> 646464, usedpgfl =  1223680
> New 100000 pages    : heap =   507446, wssize =   893152, pgcnt =
> 646976, usedpgfl =  1368048
> Back                : heap =     7445, wssize =   893152, pgcnt =
> 647216, usedpgfl =  1368048
> New 100000 pages    : heap =   107060, wssize =   893152, pgcnt =
> 647488, usedpgfl =  1293008
> New 100000 pages    : heap =   206703, wssize =   893152, pgcnt =
> 647360, usedpgfl =  1223680
> New 100000 pages    : heap =   306703, wssize =   893152, pgcnt =
> 647360, usedpgfl =  1223680
> New 100000 pages    : heap =   406714, wssize =   893152, pgcnt =
> 648800, usedpgfl =  1223680
> New 100000 pages    : heap =   507458, wssize =   893152, pgcnt =
> 649136, usedpgfl =  1368064
> Back                : heap =     7457, wssize =   893152, pgcnt =
> 649152, usedpgfl =  1368064

But I can squeeze memory usage down by reducing Xmx, which
force the JVM to GC more agressively:

$ java "-Xms64m" "-Xmx320m" -cp
..:/vmsjavacallpath/vmscall.jar:/vmsjavacallpath/record.jar "MemAna"
Start : heap = 5476, wssize = 150592, pgcnt =
85376, usedpgfl = 243184
New 100000 pages : heap = 104262, wssize = 207712, pgcnt =
178976, usedpgfl = 394112
New 100000 pages : heap = 203642, wssize = 321952, pgcnt =
280496, usedpgfl = 616064
New 100000 pages : heap = 304365, wssize = 493312, pgcnt =
373744, usedpgfl = 769408
New 100000 pages : heap = 404358, wssize = 607552, pgcnt =
477552, usedpgfl = 769408
New 100000 pages : heap = 504354, wssize = 664672, pgcnt =
480928, usedpgfl = 769408
Back : heap = 3168, wssize = 664672, pgcnt =
481088, usedpgfl = 769408
New 100000 pages : heap = 103536, wssize = 664672, pgcnt =
544256, usedpgfl = 754480
New 100000 pages : heap = 203803, wssize = 721792, pgcnt =
544272, usedpgfl = 754480
New 100000 pages : heap = 304041, wssize = 778912, pgcnt =
544288, usedpgfl = 769408
New 100000 pages : heap = 404152, wssize = 778912, pgcnt =
544304, usedpgfl = 769408
New 100000 pages : heap = 504222, wssize = 778912, pgcnt =
544304, usedpgfl = 769408
Back : heap = 3082, wssize = 778912, pgcnt =
544320, usedpgfl = 769408
New 100000 pages : heap = 103463, wssize = 778912, pgcnt =
544736, usedpgfl = 754480
New 100000 pages : heap = 203757, wssize = 778912, pgcnt =
544736, usedpgfl = 754480
New 100000 pages : heap = 304011, wssize = 778912, pgcnt =
544752, usedpgfl = 769408
New 100000 pages : heap = 404144, wssize = 778912, pgcnt =
546176, usedpgfl = 769408
New 100000 pages : heap = 504222, wssize = 778912, pgcnt =
546208, usedpgfl = 769408
Back : heap = 3086, wssize = 778912, pgcnt =
546224, usedpgfl = 769408

So a generous Xmx reduces GC which increase page file quota
usage.

Arne

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor