Re: [xwiki-users] Tomcat BSD Nginx

2010-12-12 Thread Paul Libbrecht

Eric,

Java has a slow start. Yes that's known.
But once warmed it often performs better than many other things.

Maybe it helps.

paul

Le 11 déc. 2010 à 18:59, Eric Tse a écrit :

 I have now installed Nginx and done a proxy through to tomcat, its.. quite..
 slow.. IMO, probably cause its Java?
 - Eric
 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Tomcat BSD Nginx

2010-12-11 Thread Paul Libbrecht

Le 11 déc. 2010 à 04:52, Eric Tse a écrit :

 So based on your experiences, or anyone else's is MySQL better, persay vs
 PostgresSQL?

Tasteful speaking I always preferred Postgres (more strict open-source, more 
sys-admin-oriented) but I know MySQL is more widespread and sometimes faster.

 So since tomcat is a httpd server should I still use Ngninx as a proxy?

The thing is. When you run a product web-site you generally do not want it to 
be run as root or any power user: it should be run as a user that barely can 
do something on the local machine because of the risk to execute things. XWiki 
is an environment where any administrator can execute any process very easily. 

In a normal unix environment you would create a user httpd and run the 
web-server with that user.
Typically, however, the user httpd cannot even login and has no home, the 
servers are started as root than change the user.

Is your nginx deployment doing all that?
Apache normal deployments do.

paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Tomcat BSD Nginx

2010-12-11 Thread Eric Tse
I have now installed Nginx and done a proxy through to tomcat, its.. quite..
slow.. IMO, probably cause its Java?
- Eric


On Sat, Dec 11, 2010 at 8:54 AM, Paul Libbrecht p...@hoplahup.net wrote:


 Le 11 déc. 2010 à 04:52, Eric Tse a écrit :

  So based on your experiences, or anyone else's is MySQL better, persay
 vs
  PostgresSQL?

 Tasteful speaking I always preferred Postgres (more strict open-source,
 more sys-admin-oriented) but I know MySQL is more widespread and sometimes
 faster.

  So since tomcat is a httpd server should I still use Ngninx as a proxy?

 The thing is. When you run a product web-site you generally do not want it
 to be run as root or any power user: it should be run as a user that
 barely can do something on the local machine because of the risk to execute
 things. XWiki is an environment where any administrator can execute any
 process very easily.

 In a normal unix environment you would create a user httpd and run the
 web-server with that user.
 Typically, however, the user httpd cannot even login and has no home, the
 servers are started as root than change the user.

 Is your nginx deployment doing all that?
 Apache normal deployments do.

 paul
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Tomcat BSD Nginx

2010-12-10 Thread Paul Libbrecht

Le 10 déc. 2010 à 21:54, Eric Tse a écrit :

 How can I change Tomcat to use port 80 instead of 8180? I tried changing the
 connector port in the xml file then restarted but with no avail..

That's a tomcat question.
As far as I know you did the right thing.
Do restart tomcat and don't forget to be root (which is not really correct).

 Also is there a benefit from using Nginx to proxy into Tomcat? If so how
 would one do that?


I don't know about Nginx but we generally keep Tomcat on a high port and keep 
an Apache httpd on port 80 with a simple proxy. That works very well. Then only 
Apache needs root access and the latter takes care of changing the user after 
the restart (which no servlet container I know does, it's a native thing).

Proxies can become a lot more tuned if using mod_rewrite (e.g. to guarantee 
some short URLs in a very very flexible way, allow https, ...).

paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Tomcat BSD Nginx

2010-12-10 Thread Eric Tse
Thanks but I don't plan on using Apache the only thing installed on my BSD
VPS is diablo jdk , tomcat and xwiki. I followed the tutorial on how to
install xwiki on FreeBSD on the dev page of xwiki.  Now that being said,  is
tomcat a httpd server? If not then I'm guessing I have to install nginx and
proxy it to tomcat.
Also since xwiki is java based,  I don't have to install pop? Unless I want
to serve php?
Also how well does PostgresSQL fair in large wikis
On Dec 10, 2010 1:33 PM, Paul Libbrecht p...@hoplahup.net wrote:

 Le 10 déc. 2010 à 21:54, Eric Tse a écrit :

 How can I change Tomcat to use port 80 instead of 8180? I tried changing
the
 connector port in the xml file then restarted but with no avail..

 That's a tomcat question.
 As far as I know you did the right thing.
 Do restart tomcat and don't forget to be root (which is not really
correct).

 Also is there a benefit from using Nginx to proxy into Tomcat? If so how
 would one do that?


 I don't know about Nginx but we generally keep Tomcat on a high port and
