[opencms-dev] experiences and limits with Tomcat and Resin

Fabio Agostini f.agostini at bluelemon.net
Sun Jan 23 22:13:31 CET 2005


Hello all
 
I've been using OpenCms since 2 years. In these years I have noticed
that even in different settings of installation, but always with
tomcat+apache, this application goes in OutOfMemory with a frequency
directly proportional to the traffic loading.
 
Without using Apache, therefore using Tomcat as webserver standalone,
the limit rises up, but there is always a limit! A very hard problem is
that Tomcat crashes itself: just one stressed  web-application causes
the OutOfMemory of all the applications running in the servlet
container.
 
This behaviour, shared with the old IIS as well, is very dangerous...
Afterwards it's necessary to restart the whole service in order to
restore the situation.
 
In the stress-tests I made, Resin is much more trustworthy: when it
comes up to the limit that it is able to undergo, it generates
500-error-pages over the users in excess, without any crash of the
service. When the loading returns under the standard levels, the rate of
sent errors goes back to 0!
 
For this reason I am ready to change webserver, although I'm finding
several compatibility problems with Resin.
 
My problem is connected with the inclusion loop in which fall many of
the newsletter's subscribers. The html pages with the dynamic template
do work very well, while the jsp pages have problems if they include
more of one elements of the template.
 
For instance, if in a jsp page I enter only:
 
[...]
<cms:include property="template" element="HEAD" />
[...]
 
or:
 
[...]
<cms:include property="template" element="FOOT" />
[...]
 
I don't have any problem at all. The "element" is correctly visualized.
On the contrary, I do have problems if I use the following configuration
(much more common in my pages):
 
 
[...]
<cms:include property="template" element="HEAD" />
[...]
<cms:include property="template" element="FOOT" />
[...]
 
There is no doubt: even if  the templates elements are empty or there
are only static elements, the problem is the same.
This is the error output:
 
javax.servlet.ServletException: javax.servlet.jsp.JspException:
javax.servlet.ServletException: FlexDispatcher: Dectected inclusion loop
for target /IT/index.jsp
 
 
I don't know this library "Flex", but it seems not compatible with
something: it generates an error in the administration panel too: it
seems it's not interceped:
 
[...]
Root cause:
com.caucho.jsp.JspParseException:
/WEB-INF/jsp/offline/system/workplace/administration/flexcache/index.htm
l.jsp:49: cannot find symbol
symbol  : method getCmsCache()
location: class com.opencms.flex.cache.CmsFlexRequest
        cache = req.getCmsCache();
                   ^
Note:
K:\resin_balance\resin_bal\webapps\ROOT\WEB-INF\work\_jsp\_web_22dinf\_j
sp\_offline\_system\_workplace\_administration\_flexcache\_index__html__
jsp.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[...]
 
 
 
I'm using Resin 3.0.10 (or Tomcat 5) and OpenCms 5.0.1
OpenCms 6alpha3 seems not to be pleased with Resin... :(
 
 
Cheers,
Fabio Agostini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050123/3c353146/attachment.htm>


More information about the opencms-dev mailing list