Re: [S2] App generate lot (2GB) of garbage! SOLVED

2007-06-30 Thread Ing. Andrea Vettori
Il giorno 30/giu/07, alle ore 13:54, Dave Newton ha scritto: --- "Ing. Andrea Vettori" wrote: However, my code still benefit a lot from disabling logging of struts \classes in jboss and caching the freemarker BeanWrapper. Hope to see this in the PerformanceTuning wiki pages. Logging and

Re: [S2] App generate lot (2GB) of garbage! SOLVED

2007-06-30 Thread Dave Newton
--- "Ing. Andrea Vettori" wrote: > However, my code still benefit a lot from disabling > logging of struts \classes in jboss and caching the > freemarker BeanWrapper. > > Hope to see this in the PerformanceTuning wiki > pages. Logging and template caching, at least, are already on the tuning pa

Re: [S2] App generate lot (2GB) of garbage! SOLVED

2007-06-29 Thread Ing. Andrea Vettori
As the last try to solve the problem I upgraded jboss to 4.2.0GA. This upgraded hibernate also. Solved. It seems that there was something in jboss and/or hibernate that produced the garbage forever... However, my code still benefit a lot from disabling logging of struts classes in jboss

Re: [S2] App generate lot (2GB) of garbage!

2007-06-27 Thread Ing. Andrea Vettori
Thanks In fact they are already there! I made a mistake writing the email... Il giorno 27/giu/07, alle ore 22:05, Guillaume Carré ha scritto: 2007/6/23, Ing. Andrea Vettori <[EMAIL PROTECTED]>: yes the templates are into WEB-INFO/templates you have to put them in tour WEB-APP root, meaning

Re: [S2] App generate lot (2GB) of garbage!

2007-06-27 Thread Guillaume Carré
2007/6/23, Ing. Andrea Vettori <[EMAIL PROTECTED]>: yes the templates are into WEB-INFO/templates you have to put them in tour WEB-APP root, meaning the directory directly above WEB-INF Freemarker won't find the templates in your WEB-INF directory, meaning freemarker won't cache them you migh

Re: [S2] App generate lot (2GB) of garbage!

2007-06-25 Thread Martin Gainty
AIL PROTECTED]> To: "Struts Users Mailing List" Cc: "Al Sutton" <[EMAIL PROTECTED]> Sent: Monday, June 25, 2007 12:40 PM Subject: Re: [S2] App generate lot (2GB) of garbage! > I'll now try to profile the production server for a longer time and keep you informe

Re: [S2] App generate lot (2GB) of garbage!

2007-06-25 Thread Ing. Andrea Vettori
I'll now try to profile the production server for a longer time and keep you informed. Unfortunately the garbage is still produced. But I can't profile the production server because the profiler crashes! Can anyone suggest a product to get the complete allocation object list ? Maybe

Re: [S2] App generate lot (2GB) of garbage!

2007-06-25 Thread Ing. Andrea Vettori
hence no StringBuilder will be created, hence you'll see a drop of over 5% in your Gced object count for exactly the same test. -Original Message- From: Ing. Andrea Vettori [mailto:[EMAIL PROTECTED] Sent: 25 June 2007 10:36 To: Al Sutton Subject: Re: [S2] App generate lot (2GB)

Re: [S2] App generate lot (2GB) of garbage!

