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.

Is there a way to control the Instance Pooling feature

9 posts in General Discussion (old) Last posting was on 2000-04-01 22:30:02.0Z
Michael Posted on 2000-03-31 15:27:57.0Z
Newsgroups: sybase.public.easerver
From: "Michael" <mlin@firstam.com>
Subject: Is there a way to control the Instance Pooling feature
Date: Fri, 31 Mar 2000 07:27:57 -0800
Lines: 14
X-Newsreader: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
NNTP-Posting-Host: pixout.firstam.com 209.211.240.254
Message-ID: <347_i1Ho#Zym$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25100
Article PK: 154199

Hi,

Is there a way to specify how long a Jaguar component can stay in the
instance pool before it gets destroyed? For example, let's say I have a
component with Instance Pool setting on. After a client used the component
and returned it to the instance pool, can I configure the instance pool to
destroy the instance after 5 minutes of inactivity?

Thanks in advance for any help.

Michael Lin
Leverage Consulting


Dave Wolf [Sybase] Posted on 2000-03-31 15:50:01.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Is there a way to control the Instance Pooling feature
Date: Fri, 31 Mar 2000 10:50:01 -0500
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: nomad6-28.sybase.com 157.133.176.28
Message-ID: <347_H#h$vlym$GA.290@forums.sybase.com>
References: <347_i1Ho#Zym$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25095
Article PK: 154194

No.

Dave Wolf
Internet Applications Division

"Michael" <mlin@firstam.com> wrote in message
news:i1Ho#Zym$GA.298@forums.sybase.com...
> Hi,
>
> Is there a way to specify how long a Jaguar component can stay in the
> instance pool before it gets destroyed? For example, let's say I have a
> component with Instance Pool setting on. After a client used the
component
> and returned it to the instance pool, can I configure the instance pool to
> destroy the instance after 5 minutes of inactivity?
>
> Thanks in advance for any help.
>
> Michael Lin
> Leverage Consulting
>
>


Tim Nesham Posted on 2000-03-31 16:44:25.0Z
Newsgroups: sybase.public.easerver
From: "Tim Nesham" <tim.nesham@born.com>
Subject: Re: Is there a way to control the Instance Pooling feature
Date: Fri, 31 Mar 2000 10:44:25 -0600
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
X-Original-NNTP-Posting-Host: 161.49.6.89
Organization: Quad/Graphics,Inc.
NNTP-Posting-Host: dns2.qgraph.com 206.158.124.2
Message-ID: <347_38e4d5ee@news.qgraph.com>
References: <347_i1Ho#Zym$GA.298@forums.sybase.com> <347_H#h$vlym$GA.290@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!news.qgraph.com!161.49.6.89
Xref: forums-1-dub sybase.public.easerver:25083
Article PK: 155335

Isn't that what the timeout property is for?

"Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
news:H#h$vlym$GA.290@forums.sybase.com...
> No.
>
> Dave Wolf
> Internet Applications Division
>
> "Michael" <mlin@firstam.com> wrote in message
> news:i1Ho#Zym$GA.298@forums.sybase.com...
> > Hi,
> >
> > Is there a way to specify how long a Jaguar component can stay in the
> > instance pool before it gets destroyed? For example, let's say I have a
> > component with Instance Pool setting on. After a client used the
> component
> > and returned it to the instance pool, can I configure the instance pool
to
> > destroy the instance after 5 minutes of inactivity?
> >
> > Thanks in advance for any help.
> >
> > Michael Lin
> > Leverage Consulting
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-03-31 16:58:50.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Is there a way to control the Instance Pooling feature
Date: Fri, 31 Mar 2000 11:58:50 -0500
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: nomad6-28.sybase.com 157.133.176.28
Message-ID: <347_YWmEMMzm$GA.290@forums.sybase.com>
References: <347_i1Ho#Zym$GA.298@forums.sybase.com> <347_H#h$vlym$GA.290@forums.sybase.com> <347_38e4d5ee@news.qgraph.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25079
Article PK: 228451

Nope. The timeout says after n seconds between method calls of a stateful
object we will deactivate it. The question asked of me was how to do
destroy an object which is already deactivated and sitting in the pool via a
timeout and there isnt.

Dave Wolf
Internet Applications Division

