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.

Standalone Java: Terminating the Java app and JVM

4 posts in EJB Client Last posting was on 2006-05-22 08:01:18.0Z
Tomm Posted on 2006-05-19 19:18:14.0Z
Sender: 6766.446e16ed.1804289383@sybase.com
From: TomM
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Standalone Java: Terminating the Java app and JVM
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <446e19f6.67b3.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 19 May 2006 12:18:14 -0700
X-Trace: forums-1-dub 1148066294 10.22.241.41 (19 May 2006 12:18:14 -0700)
X-Original-Trace: 19 May 2006 12:18:14 -0700, 10.22.241.41
Lines: 21
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:656
Article PK: 424772

I am running a PB9.02 app and calling a standalone Java app.
Once the Java processing is complete I was hoping the
additional memory and threads created by starting the JVM
and running the app would be freed up; however, the
resources continue to be tied up and eventually PB crashes
when I run Java app repeatedly.

There are calls to start the JVM i.e. javavm.createJavaVM,
but there does not seem to be a corresponding call to
shutdown the JVM. I have tried the following approaches
without success:
1) Call a method in the Java app which issues a
System.exit(0). This causes my PB app to freeze.
2) Destroy the various Java object references:
DESTROY proxyobject (created by CreateJavaInstance)
DESTROY connection (declared using the EJBConnection class)
DESTROY javam (created by createJavaVM)
No error occurs with this approach but no resources are
freed either.
Any suggestions on how to terminate the JVM once Java
processing is complete?


Gokhan Demir Posted on 2006-05-21 00:42:04.0Z
From: Gokhan Demir <gokhan.demir@igonline.biz>
User-Agent: Thunderbird 1.5.0.2 (Windows/20060308)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Standalone Java: Terminating the Java app and JVM
References: <446e19f6.67b3.1681692777@sybase.com>
In-Reply-To: <446e19f6.67b3.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 85.105.196.163
X-Original-NNTP-Posting-Host: 85.105.196.163
Message-ID: <446fb75c@forums-1-dub>
Date: 20 May 2006 17:42:04 -0700
X-Trace: forums-1-dub 1148172124 85.105.196.163 (20 May 2006 17:42:04 -0700)
X-Original-Trace: 20 May 2006 17:42:04 -0700, 85.105.196.163
Lines: 26
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:657
Article PK: 424774

I have no suggestions. Maybe you can try to test a profiler like
Yourkit. Sybase does not seem to get involved at supporting the feauture
that they promised. I am losing my confidence in Sybase.

TomM wrote:
> I am running a PB9.02 app and calling a standalone Java app.
> Once the Java processing is complete I was hoping the
> additional memory and threads created by starting the JVM
> and running the app would be freed up; however, the
> resources continue to be tied up and eventually PB crashes
> when I run Java app repeatedly.
>
> There are calls to start the JVM i.e. javavm.createJavaVM,
> but there does not seem to be a corresponding call to
> shutdown the JVM. I have tried the following approaches
> without success:
> 1) Call a method in the Java app which issues a
> System.exit(0). This causes my PB app to freeze.
> 2) Destroy the various Java object references:
> DESTROY proxyobject (created by CreateJavaInstance)
> DESTROY connection (declared using the EJBConnection class)
> DESTROY javam (created by createJavaVM)
> No error occurs with this approach but no resources are
> freed either.
> Any suggestions on how to terminate the JVM once Java
> processing is complete?


Bruce Armstrong [TeamSybase] Posted on 2006-05-21 04:06:12.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Standalone Java: Terminating the Java app and JVM
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <vlpv62t3g3g8257c1tmtooa81qik6h7dff@4ax.com>
References: <446e19f6.67b3.1681692777@sybase.com> <446fb75c@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 68-190-226-38.static.lsan.ca.charter.com
X-Original-Trace: 20 May 2006 21:04:49 -0700, 68-190-226-38.static.lsan.ca.charter.com
Lines: 42
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 20 May 2006 21:04:52 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 20 May 2006 21:06:12 -0700
X-Trace: forums-1-dub 1148184372 10.22.108.75 (20 May 2006 21:06:12 -0700)
X-Original-Trace: 20 May 2006 21:06:12 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:658
Article PK: 424776

Did you open a case with Technical Support? These forums are for
end-user to end-user discussions. If you want Sybase Tech Support to
get involved, you need to open a case with them.

On 20 May 2006 17:42:04 -0700, Gokhan Demir

<gokhan.demir@igonline.biz> wrote:

