Thursday, December 24, 2009

Re: modperl / apache13 memory footprints on 32 adn 64 bit servers

Joe Niederberger wrote:
> Does anyone know if one can have 64bit perl use 64 bit addressing (to make
> use of >4GB RAM) but still use 32-bit INTs etc (to keep footprint from
> getting
> large)?

This is the default on windows x64.

Re: Apache2::Cookie cookie parse error "Expected token not present"

陈建春 wrote:
> hi
>
> Our web site http://passport.maxthon.cn use mod_perl2.0.
> but it displays "Expected token not present" on the page occasionally.
>
> I log the cookie string in header when the error occur, the abnormal
> cookie would like this:
>
> rtime30013728=0; ltime30013728=1261566403616;
> cnzz_eid30013728=98941722-1261566395-http%3A//gocn.maxthon.com/redir/public/avatar.htm%3Fv%3D3.0.6.4;
> 1;
> MAXAUTH=01000000170000005F47334BDF7A144D7BAA0F4B60AB448E3E79ECE6D111B0BE6B9A461DF1237853
>
> rtime30013728=0; ltime30013728=1261566403616;
> cnzz_eid30013728=98941722-1261566395-http%3A//gocn.maxthon.com/redir/public/avatar.htm%3Fv%3D3.0.6.4;
> MAXAUTH=01000000170000006DA5314BEE28134D7BAA0F4BB1E42FEFD0330EC3913F26C41ACABF9598722B7F;
> 1
>
> I compared them with the normal cookie string, I find all of the
> abnormal cookie string contain "1;"
> It is sure that the "1;" cause the Apache2::Cookie parser error.
> I wonder how and why the "1;" is added, and how to fix it.
>

There is nothing in mod_perl per se which creates a cookie.
That cookie must be created by an application, and it is that
application which adds a ;1 sometimes.

Also, incidentally, Apache2::Cookie is not really a part of mod_perl.
It is just a perl module which happens to run under mod_perl.

Wednesday, December 23, 2009

Apache2::Cookie cookie parse error "Expected token not present"

hi

Our web site http://passport.maxthon.cn use mod_perl2.0.
but it displays  "Expected token not present" on the page occasionally.

I log the cookie string in header when the error occur, the abnormal cookie would like this:

rtime30013728=0; ltime30013728=1261566403616; cnzz_eid30013728=98941722-1261566395-http%3A//gocn.maxthon.com/redir/public/avatar.htm%3Fv%3D3.0.6.4; 1; MAXAUTH=01000000170000005F47334BDF7A144D7BAA0F4B60AB448E3E79ECE6D111B0BE6B9A461DF1237853

rtime30013728=0; ltime30013728=1261566403616; cnzz_eid30013728=98941722-1261566395-http%3A//gocn.maxthon.com/redir/public/avatar.htm%3Fv%3D3.0.6.4; MAXAUTH=01000000170000006DA5314BEE28134D7BAA0F4BB1E42FEFD0330EC3913F26C41ACABF9598722B7F; 1

I compared them with the normal cookie string, I find all of the abnormal cookie string contain "1;"
It is sure that the "1;" cause the Apache2::Cookie parser error.
I wonder how and why the "1;" is added, and how to fix it.

--

陈建春 | ChenJianchun
傲游Web应用部
E-mail: chenjch@maxthon.net

Maxthon® --每个人的互联网中心!         上网从傲游开始!
傲游天下科技有限公司(中国) | www.maxthon.cn

诚 信、创新、务实、奋斗!

Re: mod_perl precompiling help

unsubscribe

On Wed, Dec 23, 2009 at 12:50 PM, Perrin Harkins <pharkins@gmail.com> wrote:
On Tue, Dec 22, 2009 at 12:19 PM, Jason Sonnenschein <jsonn@umich.edu> wrote:
> ENV{MOD_PERL} returns "mod_perl/2.0.4"

Ok, they are running under mod_perl then.  It's pretty much unheard of
for a script to run slower under mod_perl than CGI.  There may be
something serious wrong, like you don't have enough memory for the
configuration you're using.  Is the machine going into swap?

- Perrin



--
ispyhumanfly [dan.stephenson]

Re: mod_perl precompiling help

On Tue, Dec 22, 2009 at 12:19 PM, Jason Sonnenschein <jsonn@umich.edu> wrote:
> ENV{MOD_PERL} returns "mod_perl/2.0.4"

Ok, they are running under mod_perl then. It's pretty much unheard of
for a script to run slower under mod_perl than CGI. There may be
something serious wrong, like you don't have enough memory for the
configuration you're using. Is the machine going into swap?

- Perrin

Tuesday, December 22, 2009

Re: mod_perl precompiling help

On 12/22/09 10:13 AM, Perrin Harkins wrote:
> On Mon, Dec 21, 2009 at 11:47 PM, Jason Sonnenschein<jsonn@umich.edu> wrote:
>
>> We're running a perl-based web application and not seeing any speedups
>> running under mod_perl.
>>
> Usually that means you have a configuration problem. Can you check if
> your scripts are running under mod_perl by looking at $ENV{MOD_PERL}
> in one of them?
>
> - Perrin
>
>
>

ENV{MOD_PERL} returns "mod_perl/2.0.4"

Re: mod_perl precompiling help

On 12/22/09 10:13 AM, Perrin Harkins wrote:
> On Mon, Dec 21, 2009 at 11:47 PM, Jason Sonnenschein<jsonn@umich.edu> wrote:
>
>> We're running a perl-based web application and not seeing any speedups
>> running under mod_perl.
>>
> Usually that means you have a configuration problem. Can you check if
> your scripts are running under mod_perl by looking at $ENV{MOD_PERL}
> in one of them?
>
> - Perrin
>
>
>
I'll doublecheck with that, but I can say that when I switch the machine
to running mod_perl, I see httpd rather than the scripts in "top" and
"ps" output (which seems to me that it's running under mod_perl)

Jason