"Tim Nesham" <tim.nesham@born.com> wrote in message
news:38e4d5ee@news.qgraph.com...
> Isn't that what the timeout property is for?
>
> "Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
> news:H#h$vlym$GA.290@forums.sybase.com...
> > No.
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > "Michael" <mlin@firstam.com> wrote in message
> > news:i1Ho#Zym$GA.298@forums.sybase.com...
> > > Hi,
> > >
> > > Is there a way to specify how long a Jaguar component can stay in the
> > > instance pool before it gets destroyed? For example, let's say I have
a
> > > component with Instance Pool setting on. After a client used the
> > component
> > > and returned it to the instance pool, can I configure the instance
pool
> to
> > > destroy the instance after 5 minutes of inactivity?
> > >
> > > Thanks in advance for any help.
> > >
> > > Michael Lin
> > > Leverage Consulting
> > >
> > >
> >
> >
>
>


Tim Nesham Posted on 2000-03-31 18:40:52.0Z
Newsgroups: sybase.public.easerver
From: "Tim Nesham" <tim.nesham@born.com>
Subject: Re: Is there a way to control the Instance Pooling feature
Date: Fri, 31 Mar 2000 12:40:52 -0600
Lines: 56
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
X-Original-NNTP-Posting-Host: 161.49.6.89
Organization: Quad/Graphics,Inc.
NNTP-Posting-Host: dns2.qgraph.com 206.158.124.2
Message-ID: <347_38e4f139@news.qgraph.com>
References: <347_i1Ho#Zym$GA.298@forums.sybase.com> <347_H#h$vlym$GA.290@forums.sybase.com> <347_38e4d5ee@news.qgraph.com> <347_YWmEMMzm$GA.290@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!news.qgraph.com!161.49.6.89
Xref: forums-1-dub sybase.public.easerver:25061
Article PK: 154175

Well, with the HTMLDW and pooling on, I ran the RunTime viewer and saw 13
instances active. They deactivated 1 by 1 with all but 1 going into the
pool, why not 13 in the pool?

"Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
news:YWmEMMzm$GA.290@forums.sybase.com...
> Nope. The timeout says after n seconds between method calls of a stateful
> object we will deactivate it. The question asked of me was how to do
> destroy an object which is already deactivated and sitting in the pool via
a
> timeout and there isnt.
>
> Dave Wolf
> Internet Applications Division
>
> "Tim Nesham" <tim.nesham@born.com> wrote in message
> news:38e4d5ee@news.qgraph.com...
> > Isn't that what the timeout property is for?
> >
> > "Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
> > news:H#h$vlym$GA.290@forums.sybase.com...
> > > No.
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > "Michael" <mlin@firstam.com> wrote in message
> > > news:i1Ho#Zym$GA.298@forums.sybase.com...
> > > > Hi,
> > > >
> > > > Is there a way to specify how long a Jaguar component can stay in
the
> > > > instance pool before it gets destroyed? For example, let's say I
have
> a
> > > > component with Instance Pool setting on. After a client used the
> > > component
> > > > and returned it to the instance pool, can I configure the instance
> pool
> > to
> > > > destroy the instance after 5 minutes of inactivity?
> > > >
> > > > Thanks in advance for any help.
> > > >
> > > > Michael Lin
> > > > Leverage Consulting
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Carson Hager[Team Sybase] Posted on 2000-03-31 22:40:55.0Z
Newsgroups: sybase.public.easerver
From: chager@dyn-data.com (Carson Hager[Team Sybase])
Subject: Re: Is there a way to control the Instance Pooling feature
Date: Fri, 31 Mar 2000 22:40:55 GMT
Organization: Dynamic Data Solutions, Inc.
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 65
NNTP-Posting-Host: charon.lifescape.com 63.86.26.130
Message-ID: <347_38e52944.9647922@forums.sybase.com>
References: <347_i1Ho#Zym$GA.298@forums.sybase.com> <347_H#h$vlym$GA.290@forums.sybase.com> <347_38e4d5ee@news.qgraph.com> <347_YWmEMMzm$GA.290@forums.sybase.com> <347_38e4f139@news.qgraph.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25033
Article PK: 228444

That sounds like a bug in runtime monitoring.


Carson

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training
http://www.dyn-data.com

DDS is now hiring EAServer consultants
to support its exploding EAServer business!
Please submit your resume to
hr@dyn-data.com!


On Fri, 31 Mar 2000 12:40:52 -0600, "Tim Nesham" <tim.nesham@born.com>

wrote:

