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 garbage in RAM (young gen) that the
gc correctly collects.
But when there is more than a few users on the site, that amount of
garbage is generated about every 10 seconds or less depending on the
number of users. This cause a lot of cpu usage...
Tracking the memory usage with the hprof agent I found that a lot of
memory is used by freemarker.* classes on HashMaps.
I have devMode turned off, have the "template" dir on the root of the
war file and I have the freemarker.properties file into the classes
dir inside WEB-INF with template_update_delay=60000.
Any hint on WHY the application is generating such big amount of
garbage ?
Thank you
Here is top memory usage and relative traces :
bytes 192,090,608
obj number: 1,263,754
class: java.util.HashMap$Entry[]
TRACE 352396:
java.util.HashMap.<init>(HashMap.java:203)
freemarker.ext.beans.BeanModel.<init>(BeanModel.java:117)
freemarker.ext.beans.StringModel.<init>(StringModel.java:90)
freemarker.ext.beans.StringModel$1.create(StringModel.java:75)
bytes: 143,560,048
obj number: 944,474
class: java.util.HashMap$Entry[]
TRACE 352387:
java.util.HashMap.<init>(HashMap.java:203)
freemarker.ext.beans.BeanModel.<init>(BeanModel.java:117)
freemarker.ext.beans.StringModel.<init>(StringModel.java:90)
freemarker.ext.beans.MapModel.<init>(MapModel.java:105)
bytes: 141,327,104
obj number: 2,208,236
class: java.util.HashMap
TRACE 352386:
java.util.AbstractMap.<init>(AbstractMap.java:53)
java.util.HashMap.<init>(HashMap.java:200)
freemarker.ext.beans.BeanModel.<init>(BeanModel.java:117)
freemarker.ext.beans.StringModel.<init>(StringModel.java:90)
--
Ing. Andrea Vettori
Consulente per l'Information Technology
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]