2007-06-25 Thread Ing. Andrea Vettori
th a call count so we can see how many times the methods are being executed? Thanks, Al. -Original Message- From: Ing. Andrea Vettori [mailto:[EMAIL PROTECTED] Sent: 25 June 2007 09:35 To: Struts Users Mailing List Subject: Re: [S2] App generate lot (2GB) of garbage! Il giorno 25/gi

RE: [S2] App generate lot (2GB) of garbage!

2007-06-25 Thread Al Sutton
le generated?, can you also provide the call tree with a call count so we can see how many times the methods are being executed? Thanks, Al. -Original Message- From: Ing. Andrea Vettori [mailto:[EMAIL PROTECTED] Sent: 25 June 2007 09:35 To: Struts Users Mailing List Subject: Re: [S2

Re: [S2] App generate lot (2GB) of garbage!

2007-06-25 Thread Ing. Andrea Vettori
Il giorno 25/giu/07, alle ore 09:50, Al Sutton ha scritto: Your trace is at too higher level. Can you put a fully expanded copy of your trace that goes down to the leaf methods. Done. It's on traceall.html. I expanded only the two most garbage producing top call. Thank you -- Ing. Andr

RE: [S2] App generate lot (2GB) of garbage!

2007-06-25 Thread Al Sutton
causing the problem. findValue in itself does not create objects, so please post the fully expanded tree. -Original Message- From: Ing. Andrea Vettori [mailto:[EMAIL PROTECTED] Sent: 25 June 2007 08:34 To: Struts Users Mailing List Subject: Re: [S2] App generate lot (2GB) of garbage! Hi, I&#

Re: [S2] App generate lot (2GB) of garbage!

2007-06-25 Thread Ing. Andrea Vettori
e/ on this server. -Original Message- From: Ing. Andrea Vettori [mailto:[EMAIL PROTECTED] Sent: 25 June 2007 08:34 To: Struts Users Mailing List Subject: Re: [S2] App generate lot (2GB) of garbage! Hi, I've run a profile with yourkit (nice!) on my development platform. Here is the

RE: [S2] App generate lot (2GB) of garbage!

2007-06-25 Thread Al Sutton
Just went to look at the full trace and got a; Forbidden You don't have permission to access /trace/ on this server. -Original Message- From: Ing. Andrea Vettori [mailto:[EMAIL PROTECTED] Sent: 25 June 2007 08:34 To: Struts Users Mailing List Subject: Re: [S2] App generate lot

Re: [S2] App generate lot (2GB) of garbage!

2007-06-25 Thread Ing. Andrea Vettori
Hi, I've run a profile with yourkit (nice!) on my development platform. Here is the most important evidence. I've opened three product listings and a couple of product sheet in my site. Total garbage collected : 234 MB. Of these 234 MB, 64 are produced by org.jboss.remoting.transport.sock

Re: [S2] App generate lot (2GB) of garbage!

2007-06-23 Thread Ing. Andrea Vettori
yes the templates are into WEB-INFO/templates Il giorno 23/giu/07, alle ore 11:28, Guillaume Carré ha scritto: 2007/6/23, Ing. Andrea Vettori <[EMAIL PROTECTED]>: So struts asks freemarker to generate the html for the struts tag. Freemarker looks at the template and outputs the html based on

Re: [S2] App generate lot (2GB) of garbage!

2007-06-23 Thread Guillaume Carré
2007/6/23, Ing. Andrea Vettori <[EMAIL PROTECTED]>: So struts asks freemarker to generate the html for the struts tag. Freemarker looks at the template and outputs the html based on it. Freemarker is caching the template in memory to not have to read them from the disk every time. freemarker ca

Re: [S2] App generate lot (2GB) of garbage!

2007-06-23 Thread Ing. Andrea Vettori
Il giorno 23/giu/07, alle ore 09:19, Musachy Barroso ha scritto: Struts 2 uses freemarker to generate the html for the tags, for example for the form tag this template is used: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/ resources/template/simple/form.ftl?view=markup

Re: [S2] App generate lot (2GB) of garbage!

2007-06-23 Thread Musachy Barroso
Struts 2 uses freemarker to generate the html for the tags, for example for the form tag this template is used: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/simple/form.ftl?view=markup I was playing with jrockit also and trying to replicate the problem, but

Re: [S2] App generate lot (2GB) of garbage!

2007-06-23 Thread Ing. Andrea Vettori
Il giorno 22/giu/07, alle ore 19:20, Musachy Barroso ha scritto: Yes, freemarker is used by Struts 2 tags to generate html. We could have a property for the cache setting, but, does it solve your problem? (you said it was partially resolved) Most of the garbage is still there but at leas

Re: [S2] App generate lot (2GB) of garbage!

2007-06-22 Thread Ing. Andrea Vettori
There are three pages of issues on freemarker... I'll take a look at them and see if it's already present. Thank you Il giorno 22/giu/07, alle ore 19:17, Antonio Petrelli ha scritto: Andrea, please create a JIRA issue for this, and join the discussion at the Struts Developers list too, if po

Re: [S2] App generate lot (2GB) of garbage!

2007-06-22 Thread Musachy Barroso
Yes, freemarker is used by Struts 2 tags to generate html. We could have a property for the cache setting, but, does it solve your problem? (you said it was partially resolved) regards musachy On 6/20/07, Ing. Andrea Vettori <[EMAIL PROTECTED]> wrote: I discussed the problem with the freemarke

Re: [S2] App generate lot (2GB) of garbage!

2007-06-22 Thread Antonio Petrelli
Andrea, please create a JIRA issue for this, and join the discussion at the Struts Developers list too, if possible: http://www.nabble.com/-S2--FreeMarker-usage-in-Struts-2-tf3965756.html Antonio - To unsubscribe, e-mail: [EMAIL

Re: [S2] App generate lot (2GB) of garbage!

2007-06-20 Thread Ing. Andrea Vettori
I discussed the problem with the freemarker team and I used a suggestion that PARTIALLY resolved. They said : = You can use the code below to enable the model cache, assuming "myConfiguration" is the reference to your Configuration object: ((BeansWrapper)myConfiguration.getObjectWrapper(

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Oguz Kologlu
Vettori" <[EMAIL PROTECTED]> 06/19/2007 02:19 AM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject Re: [S2] App generate lot (2GB) of garbage! Anyone ? Anyone knows who's calling freemarker.ext.beans methods ? Il gio

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Matt Filion
purpose. "Ing. Andrea Vettori" <[EMAIL PROTECTED]> 06/19/2007 02:19 AM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject Re: [S2] App

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Ing. Andrea Vettori
Il giorno 19/giu/07, alle ore 12:07, Antonio Petrelli ha scritto: 2007/6/19, Ing. Andrea Vettori <[EMAIL PROTECTED]>: Moreover I'm not using freemaker in my project! It's struts that's using it. My page are all jsps !! This is pretty strange... Is FreeMarker servlet declared in your web

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Antonio Petrelli
2007/6/19, Ing. Andrea Vettori <[EMAIL PROTECTED]>: Moreover I'm not using freemaker in my project! It's struts that's using it. My page are all jsps !! This is pretty strange... Is FreeMarker servlet declared in your web.xml? Antonio

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Ing. Andrea Vettori
Moreover I'm not using freemaker in my project! It's struts that's using it. My page are all jsps !! Il giorno 19/giu/07, alle ore 11:41, Ing. Andrea Vettori ha scritto: yes but their list and forum seems almost dead... I hope someone in the struts team can help me found what's the problem

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Ing. Andrea Vettori
yes but their list and forum seems almost dead... I hope someone in the struts team can help me found what's the problem... Il giorno 19/giu/07, alle ore 11:39, Antonio Petrelli ha scritto: 2007/6/19, Ing. Andrea Vettori <[EMAIL PROTECTED]>: Anyone knows who's calling freemarker.ext.bean

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Antonio Petrelli
2007/6/19, Ing. Andrea Vettori <[EMAIL PROTECTED]>: Anyone knows who's calling freemarker.ext.beans methods ? Did you try asking the FreeMarker team? Antonio

Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Ing. Andrea Vettori
Anyone ? Anyone knows who's calling freemarker.ext.beans methods ? Il giorno 17/giu/07, alle ore 19:08, Ing. Andrea Vettori ha scritto: Hi, I've a struts 2.0.8 app that runs on Linux and JBoss 4.0.5. I'ts an e-commerce site. I have the following problem. The app seems to generate lot of g