>Well, with the HTMLDW and pooling on, I ran the RunTime viewer and saw 13
>instances active. They deactivated 1 by 1 with all but 1 going into the
>pool, why not 13 in the pool?
>
>"Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
>news:YWmEMMzm$GA.290@forums.sybase.com...
>> Nope. The timeout says after n seconds between method calls of a stateful
>> object we will deactivate it. The question asked of me was how to do
>> destroy an object which is already deactivated and sitting in the pool via
>a
>> timeout and there isnt.
>>
>> Dave Wolf
>> Internet Applications Division
>>
>> "Tim Nesham" <tim.nesham@born.com> wrote in message
>> news:38e4d5ee@news.qgraph.com...
>> > Isn't that what the timeout property is for?
>> >
>> > "Dave Wolf [Sybase]" <dwolf@sybase.com> wrote in message
>> > news:H#h$vlym$GA.290@forums.sybase.com...
>> > > No.
>> > >
>> > > Dave Wolf
>> > > Internet Applications Division
>> > >
>> > > "Michael" <mlin@firstam.com> wrote in message
>> > > news:i1Ho#Zym$GA.298@forums.sybase.com...
>> > > > Hi,
>> > > >
>> > > > Is there a way to specify how long a Jaguar component can stay in
>the
>> > > > instance pool before it gets destroyed? For example, let's say I
>have
>> a
>> > > > component with Instance Pool setting on. After a client used the
>> > > component
>> > > > and returned it to the instance pool, can I configure the instance
>> pool
>> > to
>> > > > destroy the instance after 5 minutes of inactivity?
>> > > >
>> > > > Thanks in advance for any help.
>> > > >
>> > > > Michael Lin
>> > > > Leverage Consulting
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
>

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training

DDS Enterprise Application Framework
Available Now as Open Source!
http://www.dyn-data.com


Carson Hager[Team Sybase] Posted on 2000-03-31 22:53:28.0Z
Newsgroups: sybase.public.easerver
From: chager@dyn-data.com (Carson Hager[Team Sybase])
Subject: Re: Is there a way to control the Instance Pooling feature
Date: Fri, 31 Mar 2000 22:53:28 GMT
Organization: Dynamic Data Solutions, Inc.
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 64
NNTP-Posting-Host: charon.lifescape.com 63.86.26.130
Message-ID: <347_38e52979.9700338@forums.sybase.com>
References: <347_i1Ho#Zym$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25031
Article PK: 155324

There's no built-in feature but you can build this yourself. In Java,
we keep a static class variable that acts as a counter for the number
created. We set this number in the contructor and then test it in the
canReuse method. Depending upon limits we return different values for
canReuse. For PB, since shared variables do not work, we have to do a
little more work and call out to a shared component to keep/check the
count.

Another thing we have done is created methods on components that set
an instance variable to tell the canReuse ( canBePooled ) how to
behave and to pool the component or not. We then loop n number of
times getting a reference to the component and calling this method
effectively telling the component to tell Jaguar not to pool it. For
example...

1. Determine number in pool
2. Compare to acceptable number
3. Call destroy method n times where n is the discrepancy between the
number in the pool and the acceptable number.

This second means gives you a little flexibility in managing the
number in the pool so that during peak volume times, you can let the
number increase and then wipe out the ones you don't need during
regular use after the peak is over.


Carson

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training
http://www.dyn-data.com

DDS is now hiring EAServer consultants
to support its exploding EAServer business!
Please submit your resume to
hr@dyn-data.com!


On Fri, 31 Mar 2000 07:27:57 -0800, "Michael" <mlin@firstam.com>

wrote:

>Hi,
>
>Is there a way to specify how long a Jaguar component can stay in the
>instance pool before it gets destroyed? For example, let's say I have a
>component with Instance Pool setting on. After a client used the component
>and returned it to the instance pool, can I configure the instance pool to
>destroy the instance after 5 minutes of inactivity?
>
>Thanks in advance for any help.
>
>Michael Lin
>Leverage Consulting
>
>

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training

DDS Enterprise Application Framework
Available Now as Open Source!
http://www.dyn-data.com


Michael Posted on 2000-03-31 22:55:09.0Z
Newsgroups: sybase.public.easerver
From: "Michael" <mlin@firstam.com>
Subject: Re: Is there a way to control the Instance Pooling feature
Date: Fri, 31 Mar 2000 14:55:09 -0800
Lines: 62
X-Newsreader: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
NNTP-Posting-Host: pixout.firstam.com 209.211.240.254
Message-ID: <347_Bqo05T2m$GA.201@forums.sybase.com>
References: <347_i1Ho#Zym$GA.298@forums.sybase.com> <347_38e52979.9700338@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25022
Article PK: 154155

Carson,

Thanks for your reply. It's a good idea but I was actually thinking about a
"time-out" kind of thingie rather than a instance count limit.

This came about because of a HTMLDW problem that we've encountered that
forces us to restart Jaguar a couple times in ONE day! For detail, please
see the post from "Tim Nesham" titling "Why the HTMLDW stops working after
some time" on 3/28/2000 7:08AM. Please take a look at that thread and see
if you have any insights to what's going on. Thank you very much in advance
for your help.

Michael Lin
Leverage Consulting...

