Is APR part of tomcat or apache? If I am running on linux and have no .so files in my tomcat directory does that mean I have no APR installed?

On a more positive note, we switched to proxy_http (after making the necessary code changes) and everything works now - no more mixed content.

Of course we lost a lot of necessary functionality:
1. request.isSecure() doesn't work
2. we don't know the server name we are hit with (since it is "hard coded" in httpd.conf)
3. we have no access to the source IP (for geo location)
4. We had to some make all client redirection code use the full URL with the server name - turns out client redirect uses the server name from the request so it tries to hit the 8080 port (tomcat) instead of 80 (httpd).

BTW - Am I the only one that is seriously worried that this kind of problem can even exist on a platform of this maturity?

Yuval Perlov
www.r-u-on.com



On Feb 17, 2009, at 1:38 AM, dave smith wrote:

Sorry for not providing an update sooner.  I disabled the APR and the
problem went away.

On 2/12/09, Christopher Schultz <ch...@christopherschultz.net> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yuval,

On 2/12/2009 3:12 AM, Yuval Perlov wrote:
I actually upgraded from mod_jk 1.2.26 to 27 to try and make the problem
go away.

Ha! Okay. Sorry for a bad tip. ;)

So, I'm definitely not going to be able to help you from here on out,
but I know that folks like Rainer and Mladen could use some more
information, so I'll go ahead and ask for some.

The mixup occurs only in tomcat originated data - the static stuff
coming from httpd stays fine.

Good to know.

Moreover, in the past I had it setup so the static stuff came from
tomcat as well. This naturally resulted in significantly more hits
between apache and tomcat which made the problem appear much faster
(hence my theory that some resource is being depleted over time).

Is this something you can reproduce reliably in a test environment? Does it require heavy load in order for this behavior to manifest itself? Or,
is it just after 5M requests everything goes to hell? I'm wondering if
concurrency is the problem or maybe something silly like logging or
maintaining worker status that somehow corrupts something.

It's very odd that responses would be crossed. I don't think any of that stuff is shared between threads/processes in mod_jk/httpd, but I suppose
when you overwrite memory (which is the only explanation I can think
of), you can't really expect the program to operate properly.

Oh, are you using worker or prefork MPM?

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

iEYEARECAAYFAkmUplsACgkQ9CaO5/Lv0PANwQCeM7IEsDUu+o8cKjZP3kxAZgXP
7g4AoLyLW2cvmLC7AGGJnEf8jHBzNBvM
=E4BT
-----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




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

Reply via email to