pub crawler | 2 Jan 2012 18:55
Picon

Cherokee RAM consumption with empty default install?

Installing Cherokee on a small VPS instead of the large servers we
typically work with (i.e. 16GB+ of RAM).

This container limits us in this instance to 512MB of RAM.

Installed the Cherokee 1.2.99b source on Debian.

We start out with the system using 48MB of RAM consumed by various
other applications.

Start cherokee-admin =  59MB of RAM total consumed

Log into cherokee web admin via browser = 108MB consumed

Start Default Cherokee Server config  via Cherokee-admin = 221MB consumed

Grand Total= 173MB consumed for Cherokee + cherokee-admin

This is the default empty install as Cherokee ships.

Anyone have any recommendations on how to 'slim' Cherokee down?

173MB is entirely too much RAM (my opinion) for an empty base install
sitting idle.

What does everyone else think?
Stefan de Konink | 2 Jan 2012 22:11
Picon
Gravatar

Re: Cherokee RAM consumption with empty default install?


Op 02-01-12 18:55, pub crawler schreef:
> Anyone have any recommendations on how to 'slim' Cherokee down?

Don't start cherokee admin by default. (Obviously)

Disable iocache.

Stefan
pub crawler | 3 Jan 2012 11:25
Picon

Re: Cherokee RAM consumption with empty default install?

Let's see!

Disabled iocache via cherokee-admin, stopped all Cherokee processes.

Start RAM consumed: 73 MB
Run Cherokee-Admin: 82 MB
Load cherokee-admin in browser: 133 MB
Start Cherokee from cherokee web admin: 224 MB
Kill cherokee-admin: 165MB

= 92MB of RAM

That's better, but still rather large.

173MB with IOCache on
92MB with IOCache off and Cherokee-admin not running

Any other optimizations folks can think of to shrink Cherokee more?

On 1/2/12, Stefan de Konink <stefan <at> konink.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Op 02-01-12 18:55, pub crawler schreef:
>> Anyone have any recommendations on how to 'slim' Cherokee down?
>
> Don't start cherokee admin by default. (Obviously)
>
> Disable iocache.
>
(Continue reading)

Stefan de Konink | 3 Jan 2012 11:36
Picon
Gravatar

Re: Cherokee RAM consumption with empty default install?

On Tue, 3 Jan 2012, pub crawler wrote:

> That's better, but still rather large.

Yes, and my standard Cherokee is only 10MB. So I wonder if you may count 
shared memory (mmaped).

Stefan
pub crawler | 3 Jan 2012 11:40
Picon

Re: Cherokee RAM consumption with empty default install?

Just tweaked Advanced > Resources > Thread Number.
New Value: 5

Revised RAM numbers:
Start: 74MB
Run cherokee-admin: 125MB
Start cherokee from admin: 176MB
Kill Cherokee-admin: 125MB

Used: 51MB

Anyone see any implications in setting this value for threads at 5?

51MB is still rather a tad large but getting better :)

On 1/3/12, pub crawler <pubcrawler.com <at> gmail.com> wrote:
> Let's see!
>
> Disabled iocache via cherokee-admin, stopped all Cherokee processes.
>
> Start RAM consumed: 73 MB
> Run Cherokee-Admin: 82 MB
> Load cherokee-admin in browser: 133 MB
> Start Cherokee from cherokee web admin: 224 MB
> Kill cherokee-admin: 165MB
>
> = 92MB of RAM
>
> That's better, but still rather large.
>
(Continue reading)

pub crawler | 3 Jan 2012 11:44
Picon

Re: Cherokee RAM consumption with empty default install?

Purely looking at RAM numbers on idle system with RAM at each
different stage of testing.

The shared memory part, Cherokee requests/uses the RAM but doesn't per
se lock some of that?

How does one differentiate here what RAM is hard reserved and what is
shared (nmaped)?

Have some RISC embedded platforms working with also at this point and
RAM there is quite limited  (128MB total system RAM).   So, I suspect
whatever we learn here should benefit folks on those smaller
platforms.

On 1/3/12, Stefan de Konink <stefan <at> konink.de> wrote:
> On Tue, 3 Jan 2012, pub crawler wrote:
>
>> That's better, but still rather large.
>
> Yes, and my standard Cherokee is only 10MB. So I wonder if you may count
> shared memory (mmaped).
>
> Stefan
>
Stefan de Konink | 3 Jan 2012 11:48
Picon
Gravatar

Re: Cherokee RAM consumption with empty default install?