Carson Hager[Team Sybase] wrote in message
<38e52979.9700338@forums.sybase.com>...
>There's no built-in feature but you can build this yourself. In Java,
>we keep a static class variable that acts as a counter for the number
>created. We set this number in the contructor and then test it in the
>canReuse method. Depending upon limits we return different values for
>canReuse. For PB, since shared variables do not work, we have to do a
>little more work and call out to a shared component to keep/check the
>count.
>
>Another thing we have done is created methods on components that set
>an instance variable to tell the canReuse ( canBePooled ) how to
>behave and to pool the component or not. We then loop n number of
>times getting a reference to the component and calling this method
>effectively telling the component to tell Jaguar not to pool it. For
>example...
>
>1. Determine number in pool
>2. Compare to acceptable number
>3. Call destroy method n times where n is the discrepancy between the
>number in the pool and the acceptable number.
>
>This second means gives you a little flexibility in managing the
>number in the pool so that during peak volume times, you can let the
>number increase and then wipe out the ones you don't need during
>regular use after the peak is over.
>
>
>Carson
>
>___________________________________________________________
>
>Carson Hager
>Team Sybase
>Dynamic Data Solutions, Inc.
>Enterprise Application Studio 3.0 Consulting and Training
>http://www.dyn-data.com
>
> DDS is now hiring EAServer consultants
> to support its exploding EAServer business!
> Please submit your resume to
> hr@dyn-data.com!
>


Dave Wolf [Sybase] Posted on 2000-04-01 22:30:02.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Is there a way to control the Instance Pooling feature
Date: Sat, 1 Apr 2000 17:30:02 -0500
Lines: 82
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: nomad6-16.sybase.com 157.133.176.16
Message-ID: <347_iqgy#pCn$GA.52@forums.sybase.com>
References: <347_i1Ho#Zym$GA.298@forums.sybase.com> <347_38e52979.9700338@forums.sybase.com> <347_Bqo05T2m$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25005
Article PK: 154138

But see I think that is a different issue where the timeout would help you.
The HTMLDW is "semi-statful". What I mean is that the object is stateful
but only for the duration of a page generation. Sometimes the HTMLDW can
leak and not properly deactivate and enter the pool. By setting a timeout
you can prevent this, and force the instance to deactivate and enter the
pool.

Understand the question I was asked is very different. That question was
how do you timeout an instance in the pool and you cannot. However you can
timeout orphaned instances not in the pool.

Dave Wolf
Internet Applications Division

"Michael" <mlin@firstam.com> wrote in message
news:Bqo05T2m$GA.201@forums.sybase.com...
> Carson,
>
> Thanks for your reply. It's a good idea but I was actually thinking about
a
> "time-out" kind of thingie rather than a instance count limit.
>
> This came about because of a HTMLDW problem that we've encountered that
> forces us to restart Jaguar a couple times in ONE day! For detail, please
> see the post from "Tim Nesham" titling "Why the HTMLDW stops working after
> some time" on 3/28/2000 7:08AM. Please take a look at that thread and see
> if you have any insights to what's going on. Thank you very much in
advance
> for your help.
>
> Michael Lin
> Leverage Consulting...
>
>
> Carson Hager[Team Sybase] wrote in message
> <38e52979.9700338@forums.sybase.com>...
> >There's no built-in feature but you can build this yourself. In Java,
> >we keep a static class variable that acts as a counter for the number
> >created. We set this number in the contructor and then test it in the
> >canReuse method. Depending upon limits we return different values for
> >canReuse. For PB, since shared variables do not work, we have to do a
> >little more work and call out to a shared component to keep/check the
> >count.
> >
> >Another thing we have done is created methods on components that set
> >an instance variable to tell the canReuse ( canBePooled ) how to
> >behave and to pool the component or not. We then loop n number of
> >times getting a reference to the component and calling this method
> >effectively telling the component to tell Jaguar not to pool it. For
> >example...
> >
> >1. Determine number in pool
> >2. Compare to acceptable number
> >3. Call destroy method n times where n is the discrepancy between the
> >number in the pool and the acceptable number.
> >
> >This second means gives you a little flexibility in managing the
> >number in the pool so that during peak volume times, you can let the
> >number increase and then wipe out the ones you don't need during
> >regular use after the peak is over.
> >
> >
> >Carson
> >
> >___________________________________________________________
> >
> >Carson Hager
> >Team Sybase
> >Dynamic Data Solutions, Inc.
> >Enterprise Application Studio 3.0 Consulting and Training
> >http://www.dyn-data.com
> >
> > DDS is now hiring EAServer consultants
> > to support its exploding EAServer business!
> > Please submit your resume to
> > hr@dyn-data.com!
> >
>
>
>