For each image I would get a small red x. When I hit refresh and it then 
display 
them.

Comments like this on Confluence web site for example explain:

After a bit of Googling came across this:
"Apache Portable Runtime to provide superior scalability, performance" for 
Tomcat 6.
There are comments that when using the APR Tomcat will server static content on 
par with Apache (httpd) server speeds - though I haven't been able to 
personally 
verify this just yet.
 
Or from the Tomcat site itself http://tomcat.apache.org/tomcat-5.5-doc/apr.html:
 
Tomcat can use the Apache Portable Runtime to provide superior scalability, 
performance, and better integration with native server technologies. The Apache 
Portable Runtime is a highly portable library that is at the heart of Apache 
HTTP Server 2.x. APR has many uses, including access to advanced IO 
functionality (such as sendfile, epoll and OpenSSL), OS level functionality 
(random number generation, system status, etc), and native process handling 
(shared memory, NT pipes and Unix sockets). 

>These features allows making Tomcat a general purpose webserver, will enable 
>much better integration with other native web technologies, and overall make 
>Java much more viable as a full fledged webserver platform rather than simply 
>a 
>backend focused technology. 
>
So as to say the Tomcat group did not want to compete why build the APR?

In either case it does not matter for me but I do appreciate the feedback.

Regards,
-Tony


----- Original Message ----
From: Christopher Schultz <ch...@christopherschultz.net>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Mon, July 19, 2010 3:51:28 PM
Subject: Re: APR & Tomcat...

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tony,

On 7/19/2010 5:21 PM, Tony Anecito wrote:
> First off I get a little red x in the upper left hand corner of the web page.

For the whole page? I thought this was an image problem.

> Yep I agree maybe an upgrade to the latest Tomcat and APR might accomplish 
> fixing the problem but silly me I like to understand an issue before I 
upgrade.

Upgrading is a good idea, but is unlikely to magically fix everything.
I'm unaware of any huge bugs in Tomcat 6.0.20 like "web server doesn't
work at all".

> APR==httpd at least that is what the Apache Web site says and the acronym I 
> put 
>
> up on the title page is about. The Apache Web server group disavow any 
>knowledge 
>
> of APR since they say the Tomcat Group developed to to replace Apache Web 
> Server.

APR != httpd

The "Tomcat Group" neither developed APR nor did they do it to undercut
anything the httpd group is doing. On the contrary, libapr is a project
to help many other projects, including httpd itself.

http://apr.apache.org/
http://apr.apache.org/projects.html
http://en.wikipedia.org/wiki/Apache_Portable_Runtime

> What little info I could find seems to indicate APR uses the ROOT directory  
> under Webapps for html based apps.

APR does nothing of the sort. APR essentially provides two major
capabilities to Tomcat:

1. SSL services using OpenSSL library instead of Java-based SSL
2. "Sendfile" services to serve static content directly from
disk-to-socket with minimal overhead

Both of these features are configured on a <Connector> in Tomcat and
will work with any webapp deployed into the container. It has nothing to
do with ROOT or any other specific webapp.

> I will probably go back to Apache Web server as a separate tier. I was trying 
>to 
>
> get better performance using APR + Tomcat and saw some but not enough to 
>justify 
>
> the advantages of a seperate tier.

Apache httpd + Tomcat will always be slower than simply using Tomcat +
APR/sendfile because of the overhead involved in forwarding the requests
back and forth. The only exception might be a site which is almost
exclusively static content and only one or two dynamic resources. In
that case, I might ask why that person was using Java in the first place ;)

There certainly are reasons to use Apache httpd out in front of Tomcat,
but performance isn't one of them.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxEyOAACgkQ9CaO5/Lv0PD+ngCdGoi80vMKrjB7UMP9kQKyLaS3
X/UAnjslqqAnc7796Xr14ic5cDEckPYl
=vtNH
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to