On Tue, 3 Jan 2012, pub crawler wrote:

> Have some RISC embedded platforms working with also at this point and
> RAM there is quite limited  (128MB total system RAM).   So, I suspect
> whatever we learn here should benefit folks on those smaller
> platforms.

Practically you could also at compilation disable modules, for example if 
you never use pam, mysql etc. disable it, saves diskspace and memory.

Stefan
kultsar | 3 Jan 2012 22:29
Picon

(Directory /admin AND (NOT Is SSL/TLS)) redirects to domain instead of folder

Hi Everybody,

I have a site that is using HTTP, but want to force HTTPS when the url is
http://example.com/admin. This URL will be accessed by users of the site,
and I want like it to be available to them in a secure way.

I created a (Directory /admin AND (NOT Is SSL/TLS)) rule, with a redirect
handler from regexp /(.*)$ to https://${host}/$1 as described in the
cookbook (http://www.cherokee-project.com/doc/cookbook_http_to_https.html)

The rule in /etc/cherokee/cherokee.conf:
vserver!3!rule!200!disabled = 0
vserver!3!rule!200!handler = redir
vserver!3!rule!200!handler!rewrite!10!regex = /(.*)$
vserver!3!rule!200!handler!rewrite!10!show = 1
vserver!3!rule!200!handler!rewrite!10!substring = https://${host}/$1
vserver!3!rule!200!match = and
vserver!3!rule!200!match!final = 1
vserver!3!rule!200!match!left = directory
vserver!3!rule!200!match!left!directory = /admin
vserver!3!rule!200!match!right = not
vserver!3!rule!200!match!right!right = tls
vserver!3!rule!200!only_secure = 0

The problem is that this rule redirects to https://example.com instead of
https://example.com/admin. How can I make it redirect to the original url?

I also would like to create another rule later that will redirect all https
to http if the url is not .../admin.

(Continue reading)

kultsar | 3 Jan 2012 22:59
Picon

Re: (Directory /admin AND (NOT Is SSL/TLS)) redirects to domain instead of folder

Using 1.2.101-1~natty~ppa1.

--
View this message in context: http://cherokee-web-server-general.1049476.n5.nabble.com/Directory-admin-AND-NOT-Is-SSL-TLS-redirects-to-domain-instead-of-folder-tp5118027p5118085.html
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.
Daniel Lo Nigro | 5 Jan 2012 03:48
Favicon

Re: (Directory /admin AND (NOT Is SSL/TLS)) redirects to domain instead of folder

Since the rule being applied to the 'admin' directory, you might need to rewrite to https://${host}/admin/$1 

On Wed, Jan 4, 2012 at 8:29 AM, kultsar <kultsar <at> gmail.com> wrote:
Hi Everybody,

I have a site that is using HTTP, but want to force HTTPS when the url is
http://example.com/admin. This URL will be accessed by users of the site,
and I want like it to be available to them in a secure way.

I created a (Directory /admin AND (NOT Is SSL/TLS)) rule, with a redirect
handler from regexp /(.*)$ to https://${host}/$1 as described in the
cookbook (http://www.cherokee-project.com/doc/cookbook_http_to_https.html)

The rule in /etc/cherokee/cherokee.conf:
vserver!3!rule!200!disabled = 0
vserver!3!rule!200!handler = redir
vserver!3!rule!200!handler!rewrite!10!regex = /(.*)$
vserver!3!rule!200!handler!rewrite!10!show = 1
vserver!3!rule!200!handler!rewrite!10!substring = https://${host}/$1
vserver!3!rule!200!match = and
vserver!3!rule!200!match!final = 1
vserver!3!rule!200!match!left = directory
vserver!3!rule!200!match!left!directory = /admin
vserver!3!rule!200!match!right = not
vserver!3!rule!200!match!right!right = tls
vserver!3!rule!200!only_secure = 0

The problem is that this rule redirects to https://example.com instead of
https://example.com/admin. How can I make it redirect to the original url?

I also would like to create another rule later that will redirect all https
to http if the url is not .../admin.

--
View this message in context: http://cherokee-web-server-general.1049476.n5.nabble.com/Directory-admin-AND-NOT-Is-SSL-TLS-redirects-to-domain-instead-of-folder-tp5118027p5118027.html
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.
_______________________________________________
Cherokee mailing list
Cherokee <at> lists.octality.com
http://lists.octality.com/listinfo/cherokee

_______________________________________________
Cherokee mailing list
Cherokee <at> lists.octality.com
http://lists.octality.com/listinfo/cherokee

Gmane