Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

JVM Heap size CONFIGURATION

2 posts in EJB Client Last posting was on 2007-04-19 23:54:47.0Z
rob.in.het.veld Posted on 2007-04-18 13:50:11.0Z
Sender: 66a3.46261e73.1804289383@sybase.com
From: rob.in.het.veld@j2r.nl
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: JVM Heap size CONFIGURATION
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <46262213.6742.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 18 Apr 2007 06:50:11 -0700
X-Trace: forums-1-dub 1176904211 10.22.241.41 (18 Apr 2007 06:50:11 -0700)
X-Original-Trace: 18 Apr 2007 06:50:11 -0700, 10.22.241.41
Lines: 9
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:739
Article PK: 424839

I'm new to Powerbuilder and Java.
I'm trying to set the heapsize before starting the JVM from
Powerbuilder. In a dos box this typically is done with the
-Xmx512 directive in the startup command of the JVM.
Can one set these kind of startup commands? And also use the
-D option to set systemspecific settings, e.g.
-Dmachinetype=debug

Greetz Rob


Gokhan Demir Posted on 2007-04-19 23:54:47.0Z
From: Gokhan Demir <gokhan.demir@igonline.biz>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: JVM Heap size CONFIGURATION
References: <46262213.6742.1681692777@sybase.com>
In-Reply-To: <46262213.6742.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-9; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 85.105.196.163
X-Original-NNTP-Posting-Host: 85.105.196.163
Message-ID: <46280147@forums-1-dub>
Date: 19 Apr 2007 16:54:47 -0700
X-Trace: forums-1-dub 1177026887 85.105.196.163 (19 Apr 2007 16:54:47 -0700)
X-Original-Trace: 19 Apr 2007 16:54:47 -0700, 85.105.196.163
Lines: 49
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:740
Article PK: 424840

Hi, you need to set some windows registry entries.

Under HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\Powerbuilder\9.0\Java, there
are two folders: PBIDEConfig and PBRTConfig. The first one is used when
you run your application from within the IDE, and the latter is used
when you run your compiled application. Those two folders can have
PBJVMconfig and PBJVMprops folders within them.

PBJVMconfig is for JVM configuration options such as -Xms. You have to
specify incremental key values starting from "0" by one, and one special
key "Count" to tell Powerbuilder how many options exists to enumerate.

PBJVMprops is for all -D options. You do not need to specify -D for
PBJVMProps, just the name of the property and its value, and as many
properties as you wish.

Let me give some examples:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java\PBIDEConfig\PBJVMprops]
"java.security.auth.login.config"="auth.conf"
"user.language"="en"

[HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java\PBRTConfig\PBJVMconfig]
"0"="-client"
"1"="-Xms128m"
"2"="-Xmx512m"
"Count"="3"

[HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java\PBRTConfig\PBJVMprops]
"java.security.auth.login.config"="auth.conf"
"user.language"="en"


Regards,
Gokhan Demir

rob.in.het.veld@j2r.nl wrote:
> I'm new to Powerbuilder and Java.
> I'm trying to set the heapsize before starting the JVM from
> Powerbuilder. In a dos box this typically is done with the
> -Xmx512 directive in the startup command of the JVM.
> Can one set these kind of startup commands? And also use the
> -D option to set systemspecific settings, e.g.
> -Dmachinetype=debug
>
> Greetz Rob