-
1. Re: mod_cluster module makes Apache hang upon startup only with mod_ssl also enabled
jfclere Aug 18, 2011 7:33 AM (in response to mdpjhammett)Include conf/httpd-ssl5/*.conf is there any thing there?
Try first without SSL between httpd and jboss, comment out the SSLProxy* directive.
-
2. Re: mod_cluster module makes Apache hang upon startup only with mod_ssl also enabled
mdpjhammett Aug 18, 2011 11:28 PM (in response to jfclere)Thanks for the reply. I've pared the config file way down and made a discovery. If I comment out "ServerAdvertise On", it starts up fine. If I uncomment it, it hangs again. Here's the full config I'm using now:
LogFormat "%V %h %l %u %t \"%r\" %>s %b" common-vhost
User httpd
Group httpd
LoadModule proxy_module modules/mod_cluster/mod_proxy.so
LoadModule slotmem_module modules/mod_cluster/mod_slotmem.so
LoadModule manager_module modules/mod_cluster/mod_manager.so
LoadModule proxy_cluster_module modules/mod_cluster/mod_proxy_cluster.so
LoadModule advertise_module modules/mod_cluster/mod_advertise.so
LoadModule ssl_module modules/mod_ssl.so
PidFile "logs/httpd-ssl5.pid"
ErrorLog "/var/log/httpd/ssl/error"
CustomLog "/var/log/httpd/ssl/access" common-vhost
LogLevel debug
TypesConfig conf/global/mime.types
Listen 10.1.32.38:6667
<VirtualHost 10.1.32.38:6667>
#ServerAdvertise On
</VirtualHost>
-
3. Re: mod_cluster module makes Apache hang upon startup only with mod_ssl also enabled
rhusar Aug 19, 2011 5:40 AM (in response to mdpjhammett)1 of 1 people found this helpfulHi there! If you comment it out the default gets used and the default is off. So looks like the problem is somewhere in the UDP multicasting.
http://docs.jboss.org/mod_cluster/1.1.0/html/native.config.html#d0e666
So to workaround if you want to use mod_cluster before this issue is resolved you can use on your JBoss instance the proxyList parameter.
http://docs.jboss.org/mod_cluster/1.1.0/html/java.properties.html#mcmp
-
4. Re: mod_cluster module makes Apache hang upon startup only with mod_ssl also enabled
mdpjhammett Aug 19, 2011 4:28 PM (in response to rhusar)Oddly enough, it only works if I comment out the directive entirely:
ServerAdvertise On - hangs
ServerAdvertise Off - hangs
#ServerAdvertise On - does not hang
I'm using proxyList now as a workaround but it would be nice to have this working on Apache instances that need mod_ssl for serving secure content to users. I've tried building a clean environment on another physical server and I get the same result. Bug?
-
5. Re: mod_cluster module makes Apache hang upon startup only with mod_ssl also enabled
jfclere Aug 22, 2011 1:58 AM (in response to mdpjhammett)To test the UDP multicasting you may use Advertize.java / SAdvertize.java http://anonsvn.jboss.org/repos/mod_cluster/trunk/test/java/
-
6. Re: mod_cluster module makes Apache hang upon startup only with mod_ssl also enabled
mdpjhammett Aug 22, 2011 10:50 AM (in response to jfclere)I know UDP multicasting works though: if I disable mod_ssl, then mod_cluster with ServerAdvertise On starts up fine and autodiscovery works as expected. I'm curious whether anyone else using Solaris 10 is/isn't experiencing this problem.
-
7. Re: mod_cluster module makes Apache hang upon startup only with mod_ssl also enabled
rhusar Aug 22, 2011 10:53 AM (in response to mdpjhammett)So if I understand correctly the issue is ONLY when using mod_ssl and mod_cluster with ServerAdvertise On? Also is this ONLY on Solaris or on RHEL/Fedora too?
If only you could provide a test case :-(
-
8. Re: mod_cluster module makes Apache hang upon startup only with mod_ssl also enabled
jfclere Aug 23, 2011 2:47 AM (in response to rhusar)"Solaris 10 SPARC
Apache/2.2.19 --with-mpm=worker --enable-nonportable-atomics=yes (also tried Apache/2.2.15)"
Could you try without the "--enable-nonportable-atomics=yes" ?
In fact if you have the ServerAdvertise On/Off commented out the Advertise thread won't be started. The only thing I see is "--enable-nonportable-atomics=yes" that may interacts with threads.
-
9. Re: mod_cluster module makes Apache hang upon startup only with mod_ssl also enabled
mdpjhammett Sep 7, 2011 7:11 PM (in response to jfclere)Seems like a reasonable theory...though I'd rather specify web servers manually with proxyList than go without "--enable-nonportable-atomics=yes" (optimizations for SPARC). Next time I build Apache I'll try it without that for testing purposes and report the results back to this thread. Thanks everyone!