- 論壇徽章:
- 0
|
Resin+Apache+Linux版本組合問題(網上提供)
耗費了N個人1整天的精力,總算解決了一個resin安裝的mod_caucho.so詭異陷阱。
Resin3.1.8及以上版本, 配合 Apache2.2.X, 在LinuxAS4 32bit 下,mod_caucho.so是有bug的!導致apache始終不去建立和resin后臺的連接(連tcp握手都不去做)。也無法在 xxx.com/caucho-status 看到任何host列表項。
也就是說:在“Apache2.2.X, LinuxAS4 32bit”環(huán)境下,resin3.1.8不能使用于編譯mod_caucho,必須替換成 resin3.1.6版本才能正常分發(fā)請求!
但在Linux AS4 64bit下,resin3.1.8+ 高版本都沒問題。
我這里的組合測試結果如下:
1, Linux AS4 32bit, Apache 2.2, Resin 3.1.8+, the result mod_caucho.so compiled is BAD;
2, Linux AS4 32bit, Apache 2.2, Resin 3.1.6, the result mod_caucho.so compiled is GOOD;
3, Linux AS4 64bit, Apache 2.2, Resin 3.1.6/3.1.8+, the result mod_caucho.so compiled is GOOD;
“BAD”主要的現象是:用resin自己的web端口訪問應用正常;用Apache端口訪問應用全部報“503”錯誤。但實際上Apache的mod_caucho根本沒有向后端resin發(fā)出任何tcp連接請求(tcpdump命令可驗證);同時,在 xxx.com/caucho-status 上,看到的后端Cluster列表里,沒有任何 Host 在位。
在google上搜索到了一些反映類似現象的文章,但都沒有解決。只能換版本組合?磥韈aucho公司想賺錢忽視了健壯性。
本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u3/93765/showart_2114197.html |
|