>I have no suggestions. Maybe you can try to test a profiler like
>Yourkit. Sybase does not seem to get involved at supporting the feauture
>that they promised. I am losing my confidence in Sybase.
>
>TomM wrote:
>> I am running a PB9.02 app and calling a standalone Java app.
>> Once the Java processing is complete I was hoping the
>> additional memory and threads created by starting the JVM
>> and running the app would be freed up; however, the
>> resources continue to be tied up and eventually PB crashes
>> when I run Java app repeatedly.
>>
>> There are calls to start the JVM i.e. javavm.createJavaVM,
>> but there does not seem to be a corresponding call to
>> shutdown the JVM. I have tried the following approaches
>> without success:
>> 1) Call a method in the Java app which issues a
>> System.exit(0). This causes my PB app to freeze.
>> 2) Destroy the various Java object references:
>> DESTROY proxyobject (created by CreateJavaInstance)
>> DESTROY connection (declared using the EJBConnection class)
>> DESTROY javam (created by createJavaVM)
>> No error occurs with this approach but no resources are
>> freed either.
>> Any suggestions on how to terminate the JVM once Java
>> processing is complete?

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

In Defense of Top Posting
http://alpage.ath.cx/toppost/toppost.htm

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org


Bede <bede_nosp Posted on 2006-05-22 08:01:18.0Z
From: Bede <bede_nosp@m_sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Standalone Java: Terminating the Java app and JVM
Message-ID: <MPG.1edb8de86a3c5b39897d1@forums.sybase.com>
References: <446e19f6.67b3.1681692777@sybase.com> <446fb75c@forums-1-dub> <vlpv62t3g3g8257c1tmtooa81qik6h7dff@4ax.com>
Organization: Sofico
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Date: 22 May 2006 01:01:18 -0700
X-Trace: forums-1-dub 1148284878 194.7.38.226 (22 May 2006 01:01:18 -0700)
X-Original-Trace: 22 May 2006 01:01:18 -0700, uu194-7-38-226.unknown.uunet.be
Lines: 57
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:659
Article PK: 424777

hardly to the point here.. Sybase is well-aware.
besides, this is not something where opening a case would help (it is
not considered a bug, but a feature request).

Sybase admitted that an unloadJVM should have been possible, but does
not seem to be willing to implement it. I had raised the issue in PB9,
yet i haven't seen any sign of that feature being present in the new
releases (PB 10.5, PB 11). Actually, there are virtually no
announcements of extensions/extra features for ejbclient.



In article <vlpv62t3g3g8257c1tmtooa81qik6h7dff@4ax.com>,
NOCANSPAM_bruce.armstrong@teamsybase.com says...

> Did you open a case with Technical Support? These forums are for
> end-user to end-user discussions. If you want Sybase Tech Support to
> get involved, you need to open a case with them.
>
> On 20 May 2006 17:42:04 -0700, Gokhan Demir
> <gokhan.demir@igonline.biz> wrote:
>
> >I have no suggestions. Maybe you can try to test a profiler like
> >Yourkit. Sybase does not seem to get involved at supporting the feauture
> >that they promised. I am losing my confidence in Sybase.
> >
> >TomM wrote:
> >> I am running a PB9.02 app and calling a standalone Java app.
> >> Once the Java processing is complete I was hoping the
> >> additional memory and threads created by starting the JVM
> >> and running the app would be freed up; however, the
> >> resources continue to be tied up and eventually PB crashes
> >> when I run Java app repeatedly.
> >>
> >> There are calls to start the JVM i.e. javavm.createJavaVM,
> >> but there does not seem to be a corresponding call to
> >> shutdown the JVM. I have tried the following approaches
> >> without success:
> >> 1) Call a method in the Java app which issues a
> >> System.exit(0). This causes my PB app to freeze.
> >> 2) Destroy the various Java object references:
> >> DESTROY proxyobject (created by CreateJavaInstance)
> >> DESTROY connection (declared using the EJBConnection class)
> >> DESTROY javam (created by createJavaVM)
> >> No error occurs with this approach but no resources are
> >> freed either.
> >> Any suggestions on how to terminate the JVM once Java
> >> processing is complete?
>
> Bruce Armstrong [TeamSybase]
> http://www.teamsybase.com
>
> In Defense of Top Posting
> http://alpage.ath.cx/toppost/toppost.htm
>
> Preach the gospel at all times. If necessary, use words. - Francis of Assisi
> http://www.needhim.org
>