A two second pause doesn't sound like a JVM issue, It sounds like your pages
might be getting recompiled each time.  I've had this happen when modifying
cocoon files over a smb share where the computer I was modifying the files
on had a system clock time different than that of the server.  Try running a
script to "touch" each of your files and clearing tomcat's work directory
and restart tomcat.

I never really understood what should be proper cocoon.xconf entries either.
In each of the four cocoon.xconf's, for freememory I have 5500000 and
heapsize 100000000.  My rationale is that since I have 4 cocoon webapps,
that id have a little than less than 1/4th of the max heap.  However, maybe
someone else can answer this, that since I am using the
-XX:+DisableExplicitGC option that it makes the settings irrelevant?

Here are my exact setts.  Disregard logger settings:

<transient-store logger="core.store.transient">
   <parameter name="maxobjects" value="1000"/>
   <parameter name="use-persistent-cache" value="false"/>
</transient-store>
<store-janitor logger="janitor.janitor2.janitor">
   <parameter name="freememory" value="5500000"/>
   <parameter name="heapsize" value="100000000"/>
   <parameter name="cleanupthreadinterval" value="10"/>
   <parameter name="threadpriority" value="5"/>
   <parameter name="percent_to_free" value="10"/>
   <parameter name="invokegc" value="false"/>
</store-janitor>

> -----Original Message-----
> From: Linczak, Jonathan W. [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 16, 2005 1:07 PM
> To: [email protected]
> Subject: RE: Cocoon/Tomcat blocks requests at some point and hangs?
> 
>  
> > This problem had been plauging me for years, at random times Tomcat 
> > would just lock up and had to be restarted.  My setup is similar to 
> > yours, four cocoon webapps running under tomcat 5.5 behind Apache.  
> > Dual PIII 933mhz with 1gig RAM on redhat 8
> >
> > I FINALLY found the cause and solution:
> 
> I'm interested in the values that you have set for the 
> store-janitor in cocoon.xconf based on your JVM settings 
> below, as well as any max-pool changes.  My setup is somewhat similar:
> 
> Applications
> ------------------------
> Cocoon 2.1.6
> Apache Tomcat 5.0.28
> JVM 1.4.2_07
> 
> Hardware/Software
> ------------------------
> Dual Xeon 3.06 GHz
> 3 GB RAM
> RedHat Enterprise AS 3
> 
> 
> I went ahead and used the JVM settings you provided, yet I 
> was always faced with about a 2-second lag for each page 
> request, no matter how many times I visited the page.  I 
> hadn't even scaled the numbers you provided for min and max 
> heap size, etc.  The only thing I changed in the 
> store-janitor was the freememory and heapsize parameters to 
> the following:
> 
> freememory = 81472000 (about 15% of the heapsize)
> heapsize   = 536000000 (slightly less than 512 MB)
> 
> I didn't change any pool sizes.  Are you getting about a 
> 2-second lag for each page request as well?  This memory 
> allocation has always been a mystery for me...
> 
> Jon
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to