You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Benoit Deshaies <bd...@yahoo.com> on 2004/10/22 01:32:18 UTC
Form.js leakage
<executive-summary>
When my forms application has been running for a while, Cocoon has
thousands of file handles open for Form.js and fom_system.js, causing
crashes.
</executive-summary>
I'm developing a large CForm application. I'm now doing load testing
and after a while, I get "too many open files" exceptions. That "while"
wasn't very long: around 15 user sessions, each going through 10 forms.
Then everything just stops working.
I used a tool called Process Explorer (www.sysinternals.com) to see
which files were open (you could use lsof on unix). It turns out I had
hundreds of copies of org/apache/cocoon/forms/flow/javascript/Form.js
open. There are also countless copies of fom_system.js. I believe
that's the source of the problem.
All of the .js FlowScripts for my forms had cocoon.load(.../Form.js) at
the top. I removed all of them except for the first form. This helped:
the application takes longer before crashing. When looking at the open
files, I still see a large number of Form.js and fom_system.js open
(about 3 fom_system for each Form).
How can I: 1) stop cocoon from loading countless copies of these two
files and 2) "unload" the files when I'm done with them: i.e. in the
logout page, I'd be glad to unload Form.js.
Cocoon 2.1.5, running on Tomcat 5.0.25.
Thanks!
Benoit
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.
http://messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Form.js leakage
Posted by Paul Crabtree <pa...@gmail.com>.
Could you tell me which version of the Form.js you are using please?
I'm doing a similar thing to you but have only just started to develop mine.
Paul
On Fri, 22 Oct 2004 09:35:01 +0200, Jorg Heymans <jh...@domek.be> wrote:
> is this similar to http://issues.apache.org/bugzilla/show_bug.cgi?id=31760 ?
>
>
>
> Benoit Deshaies wrote:
> > <executive-summary>
> > When my forms application has been running for a while, Cocoon has
> > thousands of file handles open for Form.js and fom_system.js, causing
> > crashes.
> > </executive-summary>
> >
> > I'm developing a large CForm application. I'm now doing load testing
> > and after a while, I get "too many open files" exceptions. That "while"
> > wasn't very long: around 15 user sessions, each going through 10 forms.
> > Then everything just stops working.
> >
> > I used a tool called Process Explorer (www.sysinternals.com) to see
> > which files were open (you could use lsof on unix). It turns out I had
> > hundreds of copies of org/apache/cocoon/forms/flow/javascript/Form.js
> > open. There are also countless copies of fom_system.js. I believe
> > that's the source of the problem.
> >
> > All of the .js FlowScripts for my forms had cocoon.load(.../Form.js) at
> > the top. I removed all of them except for the first form. This helped:
> > the application takes longer before crashing. When looking at the open
> > files, I still see a large number of Form.js and fom_system.js open
> > (about 3 fom_system for each Form).
> >
> > How can I: 1) stop cocoon from loading countless copies of these two
> > files and 2) "unload" the files when I'm done with them: i.e. in the
> > logout page, I'd be glad to unload Form.js.
> >
> > Cocoon 2.1.5, running on Tomcat 5.0.25.
> >
> > Thanks!
> >
> > Benoit
> >
> >
> >
> >
> > _______________________________
> > Do you Yahoo!?
> > Express yourself with Y! Messenger! Free. Download now.
> > http://messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Form.js leakage
Posted by Jorg Heymans <jh...@domek.be>.
is this similar to http://issues.apache.org/bugzilla/show_bug.cgi?id=31760 ?
Benoit Deshaies wrote:
> <executive-summary>
> When my forms application has been running for a while, Cocoon has
> thousands of file handles open for Form.js and fom_system.js, causing
> crashes.
> </executive-summary>
>
> I'm developing a large CForm application. I'm now doing load testing
> and after a while, I get "too many open files" exceptions. That "while"
> wasn't very long: around 15 user sessions, each going through 10 forms.
> Then everything just stops working.
>
> I used a tool called Process Explorer (www.sysinternals.com) to see
> which files were open (you could use lsof on unix). It turns out I had
> hundreds of copies of org/apache/cocoon/forms/flow/javascript/Form.js
> open. There are also countless copies of fom_system.js. I believe
> that's the source of the problem.
>
> All of the .js FlowScripts for my forms had cocoon.load(.../Form.js) at
> the top. I removed all of them except for the first form. This helped:
> the application takes longer before crashing. When looking at the open
> files, I still see a large number of Form.js and fom_system.js open
> (about 3 fom_system for each Form).
>
> How can I: 1) stop cocoon from loading countless copies of these two
> files and 2) "unload" the files when I'm done with them: i.e. in the
> logout page, I'd be glad to unload Form.js.
>
> Cocoon 2.1.5, running on Tomcat 5.0.25.
>
> Thanks!
>
> Benoit
>
>
>
>
> _______________________________
> Do you Yahoo!?
> Express yourself with Y! Messenger! Free. Download now.
> http://messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org