You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paolo Scopa <pa...@yahoo.com> on 2007/08/09 13:23:44 UTC
[T4.1]Returning a list to a page
Hi all,
got a bit blocked here: i need to return a value to the invoking page.
Page A calls page B -
in Page B I select a list of item from a longer list
when I press OK on page B, the browser returns to page A where the list is
set according to the selection made.
I can set the returning page but cant find a way to set there the value to
return.
I tried different ways but cant find a solution.
Any help ?
Paolo
--
View this message in context: http://www.nabble.com/-T4.1-Returning-a-list-to-a-page-tf4242051.html#a12070675
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4.1]Returning a list to a page
Posted by Paolo Scopa <pa...@yahoo.com>.
Thanks Uli,
only problem is that i was planning to call page B from different pages, so
i dont know which one to inject.
Maybe will try the PropertyUtils.write, even if it seems to be a little
unsafe (does not assure that the property exists in page A when compile).
Paolo
Ulrich Stärk wrote:
>
> You'll have a property for the list in page A and an abstract setter for
> this property. So now in
> page B just inject page A using the @InjectPage annotation, call the
> setter for this list and return
> the page object in your listener method.
> Or use the PropertyUtils.write(pageObject, "propertyName", valueObject)
> method in the
> org.apache.hivemind.util package.
>
> Uli
>
> Paolo Scopa schrieb:
>> Hi all,
>> got a bit blocked here: i need to return a value to the invoking page.
>> Page A calls page B -
>> in Page B I select a list of item from a longer list
>> when I press OK on page B, the browser returns to page A where the list
>> is
>> set according to the selection made.
>> I can set the returning page but cant find a way to set there the value
>> to
>> return.
>>
>> I tried different ways but cant find a solution.
>> Any help ?
>>
>> Paolo
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/-T4.1-Returning-a-list-to-a-page-tf4242051.html#a12071279
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4.1]Returning a list to a page
Posted by Ulrich Stärk <ul...@spielviel.de>.
You'll have a property for the list in page A and an abstract setter for this property. So now in
page B just inject page A using the @InjectPage annotation, call the setter for this list and return
the page object in your listener method.
Or use the PropertyUtils.write(pageObject, "propertyName", valueObject) method in the
org.apache.hivemind.util package.
Uli
Paolo Scopa schrieb:
> Hi all,
> got a bit blocked here: i need to return a value to the invoking page.
> Page A calls page B -
> in Page B I select a list of item from a longer list
> when I press OK on page B, the browser returns to page A where the list is
> set according to the selection made.
> I can set the returning page but cant find a way to set there the value to
> return.
>
> I tried different ways but cant find a solution.
> Any help ?
>
> Paolo
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4.1]Returning a list to a page
Posted by Lutz Hühnken <lh...@googlemail.com>.
I'm not sure if I understand that correctly... I think the idea was
not return the page name as a string from a submit method, but to set
it..
in page A:
- inject page B
- set the name of page A as a property in page B
- activate (or redirect to) B
in page B:
- do not inject page A, but get it by name through cycle.getPage..
- set the list as a property in page A
- activate (or redirect to) A
To add to the confusion.. if you access that list from many pages,
wouldn't it be better to store it as an application state object
(ASO)?
Hth,
Lutz
On 8/9/07, Paolo Scopa <pa...@yahoo.com> wrote:
>
> And you are right, actually i cant make it working.
> It seems that IPage is not serializable, so i cant use the
> @Persist("client")
>
> The problem using a string is that, when i return the string from my onOk
> listener, the calling page A is activated, but after the "return" statement
> it is too late to set the property we are talking about.
> What am i missing?
> Paolo
> p.s.: thanks for your patience...
>
>
>
> Ulrich Stärk wrote:
> >
> > Where's the problem to do the same thing with the name of the calling
> > page? Store the name in a string property of page B before activating
> > it...
> >
> > Uli
> >
> > Paolo Scopa schrieb:
> >> No prob.
> >> As i said to uli, i might call B from different pages, not only A.
> >> Maybe i should use a common interface for those pages.
> >> Ill try and let you know
> >> Paolo
> >>
> >>
> >> Patrick Klein wrote:
> >>> Hello Paolo,
> >>>
> >>> mea culpa, you are correct abot that :)
> >>> replace IPage with the A's class (implementing IPage) and cast the
> >>> result of cycle.getPage(...) accordingly
> >>>
> >>> Regards,
> >>> Patrick
> >>>> Thanks Patrick,
> >>>> this helps, except that the IPage does not expose the setList method,
> >>>> so
> >>>> i
> >>>> don't think it would work the
> >>>> page.setList(composedList);
> >>>> maybe not even compile.
> >>>> Paolo
> >>>>
> >>>>
> >>>> Patrick Klein wrote:
> >>>>
> >>>>> Hello Paolo,
> >>>>>
> >>>>> page a should hold an (persist) abstract getter and setter for the
> >>>>> list,
> >>>>> page b hold a persist abstract getter and setter for the name of the
> >>>>> calling page which is set when page b is accessed and maybe reset if
> >>>>> needed in the button's listener.
> >>>>> When you are done with compiling your list on page be and the button
> >>>>> is
> >>>>> pressed, do something like the following in the button's listener:
> >>>>>
> >>>>> (page b)
> >>>>> public void buttonListener(IRequestCycle cycle) {
> >>>>> [...]
> >>>>> IPage page = cycle.getPage(getPageNameOfA());
> >>>>> page.setList(composedList);
> >>>>> [...]
> >>>>> cycle.activate(page);
> >>>>> }
> >>>>>
> >>>>> Regards,
> >>>>> Patrick
> >>>>>
> >>>>>> Hi all,
> >>>>>> got a bit blocked here: i need to return a value to the invoking
> >>>>>> page.
> >>>>>> Page A calls page B -
> >>>>>> in Page B I select a list of item from a longer list
> >>>>>> when I press OK on page B, the browser returns to page A where the
> >>>>>> list
> >>>>>> is
> >>>>>> set according to the selection made.
> >>>>>> I can set the returning page but cant find a way to set there the
> >>>>>> value
> >>>>>> to
> >>>>>> return.
> >>>>>>
> >>>>>> I tried different ways but cant find a solution.
> >>>>>> Any help ?
> >>>>>>
> >>>>>> Paolo
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>
> >>>
> >>>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/-T4.1-Returning-a-list-to-a-page-tf4242051.html#a12072218
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4.1]Returning a list to a page
Posted by Martino Piccinato <ma...@gmail.com>.
If I got right what's your case you could use the following pattern:
public interface CalledPageCallback extends ICallback {
public void setMyObject(MyClass myObject);
}
public class CallingPageCallback implements CalledPageCallback {
private MyClass _myObject;
public void setMyObject(MyClass myObject) {
this._myObject = myObject;
}
@Override
public void performCallback(IRequestCycle cycle) {
Defense.notNull(cycle, "cycle");
CallingPage page = cycle.getPage(CallingPage.class.simpleName());
page.setNeededObject(_myObject);
activatePage(cycle,page);
}
}
public class CalledPage extends BasePage {
@Persist("client")
public CalledPageCallback getCalledPageCallback()
public abstract void setCalledPageCallback(CalledPageCallback cb)
public abstract MyClass getSelectedObject();
public abstract void setSelectedObject(MyClass selectedObject);
....
....
public void onSubmit(IRequestCycle cycle) {
callback = this.getCalledPageCallBack();
callback.setMyObject(getSelectedObject());
callback.performCallBack(cycle);
}
}
Obviously when calling the CalledPage from the Calling page you'll
have to set the callback but at the same time you can have other
implementation of CalledPageCallback used from other different calling
pages.
We have used this pattern with success on our application, hope it can
be of some help.
On 8/9/07, Paolo Scopa <pa...@yahoo.com> wrote:
>
> And you are right, actually i cant make it working.
> It seems that IPage is not serializable, so i cant use the
> @Persist("client")
>
> The problem using a string is that, when i return the string from my onOk
> listener, the calling page A is activated, but after the "return" statement
> it is too late to set the property we are talking about.
> What am i missing?
> Paolo
> p.s.: thanks for your patience...
>
>
>
> Ulrich Stärk wrote:
> >
> > Where's the problem to do the same thing with the name of the calling
> > page? Store the name in a string property of page B before activating
> > it...
> >
> > Uli
> >
> > Paolo Scopa schrieb:
> >> No prob.
> >> As i said to uli, i might call B from different pages, not only A.
> >> Maybe i should use a common interface for those pages.
> >> Ill try and let you know
> >> Paolo
> >>
> >>
> >> Patrick Klein wrote:
> >>> Hello Paolo,
> >>>
> >>> mea culpa, you are correct abot that :)
> >>> replace IPage with the A's class (implementing IPage) and cast the
> >>> result of cycle.getPage(...) accordingly
> >>>
> >>> Regards,
> >>> Patrick
> >>>> Thanks Patrick,
> >>>> this helps, except that the IPage does not expose the setList method,
> >>>> so
> >>>> i
> >>>> don't think it would work the
> >>>> page.setList(composedList);
> >>>> maybe not even compile.
> >>>> Paolo
> >>>>
> >>>>
> >>>> Patrick Klein wrote:
> >>>>
> >>>>> Hello Paolo,
> >>>>>
> >>>>> page a should hold an (persist) abstract getter and setter for the
> >>>>> list,
> >>>>> page b hold a persist abstract getter and setter for the name of the
> >>>>> calling page which is set when page b is accessed and maybe reset if
> >>>>> needed in the button's listener.
> >>>>> When you are done with compiling your list on page be and the button
> >>>>> is
> >>>>> pressed, do something like the following in the button's listener:
> >>>>>
> >>>>> (page b)
> >>>>> public void buttonListener(IRequestCycle cycle) {
> >>>>> [...]
> >>>>> IPage page = cycle.getPage(getPageNameOfA());
> >>>>> page.setList(composedList);
> >>>>> [...]
> >>>>> cycle.activate(page);
> >>>>> }
> >>>>>
> >>>>> Regards,
> >>>>> Patrick
> >>>>>
> >>>>>> Hi all,
> >>>>>> got a bit blocked here: i need to return a value to the invoking
> >>>>>> page.
> >>>>>> Page A calls page B -
> >>>>>> in Page B I select a list of item from a longer list
> >>>>>> when I press OK on page B, the browser returns to page A where the
> >>>>>> list
> >>>>>> is
> >>>>>> set according to the selection made.
> >>>>>> I can set the returning page but cant find a way to set there the
> >>>>>> value
> >>>>>> to
> >>>>>> return.
> >>>>>>
> >>>>>> I tried different ways but cant find a solution.
> >>>>>> Any help ?
> >>>>>>
> >>>>>> Paolo
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>
> >>>
> >>>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/-T4.1-Returning-a-list-to-a-page-tf4242051.html#a12072218
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4.1]Returning a list to a page
Posted by Paolo Scopa <pa...@yahoo.com>.
And you are right, actually i cant make it working.
It seems that IPage is not serializable, so i cant use the
@Persist("client")
The problem using a string is that, when i return the string from my onOk
listener, the calling page A is activated, but after the "return" statement
it is too late to set the property we are talking about.
What am i missing?
Paolo
p.s.: thanks for your patience...
Ulrich Stärk wrote:
>
> Where's the problem to do the same thing with the name of the calling
> page? Store the name in a string property of page B before activating
> it...
>
> Uli
>
> Paolo Scopa schrieb:
>> No prob.
>> As i said to uli, i might call B from different pages, not only A.
>> Maybe i should use a common interface for those pages.
>> Ill try and let you know
>> Paolo
>>
>>
>> Patrick Klein wrote:
>>> Hello Paolo,
>>>
>>> mea culpa, you are correct abot that :)
>>> replace IPage with the A's class (implementing IPage) and cast the
>>> result of cycle.getPage(...) accordingly
>>>
>>> Regards,
>>> Patrick
>>>> Thanks Patrick,
>>>> this helps, except that the IPage does not expose the setList method,
>>>> so
>>>> i
>>>> don't think it would work the
>>>> page.setList(composedList);
>>>> maybe not even compile.
>>>> Paolo
>>>>
>>>>
>>>> Patrick Klein wrote:
>>>>
>>>>> Hello Paolo,
>>>>>
>>>>> page a should hold an (persist) abstract getter and setter for the
>>>>> list,
>>>>> page b hold a persist abstract getter and setter for the name of the
>>>>> calling page which is set when page b is accessed and maybe reset if
>>>>> needed in the button's listener.
>>>>> When you are done with compiling your list on page be and the button
>>>>> is
>>>>> pressed, do something like the following in the button's listener:
>>>>>
>>>>> (page b)
>>>>> public void buttonListener(IRequestCycle cycle) {
>>>>> [...]
>>>>> IPage page = cycle.getPage(getPageNameOfA());
>>>>> page.setList(composedList);
>>>>> [...]
>>>>> cycle.activate(page);
>>>>> }
>>>>>
>>>>> Regards,
>>>>> Patrick
>>>>>
>>>>>> Hi all,
>>>>>> got a bit blocked here: i need to return a value to the invoking
>>>>>> page.
>>>>>> Page A calls page B -
>>>>>> in Page B I select a list of item from a longer list
>>>>>> when I press OK on page B, the browser returns to page A where the
>>>>>> list
>>>>>> is
>>>>>> set according to the selection made.
>>>>>> I can set the returning page but cant find a way to set there the
>>>>>> value
>>>>>> to
>>>>>> return.
>>>>>>
>>>>>> I tried different ways but cant find a solution.
>>>>>> Any help ?
>>>>>>
>>>>>> Paolo
>>>>>>
>>>>>>
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/-T4.1-Returning-a-list-to-a-page-tf4242051.html#a12072218
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by Ben Tomasini <be...@gmail.com>.
I have used both Tapestry and HiveMind under high production loads and have
never found any memory leaks in the frameworks themselves. This includes
memory intensive, high volume workflow and image processing applications for
large financial institutions.
However, nearly every application I have worked on has experienced memory
leaks at times, often times severe. Sometimes it was my own code. Often it
was 3rd party libraries like caching frameworks (ehcache constructs had a
badly leaking MutexCache implementation - fixed last year), dao frameworks
(iBatis had an LRU cache which did not properly invalidate every other
expired entry - also fixed), JDBC drivers (just worked with a version of an
AS/400 driver which leaked live a sieve - recently fixed), and the JDK
(StringBuffer in 1.4 anyone? - how about using Java 2D?). My experience
tells me that if you haven't run your application through JProfiler and
looked for leaks, there is a *very* good chance your app is leaking memory,
often times in unexpected places.
Just because your application is a Tapestry application does not mean the
leak is caused by Tapestry - odds are against you on that.
My suggestion would be to run your application under JProfiler and put some
load on it. It is very simple to do. Watch the heap telemetry and see if
it grows monotonically. Watch the object allocations and sizes for the
same.
If you have some empirical evidence to support a suspected leak in Tapestry,
then present it here. I assure you Jesse and the other developers would be
eager to fix them.
HTH,
Ben
On 8/9/07, munich@fantasymail.de <mu...@fantasymail.de> wrote:
>
> Have you ever observed the memory usage for your Tapestry application?
>
> For example, make a simple HelloWorld Application and load the page
> regularly using HTTP_LOAD. Then watch how the memory consumption grows and
> grows .... especially after an hour.
>
> Has anyone got a solution how avoid this leakage?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
RE: Memory leaks in Tapestry 4.1
Posted by Ma...@bmw.ch.
not to forget the really awkward HiveMind version. Use 1.1.1
> -----Original Message-----
> From: Chris Chiappone [mailto:chiappone@gmail.com]
> Sent: Friday, August 10, 2007 3:41 PM
> To: Tapestry users
> Subject: Re: Memory leaks in Tapestry 4.1
>
> I think one of the recommendations would be to upgrade your tapestry.
>
> Tapestry 4.1.2
> Ognl 2.7
>
> ~chris
>
> On 8/10/07, munich@fantasymail.de <mu...@fantasymail.de> wrote:
> > Has anyone got a list of recommended non-leaking third
> party frameworks ?
> >
> > We are using:
> >
> > - Tapestry 4.1
> > - Cayenne 1.2.1
> > - Postgres Driver 8.2.5.0.4
> > - JDBC3 8.2-504
> > - JDBC API 2.0
> > - OGNL 2.6.7
> > - Log4j 1.2.13
> > - Hivemind DWR 1.1.beta3
> > - Commons Loggings 1.0.3
> >
> >
> >
> > -------- Original-Nachricht --------
> > Datum: Fri, 10 Aug 2007 04:58:18 +0200
> > Von: "Hans Jörg Hessmann" <he...@spricom.de>
> > An: Tapestry users <us...@tapestry.apache.org>
> > Betreff: Re: Memory leaks in Tapestry 4.1
> >
> > > There is an excellent tool for post-mortem memory analyzation:
> > >
> https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library
> /uuid/d0eaafd5-6ffd-2910-019c-9007a92b392f.
> > > Just add -XX:+HeapDumpOnOutOfMemoryError to the startup
> parameters
> > > of your JVM. This will produce a memory dump when your JVM dies
> > > because of an OutOfMemoryError. With the memory analyzer
> you can see
> > > which objects consumed all the memory and find out the
> cause for the
> > > the garbage collector not collecting them. (See the corresponding
> > > documentation and the wiki to find out how to do this.)
> > >
> > > Todd Orr wrote:
> > > > True enough. I'll get more details from our side. I was merely
> > > > pointing in that direction based on experience.
> > > >
> > > > On 8/9/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > >
> > > >> Whatever this mysterious "issue" is that you seem to
> think exists
> > > >> it'd be impossible to fix whatever memory leaks you think you
> > > >> have found without knowing about them.
> > > >>
> > > >> There is a map that grows as large as the system using it
> > > >> internally to javassist of various cached reflection
> info - but
> > > >> it doesn't leak in any way.
> > > >>
> > > >> Anyways, vague comments with no specific versions or specific
> > > >> issues that you have faced don't really help anyone.
> > > >>
> > > >> On 8/9/07, Todd Orr <to...@gmail.com> wrote:
> > > >>
> > > >>> We've run into this problem on a production system.
> It was a not
> > > >>> a good situation. One of our developers narrowed down
> the issue
> > > >>> to Hivemind. There is some Map that continually grows
> and grows
> > > >>> (I can speak to our dev to get more detail). After
> some research
> > > >>> into similar posts it became evident that this issue
> was brought
> > > >>> up to HLS, but the bug's existence was denied. We've since
> > > >>> dropped Tapestry for mission critical apps. I'm
> hoping this is
> > > >>> no longer an issue in future versions of Tapestry,
> but time will tell.
> > > >>>
> > > >>> On 8/9/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > >>>
> > > >>>> Tapestry 4.1.2 has no memory leaks. Each and every
> object created /
> > > >>>> managed is accounted for and known. I've done a
> lot of analysis in
> > > >>>> this area lately which is why I'm so sure.
> > > >>>>
> > > >>>> On 8/9/07, munich@fantasymail.de
> <mu...@fantasymail.de> wrote:
> > > >>>>
> > > >>>>> Within one day it rises slowly from 100 MByte to about 1
> > > >>>>> Gigabyte at
> > > night when it crashes due to the limt that was set to the
> virtual machine.
> > > It could be increased - but only with the effect of having an
> > > additional day or so before it crashes
> again.....restarting Tomcat
> > > is also not a viable solution.
> > > >>>>>
> > > >>>>> -------- Original-Nachricht --------
> > > >>>>> Datum: Thu, 09 Aug 2007 17:01:19 +0200
> > > >>>>> Von: munich@fantasymail.de
> > > >>>>> An: "Tapestry users" <us...@tapestry.apache.org>
> > > >>>>> Betreff: Re: Memory leaks in Tapestry 4.1
> > > >>>>>
> > > >>>>>
> > > >>>>>> We have tried both enabling and disabling the
> cache. The same
> > > effect...
> > > >>>>>> it is only leaking a little bit slower in the other case.
> > > >>>>>>
> > > >>>>>> -------- Original-Nachricht --------
> > > >>>>>> Datum: Thu, 9 Aug 2007 15:33:43 +0200
> > > >>>>>> Von: Kristian Marinkovic
> <kr...@porsche.co.at>
> > > >>>>>> An: "Tapestry users" <us...@tapestry.apache.org>
> > > >>>>>> Betreff: Re: Memory leaks in Tapestry 4.1
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>> do you have Tapestry caching deactivated?
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>> andyhot <an...@di.uoa.gr>
> > > >>>>>>> Gesendet von: Andreas Andreou <an...@gmail.com>
> > > >>>>>>> 09.08.2007 15:28
> > > >>>>>>> Bitte antworten an
> > > >>>>>>> "Tapestry users" <us...@tapestry.apache.org>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>> An
> > > >>>>>>> Tapestry users <us...@tapestry.apache.org> Kopie
> > > >>>>>>>
> > > >>>>>>> Thema
> > > >>>>>>> Re: Memory leaks in Tapestry 4.1
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>> Well, we did lots of tests with 4.1.2 and have yet to
> > > >>>>>>> observe such memory leaks.
> > > >>>>>>>
> > > >>>>>>> munich@fantasymail.de wrote:
> > > >>>>>>>
> > > >>>>>>>> Have you ever observed the memory usage for your Tapestry
> > > application?
> > > >>>>>>>>
> > > >>>>>>>> For example, make a simple HelloWorld
> Application and load
> > > >>>>>>>> the
> > > page
> > > >>>>>>>>
> > > >>>>>>> regularly using HTTP_LOAD. Then watch how the memory
> > > >>>>>>> consumption
> > > grows
> > > >>>>>>>
> > > >>>>>> and
> > > >>>>>>
> > > >>>>>>> grows .... especially after an hour.
> > > >>>>>>>
> > > >>>>>>>> Has anyone got a solution how avoid this leakage?
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > >
> --------------------------------------------------------------------
> > > -
> > > >>>>>>>> To unsubscribe, e-mail:
> > > >>>>>>>> users-unsubscribe@tapestry.apache.org
> > > >>>>>>>> For additional commands, e-mail:
> > > >>>>>>>> users-help@tapestry.apache.org
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>
> > >
> --------------------------------------------------------------------
> > > -
> > > >>>>>>> To unsubscribe, e-mail:
> > > >>>>>>> users-unsubscribe@tapestry.apache.org
> > > >>>>>>> For additional commands, e-mail:
> > > >>>>>>> users-help@tapestry.apache.org
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>
> > >
> --------------------------------------------------------------------
> > > -
> > > >>>>>> To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> > > >>>>>> For additional commands, e-mail:
> > > >>>>>> users-help@tapestry.apache.org
> > > >>>>>>
> > > >>>>>
> > >
> --------------------------------------------------------------------
> > > -
> > > >>>>> To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> > > >>>>> For additional commands, e-mail:
> > > >>>>> users-help@tapestry.apache.org
> > > >>>>>
> > > >>>>>
> > > >>>>>
> > > >>>> --
> > > >>>> Jesse Kuhnert
> > > >>>> Tapestry/Dojo team member/developer
> > > >>>>
> > > >>>> Open source based consulting work centered around
> > > >>>> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > > >>>>
> > > >>>>
> ---------------------------------------------------------------
> > > >>>> ------ To unsubscribe, e-mail:
> > > >>>> users-unsubscribe@tapestry.apache.org
> > > >>>> For additional commands, e-mail:
> users-help@tapestry.apache.org
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>
> ----------------------------------------------------------------
> > > >>> ----- To unsubscribe, e-mail:
> > > >>> users-unsubscribe@tapestry.apache.org
> > > >>> For additional commands, e-mail:
> users-help@tapestry.apache.org
> > > >>>
> > > >>>
> > > >>>
> > > >> --
> > > >> Jesse Kuhnert
> > > >> Tapestry/Dojo team member/developer
> > > >>
> > > >> Open source based consulting work centered around
> > > >> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > > >>
> > > >>
> -----------------------------------------------------------------
> > > >> ---- To unsubscribe, e-mail:
> > > >> users-unsubscribe@tapestry.apache.org
> > > >> For additional commands, e-mail: users-help@tapestry.apache.org
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> ------------------------------------------------------------------
> > > > --- To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > > >
> > >
> > >
> > >
> --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> ~chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by Chris Chiappone <ch...@gmail.com>.
I think one of the recommendations would be to upgrade your tapestry.
Tapestry 4.1.2
Ognl 2.7
~chris
On 8/10/07, munich@fantasymail.de <mu...@fantasymail.de> wrote:
> Has anyone got a list of recommended non-leaking third party frameworks ?
>
> We are using:
>
> - Tapestry 4.1
> - Cayenne 1.2.1
> - Postgres Driver 8.2.5.0.4
> - JDBC3 8.2-504
> - JDBC API 2.0
> - OGNL 2.6.7
> - Log4j 1.2.13
> - Hivemind DWR 1.1.beta3
> - Commons Loggings 1.0.3
>
>
>
> -------- Original-Nachricht --------
> Datum: Fri, 10 Aug 2007 04:58:18 +0200
> Von: "Hans Jörg Hessmann" <he...@spricom.de>
> An: Tapestry users <us...@tapestry.apache.org>
> Betreff: Re: Memory leaks in Tapestry 4.1
>
> > There is an excellent tool for post-mortem memory analyzation:
> > https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0eaafd5-6ffd-2910-019c-9007a92b392f.
> > Just add -XX:+HeapDumpOnOutOfMemoryError to the startup parameters of
> > your JVM. This will produce a memory dump when your JVM dies because of
> > an OutOfMemoryError. With the memory analyzer you can see which objects
> > consumed all the memory and find out the cause for the the garbage
> > collector not collecting them. (See the corresponding documentation and
> > the wiki to find out how to do this.)
> >
> > Todd Orr wrote:
> > > True enough. I'll get more details from our side. I was merely
> > > pointing in that direction based on experience.
> > >
> > > On 8/9/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> > >
> > >> Whatever this mysterious "issue" is that you seem to think exists it'd
> > >> be impossible to fix whatever memory leaks you think you have found
> > >> without knowing about them.
> > >>
> > >> There is a map that grows as large as the system using it internally
> > >> to javassist of various cached reflection info - but it doesn't leak
> > >> in any way.
> > >>
> > >> Anyways, vague comments with no specific versions or specific issues
> > >> that you have faced don't really help anyone.
> > >>
> > >> On 8/9/07, Todd Orr <to...@gmail.com> wrote:
> > >>
> > >>> We've run into this problem on a production system. It was a not a
> > >>> good situation. One of our developers narrowed down the issue to
> > >>> Hivemind. There is some Map that continually grows and grows (I can
> > >>> speak to our dev to get more detail). After some research into similar
> > >>> posts it became evident that this issue was brought up to HLS, but the
> > >>> bug's existence was denied. We've since dropped Tapestry for mission
> > >>> critical apps. I'm hoping this is no longer an issue in future
> > >>> versions of Tapestry, but time will tell.
> > >>>
> > >>> On 8/9/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> > >>>
> > >>>> Tapestry 4.1.2 has no memory leaks. Each and every object created /
> > >>>> managed is accounted for and known. I've done a lot of analysis in
> > >>>> this area lately which is why I'm so sure.
> > >>>>
> > >>>> On 8/9/07, munich@fantasymail.de <mu...@fantasymail.de> wrote:
> > >>>>
> > >>>>> Within one day it rises slowly from 100 MByte to about 1 Gigabyte at
> > night when it crashes due to the limt that was set to the virtual machine.
> > It could be increased - but only with the effect of having an additional
> > day or so before it crashes again.....restarting Tomcat is also not a viable
> > solution.
> > >>>>>
> > >>>>> -------- Original-Nachricht --------
> > >>>>> Datum: Thu, 09 Aug 2007 17:01:19 +0200
> > >>>>> Von: munich@fantasymail.de
> > >>>>> An: "Tapestry users" <us...@tapestry.apache.org>
> > >>>>> Betreff: Re: Memory leaks in Tapestry 4.1
> > >>>>>
> > >>>>>
> > >>>>>> We have tried both enabling and disabling the cache. The same
> > effect...
> > >>>>>> it is only leaking a little bit slower in the other case.
> > >>>>>>
> > >>>>>> -------- Original-Nachricht --------
> > >>>>>> Datum: Thu, 9 Aug 2007 15:33:43 +0200
> > >>>>>> Von: Kristian Marinkovic <kr...@porsche.co.at>
> > >>>>>> An: "Tapestry users" <us...@tapestry.apache.org>
> > >>>>>> Betreff: Re: Memory leaks in Tapestry 4.1
> > >>>>>>
> > >>>>>>
> > >>>>>>> do you have Tapestry caching deactivated?
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> andyhot <an...@di.uoa.gr>
> > >>>>>>> Gesendet von: Andreas Andreou <an...@gmail.com>
> > >>>>>>> 09.08.2007 15:28
> > >>>>>>> Bitte antworten an
> > >>>>>>> "Tapestry users" <us...@tapestry.apache.org>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> An
> > >>>>>>> Tapestry users <us...@tapestry.apache.org>
> > >>>>>>> Kopie
> > >>>>>>>
> > >>>>>>> Thema
> > >>>>>>> Re: Memory leaks in Tapestry 4.1
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> Well, we did lots of tests with 4.1.2 and
> > >>>>>>> have yet to observe such memory leaks.
> > >>>>>>>
> > >>>>>>> munich@fantasymail.de wrote:
> > >>>>>>>
> > >>>>>>>> Have you ever observed the memory usage for your Tapestry
> > application?
> > >>>>>>>>
> > >>>>>>>> For example, make a simple HelloWorld Application and load the
> > page
> > >>>>>>>>
> > >>>>>>> regularly using HTTP_LOAD. Then watch how the memory consumption
> > grows
> > >>>>>>>
> > >>>>>> and
> > >>>>>>
> > >>>>>>> grows .... especially after an hour.
> > >>>>>>>
> > >>>>>>>> Has anyone got a solution how avoid this leakage?
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > ---------------------------------------------------------------------
> > >>>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >>>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>
> > ---------------------------------------------------------------------
> > >>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>
> > ---------------------------------------------------------------------
> > >>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>>>>>
> > >>>>>
> > ---------------------------------------------------------------------
> > >>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>> --
> > >>>> Jesse Kuhnert
> > >>>> Tapestry/Dojo team member/developer
> > >>>>
> > >>>> Open source based consulting work centered around
> > >>>> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > >>>>
> > >>>> ---------------------------------------------------------------------
> > >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>>>
> > >>>>
> > >>>>
> > >>> ---------------------------------------------------------------------
> > >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >>> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>>
> > >>>
> > >>>
> > >> --
> > >> Jesse Kuhnert
> > >> Tapestry/Dojo team member/developer
> > >>
> > >> Open source based consulting work centered around
> > >> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>
> > >>
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
~chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by mu...@fantasymail.de.
Has anyone got a list of recommended non-leaking third party frameworks ?
We are using:
- Tapestry 4.1
- Cayenne 1.2.1
- Postgres Driver 8.2.5.0.4
- JDBC3 8.2-504
- JDBC API 2.0
- OGNL 2.6.7
- Log4j 1.2.13
- Hivemind DWR 1.1.beta3
- Commons Loggings 1.0.3
-------- Original-Nachricht --------
Datum: Fri, 10 Aug 2007 04:58:18 +0200
Von: "Hans Jörg Hessmann" <he...@spricom.de>
An: Tapestry users <us...@tapestry.apache.org>
Betreff: Re: Memory leaks in Tapestry 4.1
> There is an excellent tool for post-mortem memory analyzation:
> https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0eaafd5-6ffd-2910-019c-9007a92b392f.
> Just add -XX:+HeapDumpOnOutOfMemoryError to the startup parameters of
> your JVM. This will produce a memory dump when your JVM dies because of
> an OutOfMemoryError. With the memory analyzer you can see which objects
> consumed all the memory and find out the cause for the the garbage
> collector not collecting them. (See the corresponding documentation and
> the wiki to find out how to do this.)
>
> Todd Orr wrote:
> > True enough. I'll get more details from our side. I was merely
> > pointing in that direction based on experience.
> >
> > On 8/9/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> >
> >> Whatever this mysterious "issue" is that you seem to think exists it'd
> >> be impossible to fix whatever memory leaks you think you have found
> >> without knowing about them.
> >>
> >> There is a map that grows as large as the system using it internally
> >> to javassist of various cached reflection info - but it doesn't leak
> >> in any way.
> >>
> >> Anyways, vague comments with no specific versions or specific issues
> >> that you have faced don't really help anyone.
> >>
> >> On 8/9/07, Todd Orr <to...@gmail.com> wrote:
> >>
> >>> We've run into this problem on a production system. It was a not a
> >>> good situation. One of our developers narrowed down the issue to
> >>> Hivemind. There is some Map that continually grows and grows (I can
> >>> speak to our dev to get more detail). After some research into similar
> >>> posts it became evident that this issue was brought up to HLS, but the
> >>> bug's existence was denied. We've since dropped Tapestry for mission
> >>> critical apps. I'm hoping this is no longer an issue in future
> >>> versions of Tapestry, but time will tell.
> >>>
> >>> On 8/9/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> >>>
> >>>> Tapestry 4.1.2 has no memory leaks. Each and every object created /
> >>>> managed is accounted for and known. I've done a lot of analysis in
> >>>> this area lately which is why I'm so sure.
> >>>>
> >>>> On 8/9/07, munich@fantasymail.de <mu...@fantasymail.de> wrote:
> >>>>
> >>>>> Within one day it rises slowly from 100 MByte to about 1 Gigabyte at
> night when it crashes due to the limt that was set to the virtual machine.
> It could be increased - but only with the effect of having an additional
> day or so before it crashes again.....restarting Tomcat is also not a viable
> solution.
> >>>>>
> >>>>> -------- Original-Nachricht --------
> >>>>> Datum: Thu, 09 Aug 2007 17:01:19 +0200
> >>>>> Von: munich@fantasymail.de
> >>>>> An: "Tapestry users" <us...@tapestry.apache.org>
> >>>>> Betreff: Re: Memory leaks in Tapestry 4.1
> >>>>>
> >>>>>
> >>>>>> We have tried both enabling and disabling the cache. The same
> effect...
> >>>>>> it is only leaking a little bit slower in the other case.
> >>>>>>
> >>>>>> -------- Original-Nachricht --------
> >>>>>> Datum: Thu, 9 Aug 2007 15:33:43 +0200
> >>>>>> Von: Kristian Marinkovic <kr...@porsche.co.at>
> >>>>>> An: "Tapestry users" <us...@tapestry.apache.org>
> >>>>>> Betreff: Re: Memory leaks in Tapestry 4.1
> >>>>>>
> >>>>>>
> >>>>>>> do you have Tapestry caching deactivated?
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> andyhot <an...@di.uoa.gr>
> >>>>>>> Gesendet von: Andreas Andreou <an...@gmail.com>
> >>>>>>> 09.08.2007 15:28
> >>>>>>> Bitte antworten an
> >>>>>>> "Tapestry users" <us...@tapestry.apache.org>
> >>>>>>>
> >>>>>>>
> >>>>>>> An
> >>>>>>> Tapestry users <us...@tapestry.apache.org>
> >>>>>>> Kopie
> >>>>>>>
> >>>>>>> Thema
> >>>>>>> Re: Memory leaks in Tapestry 4.1
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> Well, we did lots of tests with 4.1.2 and
> >>>>>>> have yet to observe such memory leaks.
> >>>>>>>
> >>>>>>> munich@fantasymail.de wrote:
> >>>>>>>
> >>>>>>>> Have you ever observed the memory usage for your Tapestry
> application?
> >>>>>>>>
> >>>>>>>> For example, make a simple HelloWorld Application and load the
> page
> >>>>>>>>
> >>>>>>> regularly using HTTP_LOAD. Then watch how the memory consumption
> grows
> >>>>>>>
> >>>>>> and
> >>>>>>
> >>>>>>> grows .... especially after an hour.
> >>>>>>>
> >>>>>>>> Has anyone got a solution how avoid this leakage?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> ---------------------------------------------------------------------
> >>>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> ---------------------------------------------------------------------
> >>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> ---------------------------------------------------------------------
> >>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>>>
> >>>>>
> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>> --
> >>>> Jesse Kuhnert
> >>>> Tapestry/Dojo team member/developer
> >>>>
> >>>> Open source based consulting work centered around
> >>>> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>
> >>>>
> >>>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>
> >>>
> >>>
> >> --
> >> Jesse Kuhnert
> >> Tapestry/Dojo team member/developer
> >>
> >> Open source based consulting work centered around
> >> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by Hans Jörg Hessmann <he...@spricom.de>.
There is an excellent tool for post-mortem memory analyzation:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0eaafd5-6ffd-2910-019c-9007a92b392f.
Just add -XX:+HeapDumpOnOutOfMemoryError to the startup parameters of
your JVM. This will produce a memory dump when your JVM dies because of
an OutOfMemoryError. With the memory analyzer you can see which objects
consumed all the memory and find out the cause for the the garbage
collector not collecting them. (See the corresponding documentation and
the wiki to find out how to do this.)
Todd Orr wrote:
> True enough. I'll get more details from our side. I was merely
> pointing in that direction based on experience.
>
> On 8/9/07, Jesse Kuhnert <jk...@gmail.com> wrote:
>
>> Whatever this mysterious "issue" is that you seem to think exists it'd
>> be impossible to fix whatever memory leaks you think you have found
>> without knowing about them.
>>
>> There is a map that grows as large as the system using it internally
>> to javassist of various cached reflection info - but it doesn't leak
>> in any way.
>>
>> Anyways, vague comments with no specific versions or specific issues
>> that you have faced don't really help anyone.
>>
>> On 8/9/07, Todd Orr <to...@gmail.com> wrote:
>>
>>> We've run into this problem on a production system. It was a not a
>>> good situation. One of our developers narrowed down the issue to
>>> Hivemind. There is some Map that continually grows and grows (I can
>>> speak to our dev to get more detail). After some research into similar
>>> posts it became evident that this issue was brought up to HLS, but the
>>> bug's existence was denied. We've since dropped Tapestry for mission
>>> critical apps. I'm hoping this is no longer an issue in future
>>> versions of Tapestry, but time will tell.
>>>
>>> On 8/9/07, Jesse Kuhnert <jk...@gmail.com> wrote:
>>>
>>>> Tapestry 4.1.2 has no memory leaks. Each and every object created /
>>>> managed is accounted for and known. I've done a lot of analysis in
>>>> this area lately which is why I'm so sure.
>>>>
>>>> On 8/9/07, munich@fantasymail.de <mu...@fantasymail.de> wrote:
>>>>
>>>>> Within one day it rises slowly from 100 MByte to about 1 Gigabyte at night when it crashes due to the limt that was set to the virtual machine. It could be increased - but only with the effect of having an additional day or so before it crashes again.....restarting Tomcat is also not a viable solution.
>>>>>
>>>>> -------- Original-Nachricht --------
>>>>> Datum: Thu, 09 Aug 2007 17:01:19 +0200
>>>>> Von: munich@fantasymail.de
>>>>> An: "Tapestry users" <us...@tapestry.apache.org>
>>>>> Betreff: Re: Memory leaks in Tapestry 4.1
>>>>>
>>>>>
>>>>>> We have tried both enabling and disabling the cache. The same effect...
>>>>>> it is only leaking a little bit slower in the other case.
>>>>>>
>>>>>> -------- Original-Nachricht --------
>>>>>> Datum: Thu, 9 Aug 2007 15:33:43 +0200
>>>>>> Von: Kristian Marinkovic <kr...@porsche.co.at>
>>>>>> An: "Tapestry users" <us...@tapestry.apache.org>
>>>>>> Betreff: Re: Memory leaks in Tapestry 4.1
>>>>>>
>>>>>>
>>>>>>> do you have Tapestry caching deactivated?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> andyhot <an...@di.uoa.gr>
>>>>>>> Gesendet von: Andreas Andreou <an...@gmail.com>
>>>>>>> 09.08.2007 15:28
>>>>>>> Bitte antworten an
>>>>>>> "Tapestry users" <us...@tapestry.apache.org>
>>>>>>>
>>>>>>>
>>>>>>> An
>>>>>>> Tapestry users <us...@tapestry.apache.org>
>>>>>>> Kopie
>>>>>>>
>>>>>>> Thema
>>>>>>> Re: Memory leaks in Tapestry 4.1
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Well, we did lots of tests with 4.1.2 and
>>>>>>> have yet to observe such memory leaks.
>>>>>>>
>>>>>>> munich@fantasymail.de wrote:
>>>>>>>
>>>>>>>> Have you ever observed the memory usage for your Tapestry application?
>>>>>>>>
>>>>>>>> For example, make a simple HelloWorld Application and load the page
>>>>>>>>
>>>>>>> regularly using HTTP_LOAD. Then watch how the memory consumption grows
>>>>>>>
>>>>>> and
>>>>>>
>>>>>>> grows .... especially after an hour.
>>>>>>>
>>>>>>>> Has anyone got a solution how avoid this leakage?
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>
>>>>>
>>>>>
>>>> --
>>>> Jesse Kuhnert
>>>> Tapestry/Dojo team member/developer
>>>>
>>>> Open source based consulting work centered around
>>>> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>> --
>> Jesse Kuhnert
>> Tapestry/Dojo team member/developer
>>
>> Open source based consulting work centered around
>> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by Todd Orr <to...@gmail.com>.
True enough. I'll get more details from our side. I was merely
pointing in that direction based on experience.
On 8/9/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> Whatever this mysterious "issue" is that you seem to think exists it'd
> be impossible to fix whatever memory leaks you think you have found
> without knowing about them.
>
> There is a map that grows as large as the system using it internally
> to javassist of various cached reflection info - but it doesn't leak
> in any way.
>
> Anyways, vague comments with no specific versions or specific issues
> that you have faced don't really help anyone.
>
> On 8/9/07, Todd Orr <to...@gmail.com> wrote:
> > We've run into this problem on a production system. It was a not a
> > good situation. One of our developers narrowed down the issue to
> > Hivemind. There is some Map that continually grows and grows (I can
> > speak to our dev to get more detail). After some research into similar
> > posts it became evident that this issue was brought up to HLS, but the
> > bug's existence was denied. We've since dropped Tapestry for mission
> > critical apps. I'm hoping this is no longer an issue in future
> > versions of Tapestry, but time will tell.
> >
> > On 8/9/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > Tapestry 4.1.2 has no memory leaks. Each and every object created /
> > > managed is accounted for and known. I've done a lot of analysis in
> > > this area lately which is why I'm so sure.
> > >
> > > On 8/9/07, munich@fantasymail.de <mu...@fantasymail.de> wrote:
> > > > Within one day it rises slowly from 100 MByte to about 1 Gigabyte at night when it crashes due to the limt that was set to the virtual machine. It could be increased - but only with the effect of having an additional day or so before it crashes again.....restarting Tomcat is also not a viable solution.
> > > >
> > > > -------- Original-Nachricht --------
> > > > Datum: Thu, 09 Aug 2007 17:01:19 +0200
> > > > Von: munich@fantasymail.de
> > > > An: "Tapestry users" <us...@tapestry.apache.org>
> > > > Betreff: Re: Memory leaks in Tapestry 4.1
> > > >
> > > > > We have tried both enabling and disabling the cache. The same effect...
> > > > > it is only leaking a little bit slower in the other case.
> > > > >
> > > > > -------- Original-Nachricht --------
> > > > > Datum: Thu, 9 Aug 2007 15:33:43 +0200
> > > > > Von: Kristian Marinkovic <kr...@porsche.co.at>
> > > > > An: "Tapestry users" <us...@tapestry.apache.org>
> > > > > Betreff: Re: Memory leaks in Tapestry 4.1
> > > > >
> > > > > > do you have Tapestry caching deactivated?
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > andyhot <an...@di.uoa.gr>
> > > > > > Gesendet von: Andreas Andreou <an...@gmail.com>
> > > > > > 09.08.2007 15:28
> > > > > > Bitte antworten an
> > > > > > "Tapestry users" <us...@tapestry.apache.org>
> > > > > >
> > > > > >
> > > > > > An
> > > > > > Tapestry users <us...@tapestry.apache.org>
> > > > > > Kopie
> > > > > >
> > > > > > Thema
> > > > > > Re: Memory leaks in Tapestry 4.1
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Well, we did lots of tests with 4.1.2 and
> > > > > > have yet to observe such memory leaks.
> > > > > >
> > > > > > munich@fantasymail.de wrote:
> > > > > > > Have you ever observed the memory usage for your Tapestry application?
> > > > > > >
> > > > > > > For example, make a simple HelloWorld Application and load the page
> > > > > > regularly using HTTP_LOAD. Then watch how the memory consumption grows
> > > > > and
> > > > > > grows .... especially after an hour.
> > > > > > >
> > > > > > > Has anyone got a solution how avoid this leakage?
> > > > > > >
> > > > > > >
> > > > > > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Jesse Kuhnert
> > > Tapestry/Dojo team member/developer
> > >
> > > Open source based consulting work centered around
> > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by Jesse Kuhnert <jk...@gmail.com>.
Whatever this mysterious "issue" is that you seem to think exists it'd
be impossible to fix whatever memory leaks you think you have found
without knowing about them.
There is a map that grows as large as the system using it internally
to javassist of various cached reflection info - but it doesn't leak
in any way.
Anyways, vague comments with no specific versions or specific issues
that you have faced don't really help anyone.
On 8/9/07, Todd Orr <to...@gmail.com> wrote:
> We've run into this problem on a production system. It was a not a
> good situation. One of our developers narrowed down the issue to
> Hivemind. There is some Map that continually grows and grows (I can
> speak to our dev to get more detail). After some research into similar
> posts it became evident that this issue was brought up to HLS, but the
> bug's existence was denied. We've since dropped Tapestry for mission
> critical apps. I'm hoping this is no longer an issue in future
> versions of Tapestry, but time will tell.
>
> On 8/9/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> > Tapestry 4.1.2 has no memory leaks. Each and every object created /
> > managed is accounted for and known. I've done a lot of analysis in
> > this area lately which is why I'm so sure.
> >
> > On 8/9/07, munich@fantasymail.de <mu...@fantasymail.de> wrote:
> > > Within one day it rises slowly from 100 MByte to about 1 Gigabyte at night when it crashes due to the limt that was set to the virtual machine. It could be increased - but only with the effect of having an additional day or so before it crashes again.....restarting Tomcat is also not a viable solution.
> > >
> > > -------- Original-Nachricht --------
> > > Datum: Thu, 09 Aug 2007 17:01:19 +0200
> > > Von: munich@fantasymail.de
> > > An: "Tapestry users" <us...@tapestry.apache.org>
> > > Betreff: Re: Memory leaks in Tapestry 4.1
> > >
> > > > We have tried both enabling and disabling the cache. The same effect...
> > > > it is only leaking a little bit slower in the other case.
> > > >
> > > > -------- Original-Nachricht --------
> > > > Datum: Thu, 9 Aug 2007 15:33:43 +0200
> > > > Von: Kristian Marinkovic <kr...@porsche.co.at>
> > > > An: "Tapestry users" <us...@tapestry.apache.org>
> > > > Betreff: Re: Memory leaks in Tapestry 4.1
> > > >
> > > > > do you have Tapestry caching deactivated?
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > andyhot <an...@di.uoa.gr>
> > > > > Gesendet von: Andreas Andreou <an...@gmail.com>
> > > > > 09.08.2007 15:28
> > > > > Bitte antworten an
> > > > > "Tapestry users" <us...@tapestry.apache.org>
> > > > >
> > > > >
> > > > > An
> > > > > Tapestry users <us...@tapestry.apache.org>
> > > > > Kopie
> > > > >
> > > > > Thema
> > > > > Re: Memory leaks in Tapestry 4.1
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Well, we did lots of tests with 4.1.2 and
> > > > > have yet to observe such memory leaks.
> > > > >
> > > > > munich@fantasymail.de wrote:
> > > > > > Have you ever observed the memory usage for your Tapestry application?
> > > > > >
> > > > > > For example, make a simple HelloWorld Application and load the page
> > > > > regularly using HTTP_LOAD. Then watch how the memory consumption grows
> > > > and
> > > > > grows .... especially after an hour.
> > > > > >
> > > > > > Has anyone got a solution how avoid this leakage?
> > > > > >
> > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Jesse Kuhnert
Tapestry/Dojo team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by Todd Orr <to...@gmail.com>.
We've run into this problem on a production system. It was a not a
good situation. One of our developers narrowed down the issue to
Hivemind. There is some Map that continually grows and grows (I can
speak to our dev to get more detail). After some research into similar
posts it became evident that this issue was brought up to HLS, but the
bug's existence was denied. We've since dropped Tapestry for mission
critical apps. I'm hoping this is no longer an issue in future
versions of Tapestry, but time will tell.
On 8/9/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> Tapestry 4.1.2 has no memory leaks. Each and every object created /
> managed is accounted for and known. I've done a lot of analysis in
> this area lately which is why I'm so sure.
>
> On 8/9/07, munich@fantasymail.de <mu...@fantasymail.de> wrote:
> > Within one day it rises slowly from 100 MByte to about 1 Gigabyte at night when it crashes due to the limt that was set to the virtual machine. It could be increased - but only with the effect of having an additional day or so before it crashes again.....restarting Tomcat is also not a viable solution.
> >
> > -------- Original-Nachricht --------
> > Datum: Thu, 09 Aug 2007 17:01:19 +0200
> > Von: munich@fantasymail.de
> > An: "Tapestry users" <us...@tapestry.apache.org>
> > Betreff: Re: Memory leaks in Tapestry 4.1
> >
> > > We have tried both enabling and disabling the cache. The same effect...
> > > it is only leaking a little bit slower in the other case.
> > >
> > > -------- Original-Nachricht --------
> > > Datum: Thu, 9 Aug 2007 15:33:43 +0200
> > > Von: Kristian Marinkovic <kr...@porsche.co.at>
> > > An: "Tapestry users" <us...@tapestry.apache.org>
> > > Betreff: Re: Memory leaks in Tapestry 4.1
> > >
> > > > do you have Tapestry caching deactivated?
> > > >
> > > >
> > > >
> > > >
> > > > andyhot <an...@di.uoa.gr>
> > > > Gesendet von: Andreas Andreou <an...@gmail.com>
> > > > 09.08.2007 15:28
> > > > Bitte antworten an
> > > > "Tapestry users" <us...@tapestry.apache.org>
> > > >
> > > >
> > > > An
> > > > Tapestry users <us...@tapestry.apache.org>
> > > > Kopie
> > > >
> > > > Thema
> > > > Re: Memory leaks in Tapestry 4.1
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Well, we did lots of tests with 4.1.2 and
> > > > have yet to observe such memory leaks.
> > > >
> > > > munich@fantasymail.de wrote:
> > > > > Have you ever observed the memory usage for your Tapestry application?
> > > > >
> > > > > For example, make a simple HelloWorld Application and load the page
> > > > regularly using HTTP_LOAD. Then watch how the memory consumption grows
> > > and
> > > > grows .... especially after an hour.
> > > > >
> > > > > Has anyone got a solution how avoid this leakage?
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by Jesse Kuhnert <jk...@gmail.com>.
Tapestry 4.1.2 has no memory leaks. Each and every object created /
managed is accounted for and known. I've done a lot of analysis in
this area lately which is why I'm so sure.
On 8/9/07, munich@fantasymail.de <mu...@fantasymail.de> wrote:
> Within one day it rises slowly from 100 MByte to about 1 Gigabyte at night when it crashes due to the limt that was set to the virtual machine. It could be increased - but only with the effect of having an additional day or so before it crashes again.....restarting Tomcat is also not a viable solution.
>
> -------- Original-Nachricht --------
> Datum: Thu, 09 Aug 2007 17:01:19 +0200
> Von: munich@fantasymail.de
> An: "Tapestry users" <us...@tapestry.apache.org>
> Betreff: Re: Memory leaks in Tapestry 4.1
>
> > We have tried both enabling and disabling the cache. The same effect...
> > it is only leaking a little bit slower in the other case.
> >
> > -------- Original-Nachricht --------
> > Datum: Thu, 9 Aug 2007 15:33:43 +0200
> > Von: Kristian Marinkovic <kr...@porsche.co.at>
> > An: "Tapestry users" <us...@tapestry.apache.org>
> > Betreff: Re: Memory leaks in Tapestry 4.1
> >
> > > do you have Tapestry caching deactivated?
> > >
> > >
> > >
> > >
> > > andyhot <an...@di.uoa.gr>
> > > Gesendet von: Andreas Andreou <an...@gmail.com>
> > > 09.08.2007 15:28
> > > Bitte antworten an
> > > "Tapestry users" <us...@tapestry.apache.org>
> > >
> > >
> > > An
> > > Tapestry users <us...@tapestry.apache.org>
> > > Kopie
> > >
> > > Thema
> > > Re: Memory leaks in Tapestry 4.1
> > >
> > >
> > >
> > >
> > >
> > >
> > > Well, we did lots of tests with 4.1.2 and
> > > have yet to observe such memory leaks.
> > >
> > > munich@fantasymail.de wrote:
> > > > Have you ever observed the memory usage for your Tapestry application?
> > > >
> > > > For example, make a simple HelloWorld Application and load the page
> > > regularly using HTTP_LOAD. Then watch how the memory consumption grows
> > and
> > > grows .... especially after an hour.
> > > >
> > > > Has anyone got a solution how avoid this leakage?
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Jesse Kuhnert
Tapestry/Dojo team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by Jonathan Glanz <jg...@densebrain.com>.
Have you tried pulling heap dumps and anaylizing them ?
Sent via BlackBerry by AT&T
-----Original Message-----
From: munich@fantasymail.de
Date: Thu, 09 Aug 2007 17:04:21
To:"Tapestry users" <us...@tapestry.apache.org>
Subject: Re: Memory leaks in Tapestry 4.1
Within one day it rises slowly from 100 MByte to about 1 Gigabyte at night when it crashes due to the limt that was set to the virtual machine. It could be increased - but only with the effect of having an additional day or so before it crashes again.....restarting Tomcat is also not a viable solution.
-------- Original-Nachricht --------
Datum: Thu, 09 Aug 2007 17:01:19 +0200
Von: munich@fantasymail.de
An: "Tapestry users" <us...@tapestry.apache.org>
Betreff: Re: Memory leaks in Tapestry 4.1
> We have tried both enabling and disabling the cache. The same effect...
> it is only leaking a little bit slower in the other case.
>
> -------- Original-Nachricht --------
> Datum: Thu, 9 Aug 2007 15:33:43 +0200
> Von: Kristian Marinkovic <kr...@porsche.co.at>
> An: "Tapestry users" <us...@tapestry.apache.org>
> Betreff: Re: Memory leaks in Tapestry 4.1
>
> > do you have Tapestry caching deactivated?
> >
> >
> >
> >
> > andyhot <an...@di.uoa.gr>
> > Gesendet von: Andreas Andreou <an...@gmail.com>
> > 09.08.2007 15:28
> > Bitte antworten an
> > "Tapestry users" <us...@tapestry.apache.org>
> >
> >
> > An
> > Tapestry users <us...@tapestry.apache.org>
> > Kopie
> >
> > Thema
> > Re: Memory leaks in Tapestry 4.1
> >
> >
> >
> >
> >
> >
> > Well, we did lots of tests with 4.1.2 and
> > have yet to observe such memory leaks.
> >
> > munich@fantasymail.de wrote:
> > > Have you ever observed the memory usage for your Tapestry application?
> > >
> > > For example, make a simple HelloWorld Application and load the page
> > regularly using HTTP_LOAD. Then watch how the memory consumption grows
> and
> > grows .... especially after an hour.
> > >
> > > Has anyone got a solution how avoid this leakage?
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by mu...@fantasymail.de.
Within one day it rises slowly from 100 MByte to about 1 Gigabyte at night when it crashes due to the limt that was set to the virtual machine. It could be increased - but only with the effect of having an additional day or so before it crashes again.....restarting Tomcat is also not a viable solution.
-------- Original-Nachricht --------
Datum: Thu, 09 Aug 2007 17:01:19 +0200
Von: munich@fantasymail.de
An: "Tapestry users" <us...@tapestry.apache.org>
Betreff: Re: Memory leaks in Tapestry 4.1
> We have tried both enabling and disabling the cache. The same effect...
> it is only leaking a little bit slower in the other case.
>
> -------- Original-Nachricht --------
> Datum: Thu, 9 Aug 2007 15:33:43 +0200
> Von: Kristian Marinkovic <kr...@porsche.co.at>
> An: "Tapestry users" <us...@tapestry.apache.org>
> Betreff: Re: Memory leaks in Tapestry 4.1
>
> > do you have Tapestry caching deactivated?
> >
> >
> >
> >
> > andyhot <an...@di.uoa.gr>
> > Gesendet von: Andreas Andreou <an...@gmail.com>
> > 09.08.2007 15:28
> > Bitte antworten an
> > "Tapestry users" <us...@tapestry.apache.org>
> >
> >
> > An
> > Tapestry users <us...@tapestry.apache.org>
> > Kopie
> >
> > Thema
> > Re: Memory leaks in Tapestry 4.1
> >
> >
> >
> >
> >
> >
> > Well, we did lots of tests with 4.1.2 and
> > have yet to observe such memory leaks.
> >
> > munich@fantasymail.de wrote:
> > > Have you ever observed the memory usage for your Tapestry application?
> > >
> > > For example, make a simple HelloWorld Application and load the page
> > regularly using HTTP_LOAD. Then watch how the memory consumption grows
> and
> > grows .... especially after an hour.
> > >
> > > Has anyone got a solution how avoid this leakage?
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by mu...@fantasymail.de.
We have tried both enabling and disabling the cache. The same effect...
it is only leaking a little bit slower in the other case.
-------- Original-Nachricht --------
Datum: Thu, 9 Aug 2007 15:33:43 +0200
Von: Kristian Marinkovic <kr...@porsche.co.at>
An: "Tapestry users" <us...@tapestry.apache.org>
Betreff: Re: Memory leaks in Tapestry 4.1
> do you have Tapestry caching deactivated?
>
>
>
>
> andyhot <an...@di.uoa.gr>
> Gesendet von: Andreas Andreou <an...@gmail.com>
> 09.08.2007 15:28
> Bitte antworten an
> "Tapestry users" <us...@tapestry.apache.org>
>
>
> An
> Tapestry users <us...@tapestry.apache.org>
> Kopie
>
> Thema
> Re: Memory leaks in Tapestry 4.1
>
>
>
>
>
>
> Well, we did lots of tests with 4.1.2 and
> have yet to observe such memory leaks.
>
> munich@fantasymail.de wrote:
> > Have you ever observed the memory usage for your Tapestry application?
> >
> > For example, make a simple HelloWorld Application and load the page
> regularly using HTTP_LOAD. Then watch how the memory consumption grows and
> grows .... especially after an hour.
> >
> > Has anyone got a solution how avoid this leakage?
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by Kristian Marinkovic <kr...@porsche.co.at>.
do you have Tapestry caching deactivated?
andyhot <an...@di.uoa.gr>
Gesendet von: Andreas Andreou <an...@gmail.com>
09.08.2007 15:28
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>
An
Tapestry users <us...@tapestry.apache.org>
Kopie
Thema
Re: Memory leaks in Tapestry 4.1
Well, we did lots of tests with 4.1.2 and
have yet to observe such memory leaks.
munich@fantasymail.de wrote:
> Have you ever observed the memory usage for your Tapestry application?
>
> For example, make a simple HelloWorld Application and load the page
regularly using HTTP_LOAD. Then watch how the memory consumption grows and
grows .... especially after an hour.
>
> Has anyone got a solution how avoid this leakage?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Memory leaks in Tapestry 4.1
Posted by andyhot <an...@di.uoa.gr>.
Well, we did lots of tests with 4.1.2 and
have yet to observe such memory leaks.
munich@fantasymail.de wrote:
> Have you ever observed the memory usage for your Tapestry application?
>
> For example, make a simple HelloWorld Application and load the page regularly using HTTP_LOAD. Then watch how the memory consumption grows and grows .... especially after an hour.
>
> Has anyone got a solution how avoid this leakage?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Memory leaks in Tapestry 4.1
Posted by mu...@fantasymail.de.
Have you ever observed the memory usage for your Tapestry application?
For example, make a simple HelloWorld Application and load the page regularly using HTTP_LOAD. Then watch how the memory consumption grows and grows .... especially after an hour.
Has anyone got a solution how avoid this leakage?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4.1]Returning a list to a page
Posted by Ulrich Stärk <ul...@spielviel.de>.
Where's the problem to do the same thing with the name of the calling
page? Store the name in a string property of page B before activating it...
Uli
Paolo Scopa schrieb:
> No prob.
> As i said to uli, i might call B from different pages, not only A.
> Maybe i should use a common interface for those pages.
> Ill try and let you know
> Paolo
>
>
> Patrick Klein wrote:
>> Hello Paolo,
>>
>> mea culpa, you are correct abot that :)
>> replace IPage with the A's class (implementing IPage) and cast the
>> result of cycle.getPage(...) accordingly
>>
>> Regards,
>> Patrick
>>> Thanks Patrick,
>>> this helps, except that the IPage does not expose the setList method, so
>>> i
>>> don't think it would work the
>>> page.setList(composedList);
>>> maybe not even compile.
>>> Paolo
>>>
>>>
>>> Patrick Klein wrote:
>>>
>>>> Hello Paolo,
>>>>
>>>> page a should hold an (persist) abstract getter and setter for the list,
>>>> page b hold a persist abstract getter and setter for the name of the
>>>> calling page which is set when page b is accessed and maybe reset if
>>>> needed in the button's listener.
>>>> When you are done with compiling your list on page be and the button is
>>>> pressed, do something like the following in the button's listener:
>>>>
>>>> (page b)
>>>> public void buttonListener(IRequestCycle cycle) {
>>>> [...]
>>>> IPage page = cycle.getPage(getPageNameOfA());
>>>> page.setList(composedList);
>>>> [...]
>>>> cycle.activate(page);
>>>> }
>>>>
>>>> Regards,
>>>> Patrick
>>>>
>>>>> Hi all,
>>>>> got a bit blocked here: i need to return a value to the invoking page.
>>>>> Page A calls page B -
>>>>> in Page B I select a list of item from a longer list
>>>>> when I press OK on page B, the browser returns to page A where the list
>>>>> is
>>>>> set according to the selection made.
>>>>> I can set the returning page but cant find a way to set there the value
>>>>> to
>>>>> return.
>>>>>
>>>>> I tried different ways but cant find a solution.
>>>>> Any help ?
>>>>>
>>>>> Paolo
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4.1]Returning a list to a page
Posted by Paolo Scopa <pa...@yahoo.com>.
No prob.
As i said to uli, i might call B from different pages, not only A.
Maybe i should use a common interface for those pages.
Ill try and let you know
Paolo
Patrick Klein wrote:
>
> Hello Paolo,
>
> mea culpa, you are correct abot that :)
> replace IPage with the A's class (implementing IPage) and cast the
> result of cycle.getPage(...) accordingly
>
> Regards,
> Patrick
>> Thanks Patrick,
>> this helps, except that the IPage does not expose the setList method, so
>> i
>> don't think it would work the
>> page.setList(composedList);
>> maybe not even compile.
>> Paolo
>>
>>
>> Patrick Klein wrote:
>>
>>> Hello Paolo,
>>>
>>> page a should hold an (persist) abstract getter and setter for the list,
>>> page b hold a persist abstract getter and setter for the name of the
>>> calling page which is set when page b is accessed and maybe reset if
>>> needed in the button's listener.
>>> When you are done with compiling your list on page be and the button is
>>> pressed, do something like the following in the button's listener:
>>>
>>> (page b)
>>> public void buttonListener(IRequestCycle cycle) {
>>> [...]
>>> IPage page = cycle.getPage(getPageNameOfA());
>>> page.setList(composedList);
>>> [...]
>>> cycle.activate(page);
>>> }
>>>
>>> Regards,
>>> Patrick
>>>
>>>> Hi all,
>>>> got a bit blocked here: i need to return a value to the invoking page.
>>>> Page A calls page B -
>>>> in Page B I select a list of item from a longer list
>>>> when I press OK on page B, the browser returns to page A where the list
>>>> is
>>>> set according to the selection made.
>>>> I can set the returning page but cant find a way to set there the value
>>>> to
>>>> return.
>>>>
>>>> I tried different ways but cant find a solution.
>>>> Any help ?
>>>>
>>>> Paolo
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/-T4.1-Returning-a-list-to-a-page-tf4242051.html#a12071552
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4.1]Returning a list to a page
Posted by Patrick Klein <pa...@bi-so.de>.
Hello Paolo,
mea culpa, you are correct abot that :)
replace IPage with the A's class (implementing IPage) and cast the
result of cycle.getPage(...) accordingly
Regards,
Patrick
> Thanks Patrick,
> this helps, except that the IPage does not expose the setList method, so i
> don't think it would work the
> page.setList(composedList);
> maybe not even compile.
> Paolo
>
>
> Patrick Klein wrote:
>
>> Hello Paolo,
>>
>> page a should hold an (persist) abstract getter and setter for the list,
>> page b hold a persist abstract getter and setter for the name of the
>> calling page which is set when page b is accessed and maybe reset if
>> needed in the button's listener.
>> When you are done with compiling your list on page be and the button is
>> pressed, do something like the following in the button's listener:
>>
>> (page b)
>> public void buttonListener(IRequestCycle cycle) {
>> [...]
>> IPage page = cycle.getPage(getPageNameOfA());
>> page.setList(composedList);
>> [...]
>> cycle.activate(page);
>> }
>>
>> Regards,
>> Patrick
>>
>>> Hi all,
>>> got a bit blocked here: i need to return a value to the invoking page.
>>> Page A calls page B -
>>> in Page B I select a list of item from a longer list
>>> when I press OK on page B, the browser returns to page A where the list
>>> is
>>> set according to the selection made.
>>> I can set the returning page but cant find a way to set there the value
>>> to
>>> return.
>>>
>>> I tried different ways but cant find a solution.
>>> Any help ?
>>>
>>> Paolo
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4.1]Returning a list to a page
Posted by Paolo Scopa <pa...@yahoo.com>.
Thanks Patrick,
this helps, except that the IPage does not expose the setList method, so i
don't think it would work the
page.setList(composedList);
maybe not even compile.
Paolo
Patrick Klein wrote:
>
> Hello Paolo,
>
> page a should hold an (persist) abstract getter and setter for the list,
> page b hold a persist abstract getter and setter for the name of the
> calling page which is set when page b is accessed and maybe reset if
> needed in the button's listener.
> When you are done with compiling your list on page be and the button is
> pressed, do something like the following in the button's listener:
>
> (page b)
> public void buttonListener(IRequestCycle cycle) {
> [...]
> IPage page = cycle.getPage(getPageNameOfA());
> page.setList(composedList);
> [...]
> cycle.activate(page);
> }
>
> Regards,
> Patrick
>> Hi all,
>> got a bit blocked here: i need to return a value to the invoking page.
>> Page A calls page B -
>> in Page B I select a list of item from a longer list
>> when I press OK on page B, the browser returns to page A where the list
>> is
>> set according to the selection made.
>> I can set the returning page but cant find a way to set there the value
>> to
>> return.
>>
>> I tried different ways but cant find a solution.
>> Any help ?
>>
>> Paolo
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/-T4.1-Returning-a-list-to-a-page-tf4242051.html#a12071237
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4.1]Returning a list to a page
Posted by Patrick Klein <pa...@bi-so.de>.
Hello Paolo,
page a should hold an (persist) abstract getter and setter for the list,
page b hold a persist abstract getter and setter for the name of the
calling page which is set when page b is accessed and maybe reset if
needed in the button's listener.
When you are done with compiling your list on page be and the button is
pressed, do something like the following in the button's listener:
(page b)
public void buttonListener(IRequestCycle cycle) {
[...]
IPage page = cycle.getPage(getPageNameOfA());
page.setList(composedList);
[...]
cycle.activate(page);
}
Regards,
Patrick
> Hi all,
> got a bit blocked here: i need to return a value to the invoking page.
> Page A calls page B -
> in Page B I select a list of item from a longer list
> when I press OK on page B, the browser returns to page A where the list is
> set according to the selection made.
> I can set the returning page but cant find a way to set there the value to
> return.
>
> I tried different ways but cant find a solution.
> Any help ?
>
> Paolo
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org