Mantis - Quercus
Viewing Issue Advanced Details
2884 minor always 08-29-08 17:42 09-03-08 23:47
koreth  
nam  
normal  
closed 3.2.1  
fixed  
none    
none 3.2.1  
0002884: Quercus program cache is too small for large code bases
Need to be able to tune the size of _programCache in PageManager.java. 1024 is far too small for our code base and as a result, Quercus has to reload every file every time we execute a page that includes all our library files.

My temporary workaround is to just increase the default size in the Quercus code (so this is not an urgent bug), but the cache size should be tunable without editing the code.

Notes
(0003377)
nam   
09-03-08 23:47   
php/2021

Set page-cache-entries in the servlet init block:

<web-app xmlns="http://caucho.com/ns/resin"> [^]
  <servlet-mapping url-pattern="*.php"
                   servlet-class="com.caucho.quercus.servlet.QuercusServlet">
    <init>
      <page-cache-entries>4112</page-cache-entries>
    </init>
  </servlet-mapping>
</webapp>

To verify that the cache size is set:

<?php
  $quercus = quercus_get_quercus();
  var_dump($quercus->getPageCacheEntries());
?>