keep an Apache httpd on port 80 with a simple proxy. That works very well.
Then only Apache needs root access and the latter takes care of changing the
user after the restart (which no servlet container I know does, it's a
native thing).

 Proxies can become a lot more tuned if using mod_rewrite (e.g. to
guarantee some short URLs in a very very flexible way, allow https, ...).

 paul
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Tomcat BSD Nginx

2010-12-10 Thread Paul Libbrecht

Le 10 déc. 2010 à 22:40, Eric Tse a écrit :

 Thanks but I don't plan on using Apache the only thing installed on my BSD
 VPS is diablo jdk , tomcat and xwiki. I followed the tutorial on how to
 install xwiki on FreeBSD on the dev page of xwiki.  Now that being said,  is
 tomcat a httpd server?

It is.

 If not then I'm guessing I have to install nginx and proxy it to tomcat.
 Also since xwiki is java based,  I don't have to install pop?
 Unless I want to serve php?

XWiki or tomcat are independent of PHP.

 Also how well does PostgresSQL fair in large wikis

I think it can score well.

I encountered, however, a few issues while trying to get some applications 
based on xwiki in active use. The generated SQL was incompatible with 
PostgreSQL.

As a rule of the thumb, I think workability with MySQL is considerably more 
tested.

paul

 On Dec 10, 2010 1:33 PM, Paul Libbrecht p...@hoplahup.net wrote:
 
 Le 10 déc. 2010 à 21:54, Eric Tse a écrit :
 
 How can I change Tomcat to use port 80 instead of 8180? I tried changing
 the
 connector port in the xml file then restarted but with no avail..
 
 That's a tomcat question.
 As far as I know you did the right thing.
 Do restart tomcat and don't forget to be root (which is not really
 correct).
 
 Also is there a benefit from using Nginx to proxy into Tomcat? If so how
 would one do that?
 
 
 I don't know about Nginx but we generally keep Tomcat on a high port and
 keep an Apache httpd on port 80 with a simple proxy. That works very well.
 Then only Apache needs root access and the latter takes care of changing the
 user after the restart (which no servlet container I know does, it's a
 native thing).
 
 Proxies can become a lot more tuned if using mod_rewrite (e.g. to
 guarantee some short URLs in a very very flexible way, allow https, ...).
 
 paul
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Tomcat BSD Nginx

2010-12-10 Thread Eric Tse
So based on your experiences, or anyone else's is MySQL better, persay vs
PostgresSQL?

So since tomcat is a httpd server should I still use Ngninx as a proxy?
- Eric


On Fri, Dec 10, 2010 at 2:05 PM, Paul Libbrecht p...@hoplahup.net wrote:


 Le 10 déc. 2010 à 22:40, Eric Tse a écrit :

  Thanks but I don't plan on using Apache the only thing installed on my
 BSD
  VPS is diablo jdk , tomcat and xwiki. I followed the tutorial on how to
  install xwiki on FreeBSD on the dev page of xwiki.  Now that being said,
  is
  tomcat a httpd server?

 It is.

  If not then I'm guessing I have to install nginx and proxy it to tomcat.
  Also since xwiki is java based,  I don't have to install pop?
  Unless I want to serve php?

 XWiki or tomcat are independent of PHP.

  Also how well does PostgresSQL fair in large wikis

 I think it can score well.

 I encountered, however, a few issues while trying to get some applications
 based on xwiki in active use. The generated SQL was incompatible with
 PostgreSQL.

 As a rule of the thumb, I think workability with MySQL is considerably more
 tested.

 paul

  On Dec 10, 2010 1:33 PM, Paul Libbrecht p...@hoplahup.net wrote:
 
  Le 10 déc. 2010 à 21:54, Eric Tse a écrit :
 
  How can I change Tomcat to use port 80 instead of 8180? I tried
 changing
  the
  connector port in the xml file then restarted but with no avail..
 
  That's a tomcat question.
  As far as I know you did the right thing.
  Do restart tomcat and don't forget to be root (which is not really
  correct).
 
  Also is there a benefit from using Nginx to proxy into Tomcat? If so
 how
  would one do that?
 
 
  I don't know about Nginx but we generally keep Tomcat on a high port and
  keep an Apache httpd on port 80 with a simple proxy. That works very
 well.
  Then only Apache needs root access and the latter takes care of changing
 the
  user after the restart (which no servlet container I know does, it's a
  native thing).
 
  Proxies can become a lot more tuned if using mod_rewrite (e.g. to
  guarantee some short URLs in a very very flexible way, allow https, ...).
 
  paul
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users

 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users